Class ContainerAnalysisOccurrenceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.container_analysis_occurrence.ContainerAnalysisOccurrenceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerAnalysisOccurrenceConfig>
- Enclosing interface:
- ContainerAnalysisOccurrenceConfig
@Stability(Stable) public static final class ContainerAnalysisOccurrenceConfig.Builder extends Object implements software.amazon.jsii.Builder<ContainerAnalysisOccurrenceConfig>
A builder forContainerAnalysisOccurrenceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
attestation
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder attestation(ContainerAnalysisOccurrenceAttestation attestation)
Sets the value ofContainerAnalysisOccurrenceConfig.getAttestation()- Parameters:
attestation- attestation block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#attestation ContainerAnalysisOccurrence#attestation}- Returns:
this
-
noteName
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder noteName(String noteName)
Sets the value ofContainerAnalysisOccurrenceConfig.getNoteName()- Parameters:
noteName- The analysis note associated with this occurrence, in the form of projects/[PROJECT]/notes/[NOTE_ID]. This parameter is required. This field can be used as a filter in list requests. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#note_name ContainerAnalysisOccurrence#note_name}- Returns:
this
-
resourceUri
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder resourceUri(String resourceUri)
Sets the value ofContainerAnalysisOccurrenceConfig.getResourceUri()- Parameters:
resourceUri- Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#resource_uri ContainerAnalysisOccurrence#resource_uri}- Returns:
this
-
id
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder id(String id)
Sets the value ofContainerAnalysisOccurrenceConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#id ContainerAnalysisOccurrence#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 ContainerAnalysisOccurrenceConfig.Builder project(String project)
Sets the value ofContainerAnalysisOccurrenceConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#project ContainerAnalysisOccurrence#project}.- Returns:
this
-
remediation
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder remediation(String remediation)
Sets the value ofContainerAnalysisOccurrenceConfig.getRemediation()- Parameters:
remediation- A description of actions that can be taken to remedy the note. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#remediation ContainerAnalysisOccurrence#remediation}- Returns:
this
-
timeouts
@Stability(Stable) public ContainerAnalysisOccurrenceConfig.Builder timeouts(ContainerAnalysisOccurrenceTimeouts timeouts)
Sets the value ofContainerAnalysisOccurrenceConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/container_analysis_occurrence#timeouts ContainerAnalysisOccurrence#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.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 ContainerAnalysisOccurrenceConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ContainerAnalysisOccurrenceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContainerAnalysisOccurrenceConfig>- Returns:
- a new instance of
ContainerAnalysisOccurrenceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-