Package 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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZone.Builder<T extends Zone.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protectedZone(String id, String description, String displayText, String dns1, String dns2, String domain, String domainId, String guestCIDRAddress, String internalDNS1, String internalDNS2, String name, NetworkType networkType, String vlan, boolean securityGroupsEnabled, AllocationState allocationState, String dhcpProvider, String zoneToken, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Zone.Builder<?>builder()intcompareTo(Zone o)booleanequals(Object obj)AllocationStategetAllocationState()StringgetDescription()StringgetDhcpProvider()StringgetDisplayText()List<String>getDNS()StringgetDomain()StringgetDomainId()StringgetGuestCIDRAddress()StringgetId()List<String>getInternalDNS()StringgetName()NetworkTypegetNetworkType()Set<Tag>getTags()StringgetVLAN()StringgetZoneToken()inthashCode()booleanisSecurityGroupsEnabled()protected com.google.common.base.MoreObjects.ToStringHelperstring()Zone.Builder<?>toBuilder()StringtoString()
-
-
-
Constructor Detail
-
Zone
@ConstructorProperties({"id","description","displaytext","dns1","dns2","domain","domainid","guestcidraddress","internaldns1","internaldns2","name","networktype","vlan","securitygroupsenabled","allocationstate","dhcpprovider","zonetoken","tags"}) protected Zone(String id, @Nullable String description, @Nullable String displayText, @Nullable String dns1, @Nullable String dns2, @Nullable String domain, @Nullable String domainId, @Nullable String guestCIDRAddress, @Nullable String internalDNS1, @Nullable String internalDNS2, @Nullable String name, @Nullable NetworkType networkType, @Nullable String vlan, boolean securityGroupsEnabled, @Nullable AllocationState allocationState, @Nullable String dhcpProvider, @Nullable String zoneToken, @Nullable Set<Tag> tags)
-
-
Method Detail
-
builder
public static Zone.Builder<?> builder()
-
toBuilder
public Zone.Builder<?> toBuilder()
-
getId
public String getId()
- Returns:
- Zone id
-
getDomainId
@Nullable public String getDomainId()
- Returns:
- the ID of the containing domain, null for public zones
-
getGuestCIDRAddress
@Nullable public String getGuestCIDRAddress()
- Returns:
- the guest CIDR address for the Zone
-
getNetworkType
@Nullable public NetworkType getNetworkType()
- Returns:
- the network type of the zone; can be Basic or Advanced
-
isSecurityGroupsEnabled
public boolean isSecurityGroupsEnabled()
- Returns:
- true if this zone has security groups enabled
-
getAllocationState
@Nullable public AllocationState getAllocationState()
- Returns:
- the allocation state of the cluster
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(Zone o)
- Specified by:
compareToin interfaceComparable<Zone>
-
-