Class DataLossPreventionDiscoveryConfigConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.data_loss_prevention_discovery_config.DataLossPreventionDiscoveryConfigConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataLossPreventionDiscoveryConfigConfig>
- Enclosing interface:
- DataLossPreventionDiscoveryConfigConfig
@Stability(Stable) public static final class DataLossPreventionDiscoveryConfigConfig.Builder extends Object implements software.amazon.jsii.Builder<DataLossPreventionDiscoveryConfigConfig>
A builder forDataLossPreventionDiscoveryConfigConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
location
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder location(String location)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getLocation()- Parameters:
location- Location to create the discovery config in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#location DataLossPreventionDiscoveryConfig#location}- Returns:
this
-
parent
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder parent(String parent)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getParent()- Parameters:
parent- The parent of the discovery config in any of the following formats:. This parameter is required. * 'projects/{{project}}/locations/{{location}}' * 'organizations/{{organization_id}}/locations/{{location}}' Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#parent DataLossPreventionDiscoveryConfig#parent}- Returns:
this
-
actions
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder actions(com.hashicorp.cdktf.IResolvable actions)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getActions()- Parameters:
actions- actions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#actions DataLossPreventionDiscoveryConfig#actions}- Returns:
this
-
actions
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder actions(List<? extends DataLossPreventionDiscoveryConfigActions> actions)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getActions()- Parameters:
actions- actions block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#actions DataLossPreventionDiscoveryConfig#actions}- Returns:
this
-
displayName
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder displayName(String displayName)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getDisplayName()- Parameters:
displayName- Display Name (max 1000 Chars). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#display_name DataLossPreventionDiscoveryConfig#display_name}- Returns:
this
-
id
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder id(String id)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#id DataLossPreventionDiscoveryConfig#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
-
inspectTemplates
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder inspectTemplates(List<String> inspectTemplates)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getInspectTemplates()- Parameters:
inspectTemplates- Detection logic for profile generation. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#inspect_templates DataLossPreventionDiscoveryConfig#inspect_templates}- Returns:
this
-
orgConfig
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder orgConfig(DataLossPreventionDiscoveryConfigOrgConfig orgConfig)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getOrgConfig()- Parameters:
orgConfig- org_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#org_config DataLossPreventionDiscoveryConfig#org_config}- Returns:
this
-
status
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder status(String status)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getStatus()- Parameters:
status- Required. A status for this configuration Possible values: ["RUNNING", "PAUSED"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#status DataLossPreventionDiscoveryConfig#status}- Returns:
this
-
targets
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder targets(com.hashicorp.cdktf.IResolvable targets)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getTargets()- Parameters:
targets- targets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#targets DataLossPreventionDiscoveryConfig#targets}- Returns:
this
-
targets
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder targets(List<? extends DataLossPreventionDiscoveryConfigTargets> targets)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getTargets()- Parameters:
targets- targets block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#targets DataLossPreventionDiscoveryConfig#targets}- Returns:
this
-
timeouts
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig.Builder timeouts(DataLossPreventionDiscoveryConfigTimeouts timeouts)
Sets the value ofDataLossPreventionDiscoveryConfigConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_discovery_config#timeouts DataLossPreventionDiscoveryConfig#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.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 DataLossPreventionDiscoveryConfigConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataLossPreventionDiscoveryConfigConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataLossPreventionDiscoveryConfigConfig>- Returns:
- a new instance of
DataLossPreventionDiscoveryConfigConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-