Class FilestoreInstanceNetworks.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.filestore_instance.FilestoreInstanceNetworks.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FilestoreInstanceNetworks>
- Enclosing interface:
- FilestoreInstanceNetworks
@Stability(Stable) public static final class FilestoreInstanceNetworks.Builder extends Object implements software.amazon.jsii.Builder<FilestoreInstanceNetworks>
A builder forFilestoreInstanceNetworks
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilestoreInstanceNetworksbuild()Builds the configured instance.FilestoreInstanceNetworks.BuilderconnectMode(String connectMode)Sets the value ofFilestoreInstanceNetworks.getConnectMode()FilestoreInstanceNetworks.Buildermodes(List<String> modes)Sets the value ofFilestoreInstanceNetworks.getModes()FilestoreInstanceNetworks.Buildernetwork(String network)Sets the value ofFilestoreInstanceNetworks.getNetwork()FilestoreInstanceNetworks.BuilderreservedIpRange(String reservedIpRange)Sets the value ofFilestoreInstanceNetworks.getReservedIpRange()
-
-
-
Method Detail
-
modes
@Stability(Stable) public FilestoreInstanceNetworks.Builder modes(List<String> modes)
Sets the value ofFilestoreInstanceNetworks.getModes()- Parameters:
modes- IP versions for which the instance has IP addresses assigned. Possible values: ["ADDRESS_MODE_UNSPECIFIED", "MODE_IPV4", "MODE_IPV6"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#modes FilestoreInstance#modes}- Returns:
this
-
network
@Stability(Stable) public FilestoreInstanceNetworks.Builder network(String network)
Sets the value ofFilestoreInstanceNetworks.getNetwork()- Parameters:
network- The name of the GCE VPC network to which the instance is connected. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#network FilestoreInstance#network}- Returns:
this
-
connectMode
@Stability(Stable) public FilestoreInstanceNetworks.Builder connectMode(String connectMode)
Sets the value ofFilestoreInstanceNetworks.getConnectMode()- Parameters:
connectMode- The network connect mode of the Filestore instance. If not provided, the connect mode defaults to DIRECT_PEERING. Default value: "DIRECT_PEERING" Possible values: ["DIRECT_PEERING", "PRIVATE_SERVICE_ACCESS"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#connect_mode FilestoreInstance#connect_mode}- Returns:
this
-
reservedIpRange
@Stability(Stable) public FilestoreInstanceNetworks.Builder reservedIpRange(String reservedIpRange)
Sets the value ofFilestoreInstanceNetworks.getReservedIpRange()- Parameters:
reservedIpRange- A /29 CIDR block that identifies the range of IP addresses reserved for this instance. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/filestore_instance#reserved_ip_range FilestoreInstance#reserved_ip_range}- Returns:
this
-
build
@Stability(Stable) public FilestoreInstanceNetworks build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FilestoreInstanceNetworks>- Returns:
- a new instance of
FilestoreInstanceNetworks - Throws:
NullPointerException- if any required attribute was not provided
-
-