Class ServiceAccountKeyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.service_account_key.ServiceAccountKeyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAccountKeyConfig>
- Enclosing interface:
- ServiceAccountKeyConfig
@Stability(Stable) public static final class ServiceAccountKeyConfig.Builder extends Object implements software.amazon.jsii.Builder<ServiceAccountKeyConfig>
A builder forServiceAccountKeyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountKeyConfigbuild()Builds the configured instance.ServiceAccountKeyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ServiceAccountKeyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ServiceAccountKeyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ServiceAccountKeyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ServiceAccountKeyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ServiceAccountKeyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ServiceAccountKeyConfig.Builderid(String id)Sets the value ofServiceAccountKeyConfig.getId()ServiceAccountKeyConfig.Builderkeepers(Map<String,String> keepers)Sets the value ofServiceAccountKeyConfig.getKeepers()ServiceAccountKeyConfig.BuilderkeyAlgorithm(String keyAlgorithm)Sets the value ofServiceAccountKeyConfig.getKeyAlgorithm()ServiceAccountKeyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ServiceAccountKeyConfig.BuilderprivateKeyType(String privateKeyType)Sets the value ofServiceAccountKeyConfig.getPrivateKeyType()ServiceAccountKeyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ServiceAccountKeyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ServiceAccountKeyConfig.BuilderpublicKeyData(String publicKeyData)Sets the value ofServiceAccountKeyConfig.getPublicKeyData()ServiceAccountKeyConfig.BuilderpublicKeyType(String publicKeyType)Sets the value ofServiceAccountKeyConfig.getPublicKeyType()ServiceAccountKeyConfig.BuilderserviceAccountId(String serviceAccountId)Sets the value ofServiceAccountKeyConfig.getServiceAccountId()
-
-
-
Method Detail
-
serviceAccountId
@Stability(Stable) public ServiceAccountKeyConfig.Builder serviceAccountId(String serviceAccountId)
Sets the value ofServiceAccountKeyConfig.getServiceAccountId()- Parameters:
serviceAccountId- The ID of the parent service account of the key. This parameter is required. This can be a string in the format {ACCOUNT} or projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}, where {ACCOUNT} is the email address or unique id of the service account. If the {ACCOUNT} syntax is used, the project will be inferred from the provider's configuration. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#service_account_id ServiceAccountKey#service_account_id}- Returns:
this
-
id
@Stability(Stable) public ServiceAccountKeyConfig.Builder id(String id)
Sets the value ofServiceAccountKeyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#id ServiceAccountKey#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
keepers
@Stability(Stable) public ServiceAccountKeyConfig.Builder keepers(Map<String,String> keepers)
Sets the value ofServiceAccountKeyConfig.getKeepers()- Parameters:
keepers- Arbitrary map of values that, when changed, will trigger recreation of resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#keepers ServiceAccountKey#keepers}- Returns:
this
-
keyAlgorithm
@Stability(Stable) public ServiceAccountKeyConfig.Builder keyAlgorithm(String keyAlgorithm)
Sets the value ofServiceAccountKeyConfig.getKeyAlgorithm()- Parameters:
keyAlgorithm- The algorithm used to generate the key, used only on create. KEY_ALG_RSA_2048 is the default algorithm. Valid values are: "KEY_ALG_RSA_1024", "KEY_ALG_RSA_2048". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#key_algorithm ServiceAccountKey#key_algorithm}- Returns:
this
-
privateKeyType
@Stability(Stable) public ServiceAccountKeyConfig.Builder privateKeyType(String privateKeyType)
Sets the value ofServiceAccountKeyConfig.getPrivateKeyType()- Parameters:
privateKeyType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#private_key_type ServiceAccountKey#private_key_type}.- Returns:
this
-
publicKeyData
@Stability(Stable) public ServiceAccountKeyConfig.Builder publicKeyData(String publicKeyData)
Sets the value ofServiceAccountKeyConfig.getPublicKeyData()- Parameters:
publicKeyData- A field that allows clients to upload their own public key. If set, use this public key data to create a service account key for given service account. Please note, the expected format for this field is a base64 encoded X509_PEM. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#public_key_data ServiceAccountKey#public_key_data}- Returns:
this
-
publicKeyType
@Stability(Stable) public ServiceAccountKeyConfig.Builder publicKeyType(String publicKeyType)
Sets the value ofServiceAccountKeyConfig.getPublicKeyType()- Parameters:
publicKeyType- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/service_account_key#public_key_type ServiceAccountKey#public_key_type}.- Returns:
this
-
connection
@Stability(Experimental) public ServiceAccountKeyConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public ServiceAccountKeyConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ServiceAccountKeyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ServiceAccountKeyConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public ServiceAccountKeyConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public ServiceAccountKeyConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public ServiceAccountKeyConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public ServiceAccountKeyConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public ServiceAccountKeyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ServiceAccountKeyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceAccountKeyConfig>- Returns:
- a new instance of
ServiceAccountKeyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-