Class CloudRunV2ServiceTemplateVolumesNfs.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_run_v2_service.CloudRunV2ServiceTemplateVolumesNfs.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumesNfs>
- Enclosing interface:
- CloudRunV2ServiceTemplateVolumesNfs
@Stability(Stable) public static final class CloudRunV2ServiceTemplateVolumesNfs.Builder extends Object implements software.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumesNfs>
A builder forCloudRunV2ServiceTemplateVolumesNfs
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudRunV2ServiceTemplateVolumesNfsbuild()Builds the configured instance.CloudRunV2ServiceTemplateVolumesNfs.Builderpath(String path)Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getPath()CloudRunV2ServiceTemplateVolumesNfs.BuilderreadOnly(com.hashicorp.cdktf.IResolvable readOnly)Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getReadOnly()CloudRunV2ServiceTemplateVolumesNfs.BuilderreadOnly(Boolean readOnly)Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getReadOnly()CloudRunV2ServiceTemplateVolumesNfs.Builderserver(String server)Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getServer()
-
-
-
Method Detail
-
path
@Stability(Stable) public CloudRunV2ServiceTemplateVolumesNfs.Builder path(String path)
Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getPath()- Parameters:
path- Path that is exported by the NFS server. 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#path CloudRunV2Service#path}- Returns:
this
-
server
@Stability(Stable) public CloudRunV2ServiceTemplateVolumesNfs.Builder server(String server)
Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getServer()- Parameters:
server- Hostname or IP address of the NFS server. 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#server CloudRunV2Service#server}- Returns:
this
-
readOnly
@Stability(Stable) public CloudRunV2ServiceTemplateVolumesNfs.Builder readOnly(Boolean readOnly)
Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getReadOnly()- Parameters:
readOnly- If true, mount the NFS volume as read only. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#read_only CloudRunV2Service#read_only}- Returns:
this
-
readOnly
@Stability(Stable) public CloudRunV2ServiceTemplateVolumesNfs.Builder readOnly(com.hashicorp.cdktf.IResolvable readOnly)
Sets the value ofCloudRunV2ServiceTemplateVolumesNfs.getReadOnly()- Parameters:
readOnly- If true, mount the NFS volume as read only. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_run_v2_service#read_only CloudRunV2Service#read_only}- Returns:
this
-
build
@Stability(Stable) public CloudRunV2ServiceTemplateVolumesNfs build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudRunV2ServiceTemplateVolumesNfs>- Returns:
- a new instance of
CloudRunV2ServiceTemplateVolumesNfs - Throws:
NullPointerException- if any required attribute was not provided
-
-