Class Zone


  • public class Zone
    extends java.lang.Object
    The zone in which a cloud deployment may be running. A zone is a combination of an environment and a region.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      Zone​(Environment environment, java.lang.String region)  
    • Constructor Detail

      • Zone

        public Zone​(Environment environment,
                    java.lang.String region)
    • Method Detail

      • region

        public java.lang.String region()
      • toString

        public java.lang.String toString()
        Returns the string environment.region
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • from

        public static Zone from​(java.lang.String zoneString)
        Creates a zone from a string on the form environment.region
        Throws:
        java.lang.IllegalArgumentException - if the given string is not a valid zone