@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subnet extends Object implements Serializable, Cloneable
Represents the subnet associated with a cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with ElastiCache.
Constructor and Description |
---|
Subnet() |
Modifier and Type | Method and Description |
---|---|
Subnet |
clone() |
boolean |
equals(Object obj) |
AvailabilityZone |
getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.
|
String |
getSubnetIdentifier()
The unique identifier for the subnet.
|
SubnetOutpost |
getSubnetOutpost()
The outpost ARN of the subnet.
|
List<String> |
getSupportedNetworkTypes()
Either
ipv4 | ipv6 | dual_stack . |
int |
hashCode() |
void |
setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
|
void |
setSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
|
void |
setSubnetOutpost(SubnetOutpost subnetOutpost)
The outpost ARN of the subnet.
|
void |
setSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
Either
ipv4 | ipv6 | dual_stack . |
String |
toString()
Returns a string representation of this object.
|
Subnet |
withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
|
Subnet |
withSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
|
Subnet |
withSubnetOutpost(SubnetOutpost subnetOutpost)
The outpost ARN of the subnet.
|
Subnet |
withSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
Either
ipv4 | ipv6 | dual_stack . |
Subnet |
withSupportedNetworkTypes(NetworkType... supportedNetworkTypes)
Either
ipv4 | ipv6 | dual_stack . |
Subnet |
withSupportedNetworkTypes(String... supportedNetworkTypes)
Either
ipv4 | ipv6 | dual_stack . |
public void setSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
subnetIdentifier
- The unique identifier for the subnet.public String getSubnetIdentifier()
The unique identifier for the subnet.
public Subnet withSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
subnetIdentifier
- The unique identifier for the subnet.public void setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
subnetAvailabilityZone
- The Availability Zone associated with the subnet.public AvailabilityZone getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.
public Subnet withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
subnetAvailabilityZone
- The Availability Zone associated with the subnet.public void setSubnetOutpost(SubnetOutpost subnetOutpost)
The outpost ARN of the subnet.
subnetOutpost
- The outpost ARN of the subnet.public SubnetOutpost getSubnetOutpost()
The outpost ARN of the subnet.
public Subnet withSubnetOutpost(SubnetOutpost subnetOutpost)
The outpost ARN of the subnet.
subnetOutpost
- The outpost ARN of the subnet.public List<String> getSupportedNetworkTypes()
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the
Nitro system.NetworkType
public void setSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
supportedNetworkTypes
- Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the
Nitro system.NetworkType
public Subnet withSupportedNetworkTypes(String... supportedNetworkTypes)
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedNetworkTypes(java.util.Collection)
or
withSupportedNetworkTypes(java.util.Collection)
if you want to override the existing values.
supportedNetworkTypes
- Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the
Nitro system.NetworkType
public Subnet withSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
supportedNetworkTypes
- Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the
Nitro system.NetworkType
public Subnet withSupportedNetworkTypes(NetworkType... supportedNetworkTypes)
Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
supportedNetworkTypes
- Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
using Redis OSS engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the
Nitro system.NetworkType
public String toString()
toString
in class Object
Object.toString()