Class FilestoreInstanceFileSharesNfsExportOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.filestore_instance.FilestoreInstanceFileSharesNfsExportOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FilestoreInstanceFileSharesNfsExportOptions>
- Enclosing interface:
- FilestoreInstanceFileSharesNfsExportOptions
@Stability(Stable) public static final class FilestoreInstanceFileSharesNfsExportOptions.Builder extends Object implements software.amazon.jsii.Builder<FilestoreInstanceFileSharesNfsExportOptions>
A builder forFilestoreInstanceFileSharesNfsExportOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilestoreInstanceFileSharesNfsExportOptions.BuilderaccessMode(String accessMode)Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAccessMode()FilestoreInstanceFileSharesNfsExportOptions.BuilderanonGid(Number anonGid)Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAnonGid()FilestoreInstanceFileSharesNfsExportOptions.BuilderanonUid(Number anonUid)Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAnonUid()FilestoreInstanceFileSharesNfsExportOptionsbuild()Builds the configured instance.FilestoreInstanceFileSharesNfsExportOptions.BuilderipRanges(List<String> ipRanges)Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getIpRanges()FilestoreInstanceFileSharesNfsExportOptions.BuildersquashMode(String squashMode)Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getSquashMode()
-
-
-
Method Detail
-
accessMode
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions.Builder accessMode(String accessMode)
Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAccessMode()- Parameters:
accessMode- Either READ_ONLY, for allowing only read requests on the exported directory, or READ_WRITE, for allowing both read and write requests. The default is READ_WRITE. Default value: "READ_WRITE" Possible values: ["READ_ONLY", "READ_WRITE"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#access_mode FilestoreInstance#access_mode}- Returns:
this
-
anonGid
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions.Builder anonGid(Number anonGid)
Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAnonGid()- Parameters:
anonGid- An integer representing the anonymous group id with a default value of 65534. Anon_gid may only be set with squashMode of ROOT_SQUASH. An error will be returned if this field is specified for other squashMode settings. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#anon_gid FilestoreInstance#anon_gid}- Returns:
this
-
anonUid
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions.Builder anonUid(Number anonUid)
Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getAnonUid()- Parameters:
anonUid- An integer representing the anonymous user id with a default value of 65534. Anon_uid may only be set with squashMode of ROOT_SQUASH. An error will be returned if this field is specified for other squashMode settings. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#anon_uid FilestoreInstance#anon_uid}- Returns:
this
-
ipRanges
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions.Builder ipRanges(List<String> ipRanges)
Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getIpRanges()- Parameters:
ipRanges- List of either IPv4 addresses, or ranges in CIDR notation which may mount the file share. Overlapping IP ranges are not allowed, both within and across NfsExportOptions. An error will be returned. The limit is 64 IP ranges/addresses for each FileShareConfig among all NfsExportOptions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#ip_ranges FilestoreInstance#ip_ranges}- Returns:
this
-
squashMode
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions.Builder squashMode(String squashMode)
Sets the value ofFilestoreInstanceFileSharesNfsExportOptions.getSquashMode()- Parameters:
squashMode- Either NO_ROOT_SQUASH, for allowing root access on the exported directory, or ROOT_SQUASH, for not allowing root access. The default is NO_ROOT_SQUASH. Default value: "NO_ROOT_SQUASH" Possible values: ["NO_ROOT_SQUASH", "ROOT_SQUASH"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#squash_mode FilestoreInstance#squash_mode}- Returns:
this
-
build
@Stability(Stable) public FilestoreInstanceFileSharesNfsExportOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FilestoreInstanceFileSharesNfsExportOptions>- Returns:
- a new instance of
FilestoreInstanceFileSharesNfsExportOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-