org.jclouds.cloudstack.domain
Class Zone
java.lang.Object
org.jclouds.cloudstack.domain.Zone
- All Implemented Interfaces:
- Comparable<Zone>
public class Zone
- extends Object
- implements Comparable<Zone>
- Author:
- Adrian Cole, Andrei Savu
Constructor Summary |
Zone(long id,
String description,
String displayText,
List<String> DNS,
String domain,
long domainId,
String guestCIDRAddress,
List<String> internalDNS,
String name,
NetworkType networkType,
String vLAN,
boolean securityGroupsEnabled,
AllocationState allocationState,
String dhcpProvider,
String zoneToken)
|
Zone
public Zone(long id,
String description,
String displayText,
List<String> DNS,
String domain,
long domainId,
String guestCIDRAddress,
List<String> internalDNS,
String name,
NetworkType networkType,
String vLAN,
boolean securityGroupsEnabled,
AllocationState allocationState,
String dhcpProvider,
String zoneToken)
builder
public static Zone.Builder builder()
getId
public long getId()
- Returns:
- Zone id
getDescription
public String getDescription()
- Returns:
- Zone description
getDisplayText
public String getDisplayText()
- Returns:
- the display text of the zone
getDNS
public List<String> getDNS()
- Returns:
- the external DNS for the Zone
getDomain
public String getDomain()
- Returns:
- Domain name for the Vms in the zone
getDomainId
@Nullable
public long getDomainId()
- Returns:
- the ID of the containing domain, null for public zones
getGuestCIDRAddress
public String getGuestCIDRAddress()
- Returns:
- the guest CIDR address for the Zone
getInternalDNS
public List<String> getInternalDNS()
- Returns:
- the internal DNS for the Zone
getName
public String getName()
- Returns:
- Zone name
getNetworkType
public NetworkType getNetworkType()
- Returns:
- the network type of the zone; can be Basic or Advanced
getVLAN
public String getVLAN()
- Returns:
- the vlan range of the zone
isSecurityGroupsEnabled
public boolean isSecurityGroupsEnabled()
- Returns:
- true if this zone has security groups enabled
getAllocationState
public AllocationState getAllocationState()
- Returns:
- the allocation state of the cluster
getDhcpProvider
public String getDhcpProvider()
- Returns:
- the dhcp Provider for the Zone
getZoneToken
public String getZoneToken()
- Returns:
- Zone Token
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(Zone arg0)
- Specified by:
compareTo
in interface Comparable<Zone>
Copyright © 2009-2012 jclouds. All Rights Reserved.