Class DataLossPreventionJobTriggerConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.data_loss_prevention_job_trigger.DataLossPreventionJobTriggerConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataLossPreventionJobTriggerConfig>
- Enclosing interface:
- DataLossPreventionJobTriggerConfig
@Stability(Stable) public static final class DataLossPreventionJobTriggerConfig.Builder extends Object implements software.amazon.jsii.Builder<DataLossPreventionJobTriggerConfig>
A builder forDataLossPreventionJobTriggerConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
parent
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder parent(String parent)
Sets the value ofDataLossPreventionJobTriggerConfig.getParent()- Parameters:
parent- The parent of the trigger, either in the format 'projects/{{project}}' or 'projects/{{project}}/locations/{{location}}'. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#parent DataLossPreventionJobTrigger#parent}- Returns:
this
-
triggers
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder triggers(com.hashicorp.cdktf.IResolvable triggers)
Sets the value ofDataLossPreventionJobTriggerConfig.getTriggers()- Parameters:
triggers- triggers block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#triggers DataLossPreventionJobTrigger#triggers}- Returns:
this
-
triggers
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder triggers(List<? extends DataLossPreventionJobTriggerTriggers> triggers)
Sets the value ofDataLossPreventionJobTriggerConfig.getTriggers()- Parameters:
triggers- triggers block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#triggers DataLossPreventionJobTrigger#triggers}- Returns:
this
-
description
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder description(String description)
Sets the value ofDataLossPreventionJobTriggerConfig.getDescription()- Parameters:
description- A description of the job trigger. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#description DataLossPreventionJobTrigger#description}- Returns:
this
-
displayName
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder displayName(String displayName)
Sets the value ofDataLossPreventionJobTriggerConfig.getDisplayName()- Parameters:
displayName- User set display name of the job trigger. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#display_name DataLossPreventionJobTrigger#display_name}- Returns:
this
-
id
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder id(String id)
Sets the value ofDataLossPreventionJobTriggerConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#id DataLossPreventionJobTrigger#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
-
inspectJob
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder inspectJob(DataLossPreventionJobTriggerInspectJob inspectJob)
Sets the value ofDataLossPreventionJobTriggerConfig.getInspectJob()- Parameters:
inspectJob- inspect_job block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#inspect_job DataLossPreventionJobTrigger#inspect_job}- Returns:
this
-
status
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder status(String status)
Sets the value ofDataLossPreventionJobTriggerConfig.getStatus()- Parameters:
status- Whether the trigger is currently active. Default value: "HEALTHY" Possible values: ["PAUSED", "HEALTHY", "CANCELLED"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#status DataLossPreventionJobTrigger#status}- Returns:
this
-
timeouts
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder timeouts(DataLossPreventionJobTriggerTimeouts timeouts)
Sets the value ofDataLossPreventionJobTriggerConfig.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_job_trigger#timeouts DataLossPreventionJobTrigger#timeouts}- Returns:
this
-
triggerId
@Stability(Stable) public DataLossPreventionJobTriggerConfig.Builder triggerId(String triggerId)
Sets the value ofDataLossPreventionJobTriggerConfig.getTriggerId()- Parameters:
triggerId- The trigger id can contain uppercase and lowercase letters, numbers, and hyphens;. that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/data_loss_prevention_job_trigger#trigger_id DataLossPreventionJobTrigger#trigger_id}- Returns:
this
-
connection
@Stability(Experimental) public DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.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 DataLossPreventionJobTriggerConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DataLossPreventionJobTriggerConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataLossPreventionJobTriggerConfig>- Returns:
- a new instance of
DataLossPreventionJobTriggerConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-