Class ApphubServiceProjectAttachmentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.apphub_service_project_attachment.ApphubServiceProjectAttachmentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApphubServiceProjectAttachmentConfig>
- Enclosing interface:
- ApphubServiceProjectAttachmentConfig
@Stability(Stable) public static final class ApphubServiceProjectAttachmentConfig.Builder extends Object implements software.amazon.jsii.Builder<ApphubServiceProjectAttachmentConfig>
A builder forApphubServiceProjectAttachmentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApphubServiceProjectAttachmentConfigbuild()Builds the configured instance.ApphubServiceProjectAttachmentConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ApphubServiceProjectAttachmentConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()ApphubServiceProjectAttachmentConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()ApphubServiceProjectAttachmentConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()ApphubServiceProjectAttachmentConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()ApphubServiceProjectAttachmentConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()ApphubServiceProjectAttachmentConfig.Builderid(String id)Sets the value ofApphubServiceProjectAttachmentConfig.getId()ApphubServiceProjectAttachmentConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()ApphubServiceProjectAttachmentConfig.Builderproject(String project)Sets the value ofApphubServiceProjectAttachmentConfig.getProject()ApphubServiceProjectAttachmentConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()ApphubServiceProjectAttachmentConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()ApphubServiceProjectAttachmentConfig.BuilderserviceProject(String serviceProject)Sets the value ofApphubServiceProjectAttachmentConfig.getServiceProject()ApphubServiceProjectAttachmentConfig.BuilderserviceProjectAttachmentId(String serviceProjectAttachmentId)Sets the value ofApphubServiceProjectAttachmentConfig.getServiceProjectAttachmentId()ApphubServiceProjectAttachmentConfig.Buildertimeouts(ApphubServiceProjectAttachmentTimeouts timeouts)Sets the value ofApphubServiceProjectAttachmentConfig.getTimeouts()
-
-
-
Method Detail
-
serviceProjectAttachmentId
@Stability(Stable) public ApphubServiceProjectAttachmentConfig.Builder serviceProjectAttachmentId(String serviceProjectAttachmentId)
Sets the value ofApphubServiceProjectAttachmentConfig.getServiceProjectAttachmentId()- Parameters:
serviceProjectAttachmentId- Required. This parameter is required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}" Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apphub_service_project_attachment#service_project_attachment_id ApphubServiceProjectAttachment#service_project_attachment_id}- Returns:
this
-
id
@Stability(Stable) public ApphubServiceProjectAttachmentConfig.Builder id(String id)
Sets the value ofApphubServiceProjectAttachmentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apphub_service_project_attachment#id ApphubServiceProjectAttachment#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
-
project
@Stability(Stable) public ApphubServiceProjectAttachmentConfig.Builder project(String project)
Sets the value ofApphubServiceProjectAttachmentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apphub_service_project_attachment#project ApphubServiceProjectAttachment#project}.- Returns:
this
-
serviceProject
@Stability(Stable) public ApphubServiceProjectAttachmentConfig.Builder serviceProject(String serviceProject)
Sets the value ofApphubServiceProjectAttachmentConfig.getServiceProject()- Parameters:
serviceProject- "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number." Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apphub_service_project_attachment#service_project ApphubServiceProjectAttachment#service_project}- Returns:
this
-
timeouts
@Stability(Stable) public ApphubServiceProjectAttachmentConfig.Builder timeouts(ApphubServiceProjectAttachmentTimeouts timeouts)
Sets the value ofApphubServiceProjectAttachmentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/apphub_service_project_attachment#timeouts ApphubServiceProjectAttachment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.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 ApphubServiceProjectAttachmentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ApphubServiceProjectAttachmentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ApphubServiceProjectAttachmentConfig>- Returns:
- a new instance of
ApphubServiceProjectAttachmentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-