/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.elasticache.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents the subnet associated with a cluster. This parameter refers to subnets defined in Amazon Virtual Private * Cloud (Amazon VPC) and used with ElastiCache. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Subnet implements Serializable, Cloneable { /** ** The unique identifier for the subnet. *
*/ private String subnetIdentifier; /** ** The Availability Zone associated with the subnet. *
*/ private AvailabilityZone subnetAvailabilityZone; /** ** The outpost ARN of the subnet. *
*/ private SubnetOutpost subnetOutpost; /** *
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
*
* The unique identifier for the subnet. *
* * @param subnetIdentifier * The unique identifier for the subnet. */ public void setSubnetIdentifier(String subnetIdentifier) { this.subnetIdentifier = subnetIdentifier; } /** ** The unique identifier for the subnet. *
* * @return The unique identifier for the subnet. */ public String getSubnetIdentifier() { return this.subnetIdentifier; } /** ** The unique identifier for the subnet. *
* * @param subnetIdentifier * The unique identifier for the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public Subnet withSubnetIdentifier(String subnetIdentifier) { setSubnetIdentifier(subnetIdentifier); return this; } /** ** The Availability Zone associated with the subnet. *
* * @param subnetAvailabilityZone * The Availability Zone associated with the subnet. */ public void setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone) { this.subnetAvailabilityZone = subnetAvailabilityZone; } /** ** The Availability Zone associated with the subnet. *
* * @return The Availability Zone associated with the subnet. */ public AvailabilityZone getSubnetAvailabilityZone() { return this.subnetAvailabilityZone; } /** ** The Availability Zone associated with the subnet. *
* * @param subnetAvailabilityZone * The Availability Zone associated with the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public Subnet withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone) { setSubnetAvailabilityZone(subnetAvailabilityZone); return this; } /** ** The outpost ARN of the subnet. *
* * @param subnetOutpost * The outpost ARN of the subnet. */ public void setSubnetOutpost(SubnetOutpost subnetOutpost) { this.subnetOutpost = subnetOutpost; } /** ** The outpost ARN of the subnet. *
* * @return The outpost ARN of the subnet. */ public SubnetOutpost getSubnetOutpost() { return this.subnetOutpost; } /** ** The outpost ARN of the subnet. *
* * @param subnetOutpost * The outpost ARN of the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public Subnet withSubnetOutpost(SubnetOutpost subnetOutpost) { setSubnetOutpost(subnetOutpost); return this; } /** *
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis 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 engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
* @see NetworkType
*/
public java.util.List
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis 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 engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
* @see NetworkType
*/
public void setSupportedNetworkTypes(java.util.Collection
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis 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 * {@link #setSupportedNetworkTypes(java.util.Collection)} or * {@link #withSupportedNetworkTypes(java.util.Collection)} if you want to override the existing values. *
* * @param supportedNetworkTypes * Eitheripv4
| ipv6
| dual_stack
. IPv6 is supported for workloads
* using Redis engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NetworkType
*/
public Subnet withSupportedNetworkTypes(String... supportedNetworkTypes) {
if (this.supportedNetworkTypes == null) {
setSupportedNetworkTypes(new com.amazonaws.internal.SdkInternalList
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis 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 engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NetworkType
*/
public Subnet withSupportedNetworkTypes(java.util.Collection
* Either ipv4
| ipv6
| dual_stack
. IPv6 is supported for workloads using
* Redis 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 engine version 6.2 onward or Memcached engine version 1.6.6 on all instances built on the Nitro system.
* @return Returns a reference to this object so that method calls can be chained together.
* @see NetworkType
*/
public Subnet withSupportedNetworkTypes(NetworkType... supportedNetworkTypes) {
com.amazonaws.internal.SdkInternalList