Class TagsTagKeyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.tags_tag_key.TagsTagKeyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<TagsTagKeyConfig>
- Enclosing interface:
- TagsTagKeyConfig
@Stability(Stable) public static final class TagsTagKeyConfig.Builder extends Object implements software.amazon.jsii.Builder<TagsTagKeyConfig>
A builder forTagsTagKeyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagsTagKeyConfigbuild()Builds the configured instance.TagsTagKeyConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()TagsTagKeyConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()TagsTagKeyConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()TagsTagKeyConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()TagsTagKeyConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()TagsTagKeyConfig.Builderdescription(String description)Sets the value ofTagsTagKeyConfig.getDescription()TagsTagKeyConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()TagsTagKeyConfig.Builderid(String id)Sets the value ofTagsTagKeyConfig.getId()TagsTagKeyConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()TagsTagKeyConfig.Builderparent(String parent)Sets the value ofTagsTagKeyConfig.getParent()TagsTagKeyConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()TagsTagKeyConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()TagsTagKeyConfig.Builderpurpose(String purpose)Sets the value ofTagsTagKeyConfig.getPurpose()TagsTagKeyConfig.BuilderpurposeData(Map<String,String> purposeData)Sets the value ofTagsTagKeyConfig.getPurposeData()TagsTagKeyConfig.BuildershortName(String shortName)Sets the value ofTagsTagKeyConfig.getShortName()TagsTagKeyConfig.Buildertimeouts(TagsTagKeyTimeouts timeouts)Sets the value ofTagsTagKeyConfig.getTimeouts()
-
-
-
Method Detail
-
parent
@Stability(Stable) public TagsTagKeyConfig.Builder parent(String parent)
Sets the value ofTagsTagKeyConfig.getParent()- Parameters:
parent- Input only. The resource name of the new TagKey's parent. Must be of the form organizations/{org_id} or projects/{project_id_or_number}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#parent TagsTagKey#parent}- Returns:
this
-
shortName
@Stability(Stable) public TagsTagKeyConfig.Builder shortName(String shortName)
Sets the value ofTagsTagKeyConfig.getShortName()- Parameters:
shortName- Input only. This parameter is required. The user friendly name for a TagKey. The short name should be unique for TagKeys within the same tag namespace. The short name must be 1-63 characters, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#short_name TagsTagKey#short_name}- Returns:
this
-
description
@Stability(Stable) public TagsTagKeyConfig.Builder description(String description)
Sets the value ofTagsTagKeyConfig.getDescription()- Parameters:
description- User-assigned description of the TagKey. Must not exceed 256 characters. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#description TagsTagKey#description}- Returns:
this
-
id
@Stability(Stable) public TagsTagKeyConfig.Builder id(String id)
Sets the value ofTagsTagKeyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#id TagsTagKey#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
-
purpose
@Stability(Stable) public TagsTagKeyConfig.Builder purpose(String purpose)
Sets the value ofTagsTagKeyConfig.getPurpose()- Parameters:
purpose- Optional. A purpose cannot be changed once set. A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. Possible values: ["GCE_FIREWALL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#purpose TagsTagKey#purpose}- Returns:
this
-
purposeData
@Stability(Stable) public TagsTagKeyConfig.Builder purposeData(Map<String,String> purposeData)
Sets the value ofTagsTagKeyConfig.getPurposeData()- Parameters:
purposeData- Optional. Purpose data cannot be changed once set. Purpose data corresponds to the policy system that the tag is intended for. For example, the GCE_FIREWALL purpose expects data in the following format: 'network = "/ "'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#purpose_data TagsTagKey#purpose_data} - Returns:
this
-
timeouts
@Stability(Stable) public TagsTagKeyConfig.Builder timeouts(TagsTagKeyTimeouts timeouts)
Sets the value ofTagsTagKeyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/tags_tag_key#timeouts TagsTagKey#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public TagsTagKeyConfig.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 TagsTagKeyConfig.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 TagsTagKeyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public TagsTagKeyConfig.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 TagsTagKeyConfig.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 TagsTagKeyConfig.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 TagsTagKeyConfig.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 TagsTagKeyConfig.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 TagsTagKeyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public TagsTagKeyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TagsTagKeyConfig>- Returns:
- a new instance of
TagsTagKeyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-