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 class
Zone.Builder<T extends Zone.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
Zone(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()
int
compareTo(Zone o)
boolean
equals(Object obj)
AllocationState
getAllocationState()
String
getDescription()
String
getDhcpProvider()
String
getDisplayText()
List<String>
getDNS()
String
getDomain()
String
getDomainId()
String
getGuestCIDRAddress()
String
getId()
List<String>
getInternalDNS()
String
getName()
NetworkType
getNetworkType()
Set<Tag>
getTags()
String
getVLAN()
String
getZoneToken()
int
hashCode()
boolean
isSecurityGroupsEnabled()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
Zone.Builder<?>
toBuilder()
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<Zone>
-
-