Class Zone

java.lang.Object
org.jclouds.cloudstack.domain.Zone
All Implemented Interfaces:
Comparable<Zone>

public class Zone extends Object implements Comparable<Zone>
  • Constructor Details

    • 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 Details

    • 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
    • getTags

      public Set<Tag> getTags()
      Returns:
      the tags for the zone
    • 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.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Zone o)
      Specified by:
      compareTo in interface Comparable<Zone>