Class CloudAccount

java.lang.Object
com.yahoo.config.provision.CloudAccount
All Implemented Interfaces:
Comparable<CloudAccount>

public class CloudAccount extends Object implements Comparable<CloudAccount>
Identifies an account in a public cloud, such as CloudName.AWS or CloudName.GCP.
Author:
mpolden
  • Field Details

    • empty

      public static final CloudAccount empty
      Empty value. When this is used, either implicitly or explicitly, the zone will use its default account
  • Method Details

    • account

      public String account()
    • cloudName

      public CloudName cloudName()
    • value

      public final String value()
      Returns the serialized value of this account that can be deserialized with from(java.lang.String)
    • isUnspecified

      public boolean isUnspecified()
    • isExclave

      public boolean isExclave(Zone zone)
      Returns true if this is an exclave account.
    • isEnclave

      public boolean isEnclave(Zone zone)
      Returns true if this is an enclave account.
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(CloudAccount o)
      Specified by:
      compareTo in interface Comparable<CloudAccount>
    • from

      public static CloudAccount from(String cloudAccount)