Class DeploymentManagerDeploymentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.deployment_manager_deployment.DeploymentManagerDeploymentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeploymentManagerDeploymentConfig>
- Enclosing interface:
- DeploymentManagerDeploymentConfig
@Stability(Stable) public static final class DeploymentManagerDeploymentConfig.Builder extends Object implements software.amazon.jsii.Builder<DeploymentManagerDeploymentConfig>
A builder forDeploymentManagerDeploymentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder name(String name)
Sets the value ofDeploymentManagerDeploymentConfig.getName()- Parameters:
name- Unique name for the deployment. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#name DeploymentManagerDeployment#name}- Returns:
this
-
target
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder target(DeploymentManagerDeploymentTarget target)
Sets the value ofDeploymentManagerDeploymentConfig.getTarget()- Parameters:
target- target block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#target DeploymentManagerDeployment#target}- Returns:
this
-
createPolicy
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder createPolicy(String createPolicy)
Sets the value ofDeploymentManagerDeploymentConfig.getCreatePolicy()- Parameters:
createPolicy- Set the policy to use for creating new resources. Only used on create and update. Valid values are 'CREATE_OR_ACQUIRE' (default) or 'ACQUIRE'. If set to 'ACQUIRE' and resources do not already exist, the deployment will fail. Note that updating this field does not actually affect the deployment, just how it is updated. Default value: "CREATE_OR_ACQUIRE" Possible values: ["ACQUIRE", "CREATE_OR_ACQUIRE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#create_policy DeploymentManagerDeployment#create_policy}- Returns:
this
-
deletePolicy
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder deletePolicy(String deletePolicy)
Sets the value ofDeploymentManagerDeploymentConfig.getDeletePolicy()- Parameters:
deletePolicy- Set the policy to use for deleting new resources on update/delete. Valid values are 'DELETE' (default) or 'ABANDON'. If 'DELETE', resource is deleted after removal from Deployment Manager. If 'ABANDON', the resource is only removed from Deployment Manager and is not actually deleted. Note that updating this field does not actually change the deployment, just how it is updated. Default value: "DELETE" Possible values: ["ABANDON", "DELETE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#delete_policy DeploymentManagerDeployment#delete_policy}- Returns:
this
-
description
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder description(String description)
Sets the value ofDeploymentManagerDeploymentConfig.getDescription()- Parameters:
description- Optional user-provided description of deployment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#description DeploymentManagerDeployment#description}- Returns:
this
-
id
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder id(String id)
Sets the value ofDeploymentManagerDeploymentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#id DeploymentManagerDeployment#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
-
labels
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder labels(com.hashicorp.cdktf.IResolvable labels)
Sets the value ofDeploymentManagerDeploymentConfig.getLabels()- Parameters:
labels- labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}- Returns:
this
-
labels
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder labels(List<? extends DeploymentManagerDeploymentLabels> labels)
Sets the value ofDeploymentManagerDeploymentConfig.getLabels()- Parameters:
labels- labels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#labels DeploymentManagerDeployment#labels}- Returns:
this
-
preview
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder preview(Boolean preview)
Sets the value ofDeploymentManagerDeploymentConfig.getPreview()- Parameters:
preview- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}- Returns:
this
-
preview
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder preview(com.hashicorp.cdktf.IResolvable preview)
Sets the value ofDeploymentManagerDeploymentConfig.getPreview()- Parameters:
preview- If set to true, a deployment is created with "shell" resources that are not actually instantiated. This allows you to preview a deployment. It can be updated to false to actually deploy with real resources. ~>**NOTE:** Deployment Manager does not allow update of a deployment in preview (unless updating to preview=false). Thus, Terraform will force-recreate deployments if either preview is updated to true or if other fields are updated while preview is true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#preview DeploymentManagerDeployment#preview}- Returns:
this
-
project
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder project(String project)
Sets the value ofDeploymentManagerDeploymentConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#project DeploymentManagerDeployment#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DeploymentManagerDeploymentConfig.Builder timeouts(DeploymentManagerDeploymentTimeouts timeouts)
Sets the value ofDeploymentManagerDeploymentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/deployment_manager_deployment#timeouts DeploymentManagerDeployment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.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 DeploymentManagerDeploymentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DeploymentManagerDeploymentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeploymentManagerDeploymentConfig>- Returns:
- a new instance of
DeploymentManagerDeploymentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-