/* * 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 output of one of the following operations: *
*
* CreateCacheSubnetGroup
*
* ModifyCacheSubnetGroup
*
* The name of the cache subnet group. *
*/ private String cacheSubnetGroupName; /** ** The description of the cache subnet group. *
*/ private String cacheSubnetGroupDescription; /** ** The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. *
*/ private String vpcId; /** ** A list of subnets associated with the cache subnet group. *
*/ private com.amazonaws.internal.SdkInternalList* The ARN (Amazon Resource Name) of the cache subnet group. *
*/ private String aRN; /** *
* 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 name of the cache subnet group. *
* * @param cacheSubnetGroupName * The name of the cache subnet group. */ public void setCacheSubnetGroupName(String cacheSubnetGroupName) { this.cacheSubnetGroupName = cacheSubnetGroupName; } /** ** The name of the cache subnet group. *
* * @return The name of the cache subnet group. */ public String getCacheSubnetGroupName() { return this.cacheSubnetGroupName; } /** ** The name of the cache subnet group. *
* * @param cacheSubnetGroupName * The name of the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withCacheSubnetGroupName(String cacheSubnetGroupName) { setCacheSubnetGroupName(cacheSubnetGroupName); return this; } /** ** The description of the cache subnet group. *
* * @param cacheSubnetGroupDescription * The description of the cache subnet group. */ public void setCacheSubnetGroupDescription(String cacheSubnetGroupDescription) { this.cacheSubnetGroupDescription = cacheSubnetGroupDescription; } /** ** The description of the cache subnet group. *
* * @return The description of the cache subnet group. */ public String getCacheSubnetGroupDescription() { return this.cacheSubnetGroupDescription; } /** ** The description of the cache subnet group. *
* * @param cacheSubnetGroupDescription * The description of the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withCacheSubnetGroupDescription(String cacheSubnetGroupDescription) { setCacheSubnetGroupDescription(cacheSubnetGroupDescription); return this; } /** ** The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. *
* * @param vpcId * The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. *
* * @return The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. */ public String getVpcId() { return this.vpcId; } /** ** The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. *
* * @param vpcId * The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** A list of subnets associated with the cache subnet group. *
* * @return A list of subnets associated with the cache subnet group. */ public java.util.List* A list of subnets associated with the cache subnet group. *
* * @param subnets * A list of subnets associated with the cache subnet group. */ public void setSubnets(java.util.Collection* A list of subnets associated with the cache subnet group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *
* * @param subnets * A list of subnets associated with the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withSubnets(Subnet... subnets) { if (this.subnets == null) { setSubnets(new com.amazonaws.internal.SdkInternalList* A list of subnets associated with the cache subnet group. *
* * @param subnets * A list of subnets associated with the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withSubnets(java.util.Collection* The ARN (Amazon Resource Name) of the cache subnet group. *
* * @param aRN * The ARN (Amazon Resource Name) of the cache subnet group. */ public void setARN(String aRN) { this.aRN = aRN; } /** ** The ARN (Amazon Resource Name) of the cache subnet group. *
* * @return The ARN (Amazon Resource Name) of the cache subnet group. */ public String getARN() { return this.aRN; } /** ** The ARN (Amazon Resource Name) of the cache subnet group. *
* * @param aRN * The ARN (Amazon Resource Name) of the cache subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheSubnetGroup withARN(String aRN) { setARN(aRN); 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 CacheSubnetGroup 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 CacheSubnetGroup 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 CacheSubnetGroup withSupportedNetworkTypes(NetworkType... supportedNetworkTypes) {
com.amazonaws.internal.SdkInternalList