Class CloudRunV2ServiceTemplateVolumes.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateVolumes.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumes>
- Enclosing interface:
- CloudRunV2ServiceTemplateVolumes
@Stability(Stable) public static final class CloudRunV2ServiceTemplateVolumes.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumes>
A builder forCloudRunV2ServiceTemplateVolumes
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2ServiceTemplateVolumesbuild()Builds the configured instance.CloudRunV2ServiceTemplateVolumes.BuildercloudSqlInstance(CloudRunV2ServiceTemplateVolumesCloudSqlInstance cloudSqlInstance)Sets the value ofCloudRunV2ServiceTemplateVolumes.getCloudSqlInstance()CloudRunV2ServiceTemplateVolumes.Buildergcs(CloudRunV2ServiceTemplateVolumesGcs gcs)Sets the value ofCloudRunV2ServiceTemplateVolumes.getGcs()CloudRunV2ServiceTemplateVolumes.Buildername(String name)Sets the value ofCloudRunV2ServiceTemplateVolumes.getName()CloudRunV2ServiceTemplateVolumes.Buildernfs(CloudRunV2ServiceTemplateVolumesNfs nfs)Sets the value ofCloudRunV2ServiceTemplateVolumes.getNfs()CloudRunV2ServiceTemplateVolumes.Buildersecret(CloudRunV2ServiceTemplateVolumesSecret secret)Sets the value ofCloudRunV2ServiceTemplateVolumes.getSecret()
-
-
-
Method Detail
-
name
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes.Builder name(String name)
Sets the value ofCloudRunV2ServiceTemplateVolumes.getName()- Parameters:
name- Volume's name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#name CloudRunV2Service#name}- Returns:
this
-
cloudSqlInstance
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes.Builder cloudSqlInstance(CloudRunV2ServiceTemplateVolumesCloudSqlInstance cloudSqlInstance)
Sets the value ofCloudRunV2ServiceTemplateVolumes.getCloudSqlInstance()- Parameters:
cloudSqlInstance- cloud_sql_instance block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#cloud_sql_instance CloudRunV2Service#cloud_sql_instance}- Returns:
this
-
gcs
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes.Builder gcs(CloudRunV2ServiceTemplateVolumesGcs gcs)
Sets the value ofCloudRunV2ServiceTemplateVolumes.getGcs()- Parameters:
gcs- gcs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#gcs CloudRunV2Service#gcs}- Returns:
this
-
nfs
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes.Builder nfs(CloudRunV2ServiceTemplateVolumesNfs nfs)
Sets the value ofCloudRunV2ServiceTemplateVolumes.getNfs()- Parameters:
nfs- nfs block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#nfs CloudRunV2Service#nfs}- Returns:
this
-
secret
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes.Builder secret(CloudRunV2ServiceTemplateVolumesSecret secret)
Sets the value ofCloudRunV2ServiceTemplateVolumes.getSecret()- Parameters:
secret- secret block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#secret CloudRunV2Service#secret}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceTemplateVolumes build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumes>- Returns:
- a new instance of
CloudRunV2ServiceTemplateVolumes - Throws:
NullPointerException- if any required attribute was not provided
-
-