Class SecurityposturePostureDeploymentConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.securityposture_posture_deployment.SecurityposturePostureDeploymentConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecurityposturePostureDeploymentConfig>
- Enclosing interface:
- SecurityposturePostureDeploymentConfig
@Stability(Stable) public static final class SecurityposturePostureDeploymentConfig.Builder extends Object implements software.amazon.jsii.Builder<SecurityposturePostureDeploymentConfig>
A builder forSecurityposturePostureDeploymentConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder location(String location)
Sets the value ofSecurityposturePostureDeploymentConfig.getLocation()- Parameters:
location- The location of the resource, eg. global'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#location SecurityposturePostureDeployment#location}- Returns:
this
-
parent
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder parent(String parent)
Sets the value ofSecurityposturePostureDeploymentConfig.getParent()- Parameters:
parent- The parent of the resource, an organization. Format should be 'organizations/{organization_id}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#parent SecurityposturePostureDeployment#parent}- Returns:
this
-
postureDeploymentId
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder postureDeploymentId(String postureDeploymentId)
Sets the value ofSecurityposturePostureDeploymentConfig.getPostureDeploymentId()- Parameters:
postureDeploymentId- ID of the posture deployment. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#posture_deployment_id SecurityposturePostureDeployment#posture_deployment_id}- Returns:
this
-
postureId
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder postureId(String postureId)
Sets the value ofSecurityposturePostureDeploymentConfig.getPostureId()- Parameters:
postureId- Relative name of the posture which needs to be deployed. It should be in the format: organizations/{organization_id}/locations/{location}/postures/{posture_id}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#posture_id SecurityposturePostureDeployment#posture_id}- Returns:
this
-
postureRevisionId
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder postureRevisionId(String postureRevisionId)
Sets the value ofSecurityposturePostureDeploymentConfig.getPostureRevisionId()- Parameters:
postureRevisionId- Revision_id the posture which needs to be deployed. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#posture_revision_id SecurityposturePostureDeployment#posture_revision_id}- Returns:
this
-
targetResource
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder targetResource(String targetResource)
Sets the value ofSecurityposturePostureDeploymentConfig.getTargetResource()- Parameters:
targetResource- The resource on which the posture should be deployed. This can be in one of the following formats: projects/{project_number}, folders/{folder_number}, organizations/{organization_id}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#target_resource SecurityposturePostureDeployment#target_resource}- Returns:
this
-
description
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder description(String description)
Sets the value ofSecurityposturePostureDeploymentConfig.getDescription()- Parameters:
description- Description of the posture deployment. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#description SecurityposturePostureDeployment#description}- Returns:
this
-
id
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder id(String id)
Sets the value ofSecurityposturePostureDeploymentConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#id SecurityposturePostureDeployment#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
-
timeouts
@Stability(Stable) public SecurityposturePostureDeploymentConfig.Builder timeouts(SecurityposturePostureDeploymentTimeouts timeouts)
Sets the value ofSecurityposturePostureDeploymentConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/securityposture_posture_deployment#timeouts SecurityposturePostureDeployment#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.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 SecurityposturePostureDeploymentConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public SecurityposturePostureDeploymentConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SecurityposturePostureDeploymentConfig>- Returns:
- a new instance of
SecurityposturePostureDeploymentConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-