org.jclouds.cloudstack.domain
Class Network

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Network

public class Network
extends Object

Class Network

Author:
Adrian Cole

Nested Class Summary
static class Network.Builder<T extends Network.Builder<T>>
           
 
Constructor Summary
protected Network(String id, String account, String broadcastDomainType, URI broadcastURI, String displayText, String DNS1, String DNS2, String domain, String domainId, String endIP, String gateway, boolean isDefault, boolean isShared, boolean isSystem, String netmask, String networkDomain, String networkOfferingAvailability, String networkOfferingDisplayText, String networkOfferingId, String networkOfferingName, String related, String startIP, String name, String state, GuestIPType guestIPType, String VLAN, TrafficType trafficType, String zoneId, Iterable<String> tags, boolean securityGroupEnabled, Set<? extends NetworkService> services)
           
 
Method Summary
static Network.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getAccount()
           
 String getBroadcastDomainType()
           
 URI getBroadcastURI()
           
 String getDisplayText()
           
 List<String> getDNS()
           
 String getDomain()
           
 String getDomainId()
           
 String getEndIP()
           
 String getGateway()
           
 GuestIPType getGuestIPType()
           
 String getId()
           
 String getName()
           
 String getNetmask()
           
 String getNetworkDomain()
           
 String getNetworkOfferingAvailability()
           
 String getNetworkOfferingDisplayText()
           
 String getNetworkOfferingId()
           
 String getNetworkOfferingName()
           
 String getRelated()
           
 Set<? extends NetworkService> getServices()
           
 String getStartIP()
           
 String getState()
           
 Set<String> getTags()
           
 TrafficType getTrafficType()
           
 String getVLAN()
           
 String getZoneId()
           
 int hashCode()
           
 boolean isDefault()
           
 boolean isSecurityGroupEnabled()
           
 boolean isShared()
           
 boolean isSystem()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Network.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Network

@ConstructorProperties(value={"id","account","broadcastdomaintype","broadcasturi","displaytext","dns1","dns2","domain","domainid","endip","gateway","isdefault","isshared","issystem","netmask","networkdomain","networkofferingavailability","networkofferingdisplaytext","networkofferingid","networkofferingname","related","startip","name","state","type","vlan","traffictype","zoneid","tags","securitygroupenabled","service"})
protected Network(String id,
                                             @Nullable
                                             String account,
                                             @Nullable
                                             String broadcastDomainType,
                                             @Nullable
                                             URI broadcastURI,
                                             @Nullable
                                             String displayText,
                                             @Nullable
                                             String DNS1,
                                             @Nullable
                                             String DNS2,
                                             @Nullable
                                             String domain,
                                             @Nullable
                                             String domainId,
                                             @Nullable
                                             String endIP,
                                             @Nullable
                                             String gateway,
                                             boolean isDefault,
                                             boolean isShared,
                                             boolean isSystem,
                                             @Nullable
                                             String netmask,
                                             @Nullable
                                             String networkDomain,
                                             @Nullable
                                             String networkOfferingAvailability,
                                             @Nullable
                                             String networkOfferingDisplayText,
                                             @Nullable
                                             String networkOfferingId,
                                             @Nullable
                                             String networkOfferingName,
                                             @Nullable
                                             String related,
                                             @Nullable
                                             String startIP,
                                             @Nullable
                                             String name,
                                             @Nullable
                                             String state,
                                             @Nullable
                                             GuestIPType guestIPType,
                                             @Nullable
                                             String VLAN,
                                             @Nullable
                                             TrafficType trafficType,
                                             @Nullable
                                             String zoneId,
                                             @Nullable
                                             Iterable<String> tags,
                                             boolean securityGroupEnabled,
                                             Set<? extends NetworkService> services)
Method Detail

builder

public static Network.Builder<?> builder()

toBuilder

public Network.Builder<?> toBuilder()

getId

public String getId()
Returns:
network id

getAccount

@Nullable
public String getAccount()
Returns:
the account associated with the network

getBroadcastDomainType

@Nullable
public String getBroadcastDomainType()
Returns:
Broadcast domain type of the network

getBroadcastURI

@Nullable
public URI getBroadcastURI()
Returns:
broadcast uri of the network

getDisplayText

@Nullable
public String getDisplayText()
Returns:
the display text of the zone

getDNS

public List<String> getDNS()

getDomain

@Nullable
public String getDomain()
Returns:
Domain name for the Network

getDomainId

@Nullable
public String getDomainId()
Returns:
the domain id of the Network

getEndIP

@Nullable
public String getEndIP()
Returns:
the end ip of the network

getGateway

@Nullable
public String getGateway()
Returns:
the network's gateway

isDefault

public boolean isDefault()
Returns:
true if network offering is default, false otherwise

isShared

public boolean isShared()
Returns:
true if network offering is shared, false otherwise

isSystem

public boolean isSystem()
Returns:
true if network offering is system, false otherwise

getNetmask

@Nullable
public String getNetmask()
Returns:
the network's netmask

getNetworkDomain

@Nullable
public String getNetworkDomain()
Returns:
the network domain

getNetworkOfferingAvailability

@Nullable
public String getNetworkOfferingAvailability()
Returns:
availability of the network offering the network is created from

getNetworkOfferingDisplayText

@Nullable
public String getNetworkOfferingDisplayText()
Returns:
display text of the network offering the network is created from

getNetworkOfferingId

@Nullable
public String getNetworkOfferingId()
Returns:
network offering id the network is created from

getNetworkOfferingName

@Nullable
public String getNetworkOfferingName()
Returns:
name of the network offering the network is created from

getRelated

@Nullable
public String getRelated()
Returns:
related to what other network configuration

getStartIP

@Nullable
public String getStartIP()
Returns:
the start ip of the network

getName

@Nullable
public String getName()
Returns:
network name

getState

@Nullable
public String getState()
Returns:
state of the network

getGuestIPType

public GuestIPType getGuestIPType()
Returns:
the GuestIPType of the network

getVLAN

@Nullable
public String getVLAN()
Returns:
the vlan range of the zone

getTrafficType

@Nullable
public TrafficType getTrafficType()
Returns:
the traffic type for this network offering

getZoneId

@Nullable
public String getZoneId()
Returns:
zone id of the network

getTags

public Set<String> getTags()
Returns:
the tags for the Network

isSecurityGroupEnabled

public boolean isSecurityGroupEnabled()
Returns:
true if security group is enabled, false otherwise

getServices

public Set<? extends NetworkService> getServices()
Returns:
the list of services

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2013 jclouds. All Rights Reserved.