Class CloudRunV2ServiceBinaryAuthorization.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceBinaryAuthorization.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceBinaryAuthorization>
- Enclosing interface:
- CloudRunV2ServiceBinaryAuthorization
@Stability(Stable) public static final class CloudRunV2ServiceBinaryAuthorization.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceBinaryAuthorization>
A builder forCloudRunV2ServiceBinaryAuthorization
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2ServiceBinaryAuthorization.BuilderbreakglassJustification(String breakglassJustification)Sets the value ofCloudRunV2ServiceBinaryAuthorization.getBreakglassJustification()CloudRunV2ServiceBinaryAuthorizationbuild()Builds the configured instance.CloudRunV2ServiceBinaryAuthorization.Builderpolicy(String policy)Sets the value ofCloudRunV2ServiceBinaryAuthorization.getPolicy()CloudRunV2ServiceBinaryAuthorization.BuilderuseDefault(com.hashicorp.cdktf.IResolvable useDefault)Sets the value ofCloudRunV2ServiceBinaryAuthorization.getUseDefault()CloudRunV2ServiceBinaryAuthorization.BuilderuseDefault(Boolean useDefault)Sets the value ofCloudRunV2ServiceBinaryAuthorization.getUseDefault()
-
-
-
Method Detail
-
breakglassJustification
@Stability(Stable) public CloudRunV2ServiceBinaryAuthorization.Builder breakglassJustification(String breakglassJustification)
Sets the value ofCloudRunV2ServiceBinaryAuthorization.getBreakglassJustification()- Parameters:
breakglassJustification- If present, indicates to use Breakglass using this justification. If useDefault is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#breakglass_justification CloudRunV2Service#breakglass_justification}- Returns:
this
-
policy
@Stability(Stable) public CloudRunV2ServiceBinaryAuthorization.Builder policy(String policy)
Sets the value ofCloudRunV2ServiceBinaryAuthorization.getPolicy()- Parameters:
policy- The path to a binary authorization policy. Format: projects/{project}/platforms/cloudRun/{policy-name}. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#policy CloudRunV2Service#policy}- Returns:
this
-
useDefault
@Stability(Stable) public CloudRunV2ServiceBinaryAuthorization.Builder useDefault(Boolean useDefault)
Sets the value ofCloudRunV2ServiceBinaryAuthorization.getUseDefault()- Parameters:
useDefault- If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#use_default CloudRunV2Service#use_default}- Returns:
this
-
useDefault
@Stability(Stable) public CloudRunV2ServiceBinaryAuthorization.Builder useDefault(com.hashicorp.cdktf.IResolvable useDefault)
Sets the value ofCloudRunV2ServiceBinaryAuthorization.getUseDefault()- Parameters:
useDefault- If True, indicates to use the default project's binary authorization policy. If False, binary authorization will be disabled. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#use_default CloudRunV2Service#use_default}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceBinaryAuthorization build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceBinaryAuthorization>- Returns:
- a new instance of
CloudRunV2ServiceBinaryAuthorization - Throws:
NullPointerException- if any required attribute was not provided
-
-