Package ai.vespa.cloud
Class Zone
- java.lang.Object
-
- ai.vespa.cloud.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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Environment
environment()
boolean
equals(java.lang.Object o)
static Zone
from(java.lang.String zoneString)
Creates a zone from a string on the form environment.regionint
hashCode()
java.lang.String
region()
java.lang.String
toString()
Returns the string environment.region
-
-
-
Constructor Detail
-
Zone
public Zone(Environment environment, java.lang.String region)
-
-
Method Detail
-
environment
public Environment environment()
-
region
public java.lang.String region()
-
toString
public java.lang.String toString()
Returns the string environment.region- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.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
-
-