org.jclouds.cloudstack.domain
Class Network

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Network
All Implemented Interfaces:
Comparable<Network>

public class Network
extends Object
implements Comparable<Network>

Author:
Adrian Cole

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

Constructor Detail

Network

public Network(long id,
               String broadcastDomainType,
               URI broadcastURI,
               String displayText,
               List<String> DNS,
               String domain,
               long domainId,
               String endIP,
               String gateway,
               boolean isDefault,
               boolean isShared,
               boolean isSystem,
               String netmask,
               String networkDomain,
               String networkOfferingAvailability,
               String networkOfferingDisplayText,
               long networkOfferingId,
               String networkOfferingName,
               long related,
               String startIP,
               String name,
               String state,
               GuestIPType type,
               String vLAN,
               TrafficType trafficType,
               long zoneId,
               Set<? extends NetworkService> services,
               Set<String> tags,
               boolean securityGroupEnabled,
               String account)
Method Detail

builder

public static Network.Builder builder()

getId

public long getId()
Returns:
network id

getBroadcastDomainType

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

getBroadcastURI

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

getDisplayText

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

getDNS

public List<String> getDNS()
Returns:
the external DNS for the network

getDomain

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

getDomainId

public long getDomainId()
Returns:
the domain id of the Network

getAccount

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

getEndIP

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

getGateway

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

getName

public String getName()
Returns:
network name

getGuestIPType

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

getState

public String getState()
Returns:
state of the network

getVLAN

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

getTrafficType

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

getNetmask

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

getNetworkDomain

public String getNetworkDomain()
Returns:
the network domain

getNetworkOfferingAvailability

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

getNetworkOfferingDisplayText

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

getNetworkOfferingId

public long getNetworkOfferingId()
Returns:
network offering id the network is created from

getNetworkOfferingName

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

getRelated

public long getRelated()
Returns:
related to what other network configuration

getStartIP

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

getZoneId

public long getZoneId()
Returns:
zone id of the network

getServices

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

isSecurityGroupEnabled

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

getTags

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Network arg0)
Specified by:
compareTo in interface Comparable<Network>


Copyright © 2009-2012 jclouds. All Rights Reserved.