Package com.yahoo.config.provision
Class CloudAccount
java.lang.Object
com.yahoo.config.provision.CloudAccount
- All Implemented Interfaces:
Comparable<CloudAccount>
Identifies an account in a public cloud, such as
CloudName.AWS or CloudName.GCP.- Author:
- mpolden
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the cloud-specific account identifier: The account ID in AWS, the subscription ID in Azure, the project ID in GCP.intbooleanstatic CloudAccountstatic CloudAccountReturns a CloudAccount from its serialized value (inverse ofvalue()).inthashCode()booleanReturns true if this is an enclave account.booleanReturns true if this is an exclave account.booleantoString()final Stringvalue()Returns the serialized value of this account that can be deserialized withfrom(String)
-
Field Details
-
empty
Empty value. When this is used, either implicitly or explicitly, the zone will use its default account
-
-
Method Details
-
cloudName
-
account
Returns the cloud-specific account identifier: The account ID in AWS, the subscription ID in Azure, the project ID in GCP. -
value
Returns the serialized value of this account that can be deserialized withfrom(String) -
isUnspecified
public boolean isUnspecified() -
isExclave
Returns true if this is an exclave account. -
isEnclave
Returns true if this is an enclave account. -
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<CloudAccount>
-
from
-
from
Returns a CloudAccount from its serialized value (inverse ofvalue()).
-