/* * 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; /** *
* A list of PreferredAvailabilityZones
objects that specifies the configuration of a node group in the
* resharded cluster.
*
* Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration * values apply to. *
*/ private String nodeGroupId; /** ** A list of preferred availability zones for the nodes in this cluster. *
*/ private com.amazonaws.internal.SdkInternalList* Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration * values apply to. *
* * @param nodeGroupId * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these * configuration values apply to. */ public void setNodeGroupId(String nodeGroupId) { this.nodeGroupId = nodeGroupId; } /** ** Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration * values apply to. *
* * @return Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these * configuration values apply to. */ public String getNodeGroupId() { return this.nodeGroupId; } /** ** Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these configuration * values apply to. *
* * @param nodeGroupId * Either the ElastiCache for Redis supplied 4-digit id or a user supplied id for the node group these * configuration values apply to. * @return Returns a reference to this object so that method calls can be chained together. */ public ReshardingConfiguration withNodeGroupId(String nodeGroupId) { setNodeGroupId(nodeGroupId); return this; } /** ** A list of preferred availability zones for the nodes in this cluster. *
* * @return A list of preferred availability zones for the nodes in this cluster. */ public java.util.List* A list of preferred availability zones for the nodes in this cluster. *
* * @param preferredAvailabilityZones * A list of preferred availability zones for the nodes in this cluster. */ public void setPreferredAvailabilityZones(java.util.Collection* A list of preferred availability zones for the nodes in this cluster. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPreferredAvailabilityZones(java.util.Collection)} or * {@link #withPreferredAvailabilityZones(java.util.Collection)} if you want to override the existing values. *
* * @param preferredAvailabilityZones * A list of preferred availability zones for the nodes in this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ReshardingConfiguration withPreferredAvailabilityZones(String... preferredAvailabilityZones) { if (this.preferredAvailabilityZones == null) { setPreferredAvailabilityZones(new com.amazonaws.internal.SdkInternalList* A list of preferred availability zones for the nodes in this cluster. *
* * @param preferredAvailabilityZones * A list of preferred availability zones for the nodes in this cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ReshardingConfiguration withPreferredAvailabilityZones(java.util.Collection