Package com.yahoo.config.provision
Class CloudAccount
java.lang.Object
ai.vespa.validation.StringWrapper<T>
ai.vespa.validation.PatternedStringWrapper<CloudAccount>
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloudAccount
boolean
Returns true if this is an enclave account.boolean
void
Verifies this account is a valid AWS account ID, or throw an IllegalArgumentException.static void
requireAwsAccountId
(String accountId) Verifies accountId is a valid AWS account ID, or throw an IllegalArgumentException.void
Verifies this account is a valid GCP project ID, or throw an IllegalArgumentException.static void
requireGcpProjectId
(String projectId) Verifies accountId is a valid GCP project ID, or throw an IllegalArgumentException.toString()
Methods inherited from class ai.vespa.validation.StringWrapper
compareTo, equals, hashCode, value
-
Field Details
-
empty
Empty value. When this is used, either implicitly or explicitly, the zone will use its default account
-
-
Method Details
-
requireAwsAccountId
Verifies accountId is a valid AWS account ID, or throw an IllegalArgumentException. -
requireGcpProjectId
Verifies accountId is a valid GCP project ID, or throw an IllegalArgumentException. -
isUnspecified
public boolean isUnspecified() -
isEnclave
Returns true if this is an enclave account. -
requireAwsAccountId
public void requireAwsAccountId()Verifies this account is a valid AWS account ID, or throw an IllegalArgumentException. -
requireGcpProjectId
public void requireGcpProjectId()Verifies this account is a valid GCP project ID, or throw an IllegalArgumentException. -
from
-
toString
- Overrides:
toString
in classai.vespa.validation.StringWrapper<CloudAccount>
-