Class ComputePerInstanceConfigPreservedStateExternalIp.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_per_instance_config.ComputePerInstanceConfigPreservedStateExternalIp.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputePerInstanceConfigPreservedStateExternalIp>
- Enclosing interface:
- ComputePerInstanceConfigPreservedStateExternalIp
@Stability(Stable) public static final class ComputePerInstanceConfigPreservedStateExternalIp.Builder extends Object implements software.amazon.jsii.Builder<ComputePerInstanceConfigPreservedStateExternalIp>
A builder forComputePerInstanceConfigPreservedStateExternalIp
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputePerInstanceConfigPreservedStateExternalIp.BuilderautoDelete(String autoDelete)Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getAutoDelete()ComputePerInstanceConfigPreservedStateExternalIpbuild()Builds the configured instance.ComputePerInstanceConfigPreservedStateExternalIp.BuilderinterfaceName(String interfaceName)Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getInterfaceName()ComputePerInstanceConfigPreservedStateExternalIp.BuilderipAddress(ComputePerInstanceConfigPreservedStateExternalIpIpAddress ipAddress)Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getIpAddress()
-
-
-
Method Detail
-
interfaceName
@Stability(Stable) public ComputePerInstanceConfigPreservedStateExternalIp.Builder interfaceName(String interfaceName)
Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getInterfaceName()- Parameters:
interfaceName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_per_instance_config#interface_name ComputePerInstanceConfig#interface_name}. This parameter is required.- Returns:
this
-
autoDelete
@Stability(Stable) public ComputePerInstanceConfigPreservedStateExternalIp.Builder autoDelete(String autoDelete)
Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getAutoDelete()- Parameters:
autoDelete- These stateful IPs will never be released during autohealing, update or VM instance recreate operations. This flag is used to configure if the IP reservation should be deleted after it is no longer used by the group, e.g. when the given instance or the whole group is deleted. Default value: "NEVER" Possible values: ["NEVER", "ON_PERMANENT_INSTANCE_DELETION"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_per_instance_config#auto_delete ComputePerInstanceConfig#auto_delete}- Returns:
this
-
ipAddress
@Stability(Stable) public ComputePerInstanceConfigPreservedStateExternalIp.Builder ipAddress(ComputePerInstanceConfigPreservedStateExternalIpIpAddress ipAddress)
Sets the value ofComputePerInstanceConfigPreservedStateExternalIp.getIpAddress()- Parameters:
ipAddress- ip_address block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_per_instance_config#ip_address ComputePerInstanceConfig#ip_address}- Returns:
this
-
build
@Stability(Stable) public ComputePerInstanceConfigPreservedStateExternalIp build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputePerInstanceConfigPreservedStateExternalIp>- Returns:
- a new instance of
ComputePerInstanceConfigPreservedStateExternalIp - Throws:
NullPointerException- if any required attribute was not provided
-
-