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 |
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)
|
Zone
@ConstructorProperties(value={"id","description","displaytext","dns1","dns2","domain","domainid","guestcidraddress","internaldns1","internaldns2","name","networktype","vlan","securitygroupsenabled","allocationstate","dhcpprovider","zonetoken"})
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)
builder
public static Zone.Builder<?> builder()
toBuilder
public Zone.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- Zone id
getDescription
@Nullable
public String getDescription()
- Returns:
- Zone description
getDisplayText
@Nullable
public String getDisplayText()
- Returns:
- the display text of the zone
getDNS
public List<String> getDNS()
- Returns:
- the external DNS for the Zone
getDomain
@Nullable
public String getDomain()
- Returns:
- Domain name for the Vms in the zone
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
getInternalDNS
public List<String> getInternalDNS()
- Returns:
- the internal DNS for the Zone
getName
@Nullable
public String getName()
- Returns:
- Zone name
getNetworkType
@Nullable
public NetworkType getNetworkType()
- Returns:
- the network type of the zone; can be Basic or Advanced
getVLAN
@Nullable
public String getVLAN()
- Returns:
- the vlan range of the zone
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
getDhcpProvider
@Nullable
public String getDhcpProvider()
- Returns:
- the dhcp Provider for the Zone
getZoneToken
@Nullable
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
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(Zone o)
- Specified by:
compareTo in interface Comparable<Zone>
Copyright © 2009-2012 jclouds. All Rights Reserved.