Class FilestoreInstanceFileShares.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.filestore_instance.FilestoreInstanceFileShares.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FilestoreInstanceFileShares>
- Enclosing interface:
- FilestoreInstanceFileShares
@Stability(Stable) public static final class FilestoreInstanceFileShares.Builder extends Object implements software.amazon.jsii.Builder<FilestoreInstanceFileShares>
A builder forFilestoreInstanceFileShares
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilestoreInstanceFileSharesbuild()Builds the configured instance.FilestoreInstanceFileShares.BuildercapacityGb(Number capacityGb)Sets the value ofFilestoreInstanceFileShares.getCapacityGb()FilestoreInstanceFileShares.Buildername(String name)Sets the value ofFilestoreInstanceFileShares.getName()FilestoreInstanceFileShares.BuildernfsExportOptions(com.hashicorp.cdktf.IResolvable nfsExportOptions)Sets the value ofFilestoreInstanceFileShares.getNfsExportOptions()FilestoreInstanceFileShares.BuildernfsExportOptions(List<? extends FilestoreInstanceFileSharesNfsExportOptions> nfsExportOptions)Sets the value ofFilestoreInstanceFileShares.getNfsExportOptions()FilestoreInstanceFileShares.BuildersourceBackup(String sourceBackup)Sets the value ofFilestoreInstanceFileShares.getSourceBackup()
-
-
-
Method Detail
-
capacityGb
@Stability(Stable) public FilestoreInstanceFileShares.Builder capacityGb(Number capacityGb)
Sets the value ofFilestoreInstanceFileShares.getCapacityGb()- Parameters:
capacityGb- File share capacity in GiB. This parameter is required. This must be at least 1024 GiB for the standard tier, or 2560 GiB for the premium tier. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#capacity_gb FilestoreInstance#capacity_gb}- Returns:
this
-
name
@Stability(Stable) public FilestoreInstanceFileShares.Builder name(String name)
Sets the value ofFilestoreInstanceFileShares.getName()- Parameters:
name- The name of the fileshare (16 characters or less). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#name FilestoreInstance#name}- Returns:
this
-
nfsExportOptions
@Stability(Stable) public FilestoreInstanceFileShares.Builder nfsExportOptions(com.hashicorp.cdktf.IResolvable nfsExportOptions)
Sets the value ofFilestoreInstanceFileShares.getNfsExportOptions()- Parameters:
nfsExportOptions- nfs_export_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#nfs_export_options FilestoreInstance#nfs_export_options}- Returns:
this
-
nfsExportOptions
@Stability(Stable) public FilestoreInstanceFileShares.Builder nfsExportOptions(List<? extends FilestoreInstanceFileSharesNfsExportOptions> nfsExportOptions)
Sets the value ofFilestoreInstanceFileShares.getNfsExportOptions()- Parameters:
nfsExportOptions- nfs_export_options block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#nfs_export_options FilestoreInstance#nfs_export_options}- Returns:
this
-
sourceBackup
@Stability(Stable) public FilestoreInstanceFileShares.Builder sourceBackup(String sourceBackup)
Sets the value ofFilestoreInstanceFileShares.getSourceBackup()- Parameters:
sourceBackup- The resource name of the backup, in the format projects/{projectId}/locations/{locationId}/backups/{backupId}, that this file share has been restored from. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#source_backup FilestoreInstance#source_backup}- Returns:
this
-
build
@Stability(Stable) public FilestoreInstanceFileShares build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FilestoreInstanceFileShares>- Returns:
- a new instance of
FilestoreInstanceFileShares - Throws:
NullPointerException- if any required attribute was not provided
-
-