com.amazonaws.services.elasticache.model.CreateReplicationGroupRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-elasticache Show documentation
/*
* Copyright 2012-2017 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* Represents the input of a CreateReplicationGroup
operation.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateReplicationGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The replication group identifier. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*/
private String replicationGroupId;
/**
*
* A user-created description for the replication group.
*
*/
private String replicationGroupDescription;
/**
*
* The identifier of the cache cluster that serves as the primary for this replication group. This cache cluster
* must already exist and have a status of available
.
*
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*
*/
private String primaryClusterId;
/**
*
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary
* fails.
*
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is disabled
* for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*
*/
private Boolean automaticFailoverEnabled;
/**
*
* The number of clusters this replication group initially has.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at least 2. If
* AutomaticFailoverEnabled
is false
you can omit this parameter (it will default to 1),
* or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*
*/
private Integer numCacheClusters;
/**
*
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of the
* Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in
* the first AZ in the list.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in
* Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*
*/
private com.amazonaws.internal.SdkInternalList preferredCacheClusterAZs;
/**
*
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled)
* replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1.
*
*
* Default: 1
*
*/
private Integer numNodeGroups;
/**
*
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0
* to 5.
*
*/
private Integer replicasPerNodeGroup;
/**
*
* A list of node group (shard) configuration options. Each node group (shard) configuration has the following:
* Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can
* use this parameter to individually configure each node group (shard), or you can omit this parameter.
*
*/
private com.amazonaws.internal.SdkInternalList nodeGroupConfiguration;
/**
*
* The compute and memory capacity of the nodes in the node group (shard).
*
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
,
* cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
, cache.m1.medium
,
* cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
,
* cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances. Backup/restore is
* supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and either
* Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*
*/
private String cacheNodeType;
/**
*
* The name of the cache engine to be used for the cache clusters in this replication group.
*
*/
private String engine;
/**
*
* The version number of the cache engine to be used for the cache clusters in this replication group. To view the
* supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an
* earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster
* or replication group and create it anew with the earlier engine version.
*
*/
private String engineVersion;
/**
*
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter
* group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*
*/
private String cacheParameterGroupName;
/**
*
* The name of the cache subnet group to be used for the replication group.
*
*
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start
* creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*
*/
private String cacheSubnetGroupName;
/**
*
* A list of cache security group names to associate with this replication group.
*
*/
private com.amazonaws.internal.SdkInternalList cacheSecurityGroupNames;
/**
*
* One or more Amazon VPC security groups associated with this replication group.
*
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon
* VPC).
*
*/
private com.amazonaws.internal.SdkInternalList securityGroupIds;
/**
*
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
* The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
* contain any commas. The new replication group will have the number of node groups (console: shards) specified by
* the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration
* regardless of the number of ARNs specified here.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*
*/
private com.amazonaws.internal.SdkInternalList snapshotArns;
/**
*
* The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to
* restoring
while the new replication group is being created.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*/
private String snapshotName;
/**
*
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period. Valid values for ddd
are:
*
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range
* in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*
*/
private String preferredMaintenanceWindow;
/**
*
* The port number on which each member of the replication group accepts connections.
*
*/
private Integer port;
/**
*
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are
* sent.
*
*
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
*/
private String notificationTopicArn;
/**
*
* This parameter is currently disabled.
*
*/
private Boolean autoMinorVersionUpgrade;
/**
*
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you
* set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being
* deleted.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*
*/
private Integer snapshotRetentionLimit;
/**
*
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
*
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*/
private String snapshotWindow;
/**
*
* Reserved parameter. The password used to access a password protected server.
*
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*
*/
private String authToken;
/**
*
* The replication group identifier. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param replicationGroupId
* The replication group identifier. This parameter is stored as a lowercase string.
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*/
public void setReplicationGroupId(String replicationGroupId) {
this.replicationGroupId = replicationGroupId;
}
/**
*
* The replication group identifier. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @return The replication group identifier. This parameter is stored as a lowercase string.
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*/
public String getReplicationGroupId() {
return this.replicationGroupId;
}
/**
*
* The replication group identifier. This parameter is stored as a lowercase string.
*
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param replicationGroupId
* The replication group identifier. This parameter is stored as a lowercase string.
*
* Constraints:
*
*
* -
*
* A name must contain from 1 to 20 alphanumeric characters or hyphens.
*
*
* -
*
* The first character must be a letter.
*
*
* -
*
* A name cannot end with a hyphen or contain two consecutive hyphens.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withReplicationGroupId(String replicationGroupId) {
setReplicationGroupId(replicationGroupId);
return this;
}
/**
*
* A user-created description for the replication group.
*
*
* @param replicationGroupDescription
* A user-created description for the replication group.
*/
public void setReplicationGroupDescription(String replicationGroupDescription) {
this.replicationGroupDescription = replicationGroupDescription;
}
/**
*
* A user-created description for the replication group.
*
*
* @return A user-created description for the replication group.
*/
public String getReplicationGroupDescription() {
return this.replicationGroupDescription;
}
/**
*
* A user-created description for the replication group.
*
*
* @param replicationGroupDescription
* A user-created description for the replication group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withReplicationGroupDescription(String replicationGroupDescription) {
setReplicationGroupDescription(replicationGroupDescription);
return this;
}
/**
*
* The identifier of the cache cluster that serves as the primary for this replication group. This cache cluster
* must already exist and have a status of available
.
*
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*
*
* @param primaryClusterId
* The identifier of the cache cluster that serves as the primary for this replication group. This cache
* cluster must already exist and have a status of available
.
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*/
public void setPrimaryClusterId(String primaryClusterId) {
this.primaryClusterId = primaryClusterId;
}
/**
*
* The identifier of the cache cluster that serves as the primary for this replication group. This cache cluster
* must already exist and have a status of available
.
*
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*
*
* @return The identifier of the cache cluster that serves as the primary for this replication group. This cache
* cluster must already exist and have a status of available
.
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*/
public String getPrimaryClusterId() {
return this.primaryClusterId;
}
/**
*
* The identifier of the cache cluster that serves as the primary for this replication group. This cache cluster
* must already exist and have a status of available
.
*
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
*
*
* @param primaryClusterId
* The identifier of the cache cluster that serves as the primary for this replication group. This cache
* cluster must already exist and have a status of available
.
*
* This parameter is not required if NumCacheClusters
, NumNodeGroups
, or
* ReplicasPerNodeGroup
is specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withPrimaryClusterId(String primaryClusterId) {
setPrimaryClusterId(primaryClusterId);
return this;
}
/**
*
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary
* fails.
*
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is disabled
* for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*
*
* @param automaticFailoverEnabled
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing
* primary fails.
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is
* disabled for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*/
public void setAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
this.automaticFailoverEnabled = automaticFailoverEnabled;
}
/**
*
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary
* fails.
*
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is disabled
* for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*
*
* @return Specifies whether a read-only replica is automatically promoted to read/write primary if the existing
* primary fails.
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is
* disabled for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication
* groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*/
public Boolean getAutomaticFailoverEnabled() {
return this.automaticFailoverEnabled;
}
/**
*
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary
* fails.
*
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is disabled
* for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*
*
* @param automaticFailoverEnabled
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing
* primary fails.
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is
* disabled for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withAutomaticFailoverEnabled(Boolean automaticFailoverEnabled) {
setAutomaticFailoverEnabled(automaticFailoverEnabled);
return this;
}
/**
*
* Specifies whether a read-only replica is automatically promoted to read/write primary if the existing primary
* fails.
*
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is disabled
* for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*
*
* @return Specifies whether a read-only replica is automatically promoted to read/write primary if the existing
* primary fails.
*
* If true
, Multi-AZ is enabled for this replication group. If false
, Multi-AZ is
* disabled for this replication group.
*
*
* AutomaticFailoverEnabled
must be enabled for Redis (cluster mode enabled) replication
* groups.
*
*
* Default: false
*
*
*
* ElastiCache Multi-AZ replication groups is not supported on:
*
*
* -
*
* Redis versions earlier than 2.8.6.
*
*
* -
*
* Redis (cluster mode disabled): T1 and T2 node types.
*
*
* Redis (cluster mode enabled): T2 node types.
*
*
*
*/
public Boolean isAutomaticFailoverEnabled() {
return this.automaticFailoverEnabled;
}
/**
*
* The number of clusters this replication group initially has.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at least 2. If
* AutomaticFailoverEnabled
is false
you can omit this parameter (it will default to 1),
* or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*
*
* @param numCacheClusters
* The number of clusters this replication group initially has.
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at
* least 2. If AutomaticFailoverEnabled
is false
you can omit this parameter (it
* will default to 1), or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*/
public void setNumCacheClusters(Integer numCacheClusters) {
this.numCacheClusters = numCacheClusters;
}
/**
*
* The number of clusters this replication group initially has.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at least 2. If
* AutomaticFailoverEnabled
is false
you can omit this parameter (it will default to 1),
* or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*
*
* @return The number of clusters this replication group initially has.
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at
* least 2. If AutomaticFailoverEnabled
is false
you can omit this parameter (it
* will default to 1), or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*/
public Integer getNumCacheClusters() {
return this.numCacheClusters;
}
/**
*
* The number of clusters this replication group initially has.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at least 2. If
* AutomaticFailoverEnabled
is false
you can omit this parameter (it will default to 1),
* or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
*
*
* @param numCacheClusters
* The number of clusters this replication group initially has.
*
* This parameter is not used if there is more than one node group (shard). You should use
* ReplicasPerNodeGroup
instead.
*
*
* If AutomaticFailoverEnabled
is true
, the value of this parameter must be at
* least 2. If AutomaticFailoverEnabled
is false
you can omit this parameter (it
* will default to 1), or you can explicitly set it to a value between 2 and 6.
*
*
* The maximum permitted value for NumCacheClusters
is 6 (primary plus 5 replicas).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withNumCacheClusters(Integer numCacheClusters) {
setNumCacheClusters(numCacheClusters);
return this;
}
/**
*
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of the
* Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in
* the first AZ in the list.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in
* Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*
*
* @return A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order
* of the Availability Zones in the list is the order in which clusters are allocated. The primary cluster
* is created in the first AZ in the list.
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache
* clusters in Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*/
public java.util.List getPreferredCacheClusterAZs() {
if (preferredCacheClusterAZs == null) {
preferredCacheClusterAZs = new com.amazonaws.internal.SdkInternalList();
}
return preferredCacheClusterAZs;
}
/**
*
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of the
* Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in
* the first AZ in the list.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in
* Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*
*
* @param preferredCacheClusterAZs
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of
* the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is
* created in the first AZ in the list.
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache
* clusters in Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*/
public void setPreferredCacheClusterAZs(java.util.Collection preferredCacheClusterAZs) {
if (preferredCacheClusterAZs == null) {
this.preferredCacheClusterAZs = null;
return;
}
this.preferredCacheClusterAZs = new com.amazonaws.internal.SdkInternalList(preferredCacheClusterAZs);
}
/**
*
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of the
* Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in
* the first AZ in the list.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in
* Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPreferredCacheClusterAZs(java.util.Collection)} or
* {@link #withPreferredCacheClusterAZs(java.util.Collection)} if you want to override the existing values.
*
*
* @param preferredCacheClusterAZs
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of
* the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is
* created in the first AZ in the list.
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache
* clusters in Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withPreferredCacheClusterAZs(String... preferredCacheClusterAZs) {
if (this.preferredCacheClusterAZs == null) {
setPreferredCacheClusterAZs(new com.amazonaws.internal.SdkInternalList(preferredCacheClusterAZs.length));
}
for (String ele : preferredCacheClusterAZs) {
this.preferredCacheClusterAZs.add(ele);
}
return this;
}
/**
*
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of the
* Availability Zones in the list is the order in which clusters are allocated. The primary cluster is created in
* the first AZ in the list.
*
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache clusters in
* Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
*
*
* @param preferredCacheClusterAZs
* A list of EC2 Availability Zones in which the replication group's cache clusters are created. The order of
* the Availability Zones in the list is the order in which clusters are allocated. The primary cluster is
* created in the first AZ in the list.
*
* This parameter is not used if there is more than one node group (shard). You should use
* NodeGroupConfiguration
instead.
*
*
*
* If you are creating your replication group in an Amazon VPC (recommended), you can only locate cache
* clusters in Availability Zones associated with the subnets in the selected subnet group.
*
*
* The number of Availability Zones listed must equal the value of NumCacheClusters
.
*
*
*
* Default: system chosen Availability Zones.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withPreferredCacheClusterAZs(java.util.Collection preferredCacheClusterAZs) {
setPreferredCacheClusterAZs(preferredCacheClusterAZs);
return this;
}
/**
*
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled)
* replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1.
*
*
* Default: 1
*
*
* @param numNodeGroups
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode
* enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to
* 1.
*
* Default: 1
*/
public void setNumNodeGroups(Integer numNodeGroups) {
this.numNodeGroups = numNodeGroups;
}
/**
*
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled)
* replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1.
*
*
* Default: 1
*
*
* @return An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode
* enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to
* 1.
*
* Default: 1
*/
public Integer getNumNodeGroups() {
return this.numNodeGroups;
}
/**
*
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode enabled)
* replication group. For Redis (cluster mode disabled) either omit this parameter or set it to 1.
*
*
* Default: 1
*
*
* @param numNodeGroups
* An optional parameter that specifies the number of node groups (shards) for this Redis (cluster mode
* enabled) replication group. For Redis (cluster mode disabled) either omit this parameter or set it to
* 1.
*
* Default: 1
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withNumNodeGroups(Integer numNodeGroups) {
setNumNodeGroups(numNodeGroups);
return this;
}
/**
*
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0
* to 5.
*
*
* @param replicasPerNodeGroup
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values
* are 0 to 5.
*/
public void setReplicasPerNodeGroup(Integer replicasPerNodeGroup) {
this.replicasPerNodeGroup = replicasPerNodeGroup;
}
/**
*
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0
* to 5.
*
*
* @return An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values
* are 0 to 5.
*/
public Integer getReplicasPerNodeGroup() {
return this.replicasPerNodeGroup;
}
/**
*
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values are 0
* to 5.
*
*
* @param replicasPerNodeGroup
* An optional parameter that specifies the number of replica nodes in each node group (shard). Valid values
* are 0 to 5.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withReplicasPerNodeGroup(Integer replicasPerNodeGroup) {
setReplicasPerNodeGroup(replicasPerNodeGroup);
return this;
}
/**
*
* A list of node group (shard) configuration options. Each node group (shard) configuration has the following:
* Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can
* use this parameter to individually configure each node group (shard), or you can omit this parameter.
*
*
* @return A list of node group (shard) configuration options. Each node group (shard) configuration has the
* following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group,
* you can use this parameter to individually configure each node group (shard), or you can omit this
* parameter.
*/
public java.util.List getNodeGroupConfiguration() {
if (nodeGroupConfiguration == null) {
nodeGroupConfiguration = new com.amazonaws.internal.SdkInternalList();
}
return nodeGroupConfiguration;
}
/**
*
* A list of node group (shard) configuration options. Each node group (shard) configuration has the following:
* Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can
* use this parameter to individually configure each node group (shard), or you can omit this parameter.
*
*
* @param nodeGroupConfiguration
* A list of node group (shard) configuration options. Each node group (shard) configuration has the
* following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group,
* you can use this parameter to individually configure each node group (shard), or you can omit this
* parameter.
*/
public void setNodeGroupConfiguration(java.util.Collection nodeGroupConfiguration) {
if (nodeGroupConfiguration == null) {
this.nodeGroupConfiguration = null;
return;
}
this.nodeGroupConfiguration = new com.amazonaws.internal.SdkInternalList(nodeGroupConfiguration);
}
/**
*
* A list of node group (shard) configuration options. Each node group (shard) configuration has the following:
* Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can
* use this parameter to individually configure each node group (shard), or you can omit this parameter.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNodeGroupConfiguration(java.util.Collection)} or
* {@link #withNodeGroupConfiguration(java.util.Collection)} if you want to override the existing values.
*
*
* @param nodeGroupConfiguration
* A list of node group (shard) configuration options. Each node group (shard) configuration has the
* following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group,
* you can use this parameter to individually configure each node group (shard), or you can omit this
* parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withNodeGroupConfiguration(NodeGroupConfiguration... nodeGroupConfiguration) {
if (this.nodeGroupConfiguration == null) {
setNodeGroupConfiguration(new com.amazonaws.internal.SdkInternalList(nodeGroupConfiguration.length));
}
for (NodeGroupConfiguration ele : nodeGroupConfiguration) {
this.nodeGroupConfiguration.add(ele);
}
return this;
}
/**
*
* A list of node group (shard) configuration options. Each node group (shard) configuration has the following:
* Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group, you can
* use this parameter to individually configure each node group (shard), or you can omit this parameter.
*
*
* @param nodeGroupConfiguration
* A list of node group (shard) configuration options. Each node group (shard) configuration has the
* following: Slots, PrimaryAvailabilityZone, ReplicaAvailabilityZones, ReplicaCount.
*
* If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group,
* you can use this parameter to individually configure each node group (shard), or you can omit this
* parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withNodeGroupConfiguration(java.util.Collection nodeGroupConfiguration) {
setNodeGroupConfiguration(nodeGroupConfiguration);
return this;
}
/**
*
* The compute and memory capacity of the nodes in the node group (shard).
*
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
,
* cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
, cache.m1.medium
,
* cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
,
* cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances. Backup/restore is
* supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and either
* Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*
*
* @param cacheNodeType
* The compute and memory capacity of the nodes in the node group (shard).
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
, cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
,
* cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
,
* cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
,
* cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances.
* Backup/restore is supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and
* either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*/
public void setCacheNodeType(String cacheNodeType) {
this.cacheNodeType = cacheNodeType;
}
/**
*
* The compute and memory capacity of the nodes in the node group (shard).
*
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
,
* cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
, cache.m1.medium
,
* cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
,
* cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances. Backup/restore is
* supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and either
* Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*
*
* @return The compute and memory capacity of the nodes in the node group (shard).
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
,
* cache.t2.medium
, cache.m3.medium
, cache.m3.large
,
* cache.m3.xlarge
, cache.m3.2xlarge
, cache.m4.large
,
* cache.m4.xlarge
, cache.m4.2xlarge
, cache.m4.4xlarge
,
* cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
,
* cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
,
* cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
,
* cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances.
* Backup/restore is supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and
* either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*/
public String getCacheNodeType() {
return this.cacheNodeType;
}
/**
*
* The compute and memory capacity of the nodes in the node group (shard).
*
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
,
* cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
, cache.m1.medium
,
* cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
, cache.r3.2xlarge
,
* cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
, cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances. Backup/restore is
* supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and either
* Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
*
*
* @param cacheNodeType
* The compute and memory capacity of the nodes in the node group (shard).
*
* Valid node types are as follows:
*
*
* -
*
* General purpose:
*
*
* -
*
* Current generation: cache.t2.micro
, cache.t2.small
, cache.t2.medium
, cache.m3.medium
, cache.m3.large
, cache.m3.xlarge
,
* cache.m3.2xlarge
, cache.m4.large
, cache.m4.xlarge
,
* cache.m4.2xlarge
, cache.m4.4xlarge
, cache.m4.10xlarge
*
*
* -
*
* Previous generation: cache.t1.micro
, cache.m1.small
,
* cache.m1.medium
, cache.m1.large
, cache.m1.xlarge
*
*
*
*
* -
*
* Compute optimized: cache.c1.xlarge
*
*
* -
*
* Memory optimized:
*
*
* -
*
* Current generation: cache.r3.large
, cache.r3.xlarge
,
* cache.r3.2xlarge
, cache.r3.4xlarge
, cache.r3.8xlarge
*
*
* -
*
* Previous generation: cache.m2.xlarge
, cache.m2.2xlarge
,
* cache.m2.4xlarge
*
*
*
*
*
*
* Notes:
*
*
* -
*
* All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).
*
*
* -
*
* Redis backup/restore is not supported for Redis (cluster mode disabled) T1 and T2 instances.
* Backup/restore is supported on Redis (cluster mode enabled) T2 instances.
*
*
* -
*
* Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.
*
*
*
*
* For a complete listing of node types and specifications, see Amazon ElastiCache Product Features and Details and
* either Cache Node Type-Specific Parameters for Memcached or Cache Node Type-Specific Parameters for Redis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withCacheNodeType(String cacheNodeType) {
setCacheNodeType(cacheNodeType);
return this;
}
/**
*
* The name of the cache engine to be used for the cache clusters in this replication group.
*
*
* @param engine
* The name of the cache engine to be used for the cache clusters in this replication group.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The name of the cache engine to be used for the cache clusters in this replication group.
*
*
* @return The name of the cache engine to be used for the cache clusters in this replication group.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The name of the cache engine to be used for the cache clusters in this replication group.
*
*
* @param engine
* The name of the cache engine to be used for the cache clusters in this replication group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The version number of the cache engine to be used for the cache clusters in this replication group. To view the
* supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an
* earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster
* or replication group and create it anew with the earlier engine version.
*
*
* @param engineVersion
* The version number of the cache engine to be used for the cache clusters in this replication group. To
* view the supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade
* to an earlier engine version. If you want to use an earlier engine version, you must delete the existing
* cache cluster or replication group and create it anew with the earlier engine version.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The version number of the cache engine to be used for the cache clusters in this replication group. To view the
* supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an
* earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster
* or replication group and create it anew with the earlier engine version.
*
*
* @return The version number of the cache engine to be used for the cache clusters in this replication group. To
* view the supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade
* to an earlier engine version. If you want to use an earlier engine version, you must delete the existing
* cache cluster or replication group and create it anew with the earlier engine version.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The version number of the cache engine to be used for the cache clusters in this replication group. To view the
* supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade to an
* earlier engine version. If you want to use an earlier engine version, you must delete the existing cache cluster
* or replication group and create it anew with the earlier engine version.
*
*
* @param engineVersion
* The version number of the cache engine to be used for the cache clusters in this replication group. To
* view the supported cache engine versions, use the DescribeCacheEngineVersions
operation.
*
* Important: You can upgrade to a newer engine version (see Selecting a Cache Engine and Version) in the ElastiCache User Guide, but you cannot downgrade
* to an earlier engine version. If you want to use an earlier engine version, you must delete the existing
* cache cluster or replication group and create it anew with the earlier engine version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter
* group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*
*
* @param cacheParameterGroupName
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default
* parameter group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*/
public void setCacheParameterGroupName(String cacheParameterGroupName) {
this.cacheParameterGroupName = cacheParameterGroupName;
}
/**
*
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter
* group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*
*
* @return The name of the parameter group to associate with this replication group. If this argument is omitted,
* the default cache parameter group for the specified engine is used.
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default
* parameter group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*/
public String getCacheParameterGroupName() {
return this.cacheParameterGroupName;
}
/**
*
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default parameter
* group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
*
*
* @param cacheParameterGroupName
* The name of the parameter group to associate with this replication group. If this argument is omitted, the
* default cache parameter group for the specified engine is used.
*
* If you are running Redis version 3.2.4 or later, only one node group (shard), and want to use a default
* parameter group, we recommend that you specify the parameter group by name.
*
*
* -
*
* To create a Redis (cluster mode disabled) replication group, use
* CacheParameterGroupName=default.redis3.2
.
*
*
* -
*
* To create a Redis (cluster mode enabled) replication group, use
* CacheParameterGroupName=default.redis3.2.cluster.on
.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withCacheParameterGroupName(String cacheParameterGroupName) {
setCacheParameterGroupName(cacheParameterGroupName);
return this;
}
/**
*
* The name of the cache subnet group to be used for the replication group.
*
*
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start
* creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*
*
* @param cacheSubnetGroupName
* The name of the cache subnet group to be used for the replication group.
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you
* start creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*/
public void setCacheSubnetGroupName(String cacheSubnetGroupName) {
this.cacheSubnetGroupName = cacheSubnetGroupName;
}
/**
*
* The name of the cache subnet group to be used for the replication group.
*
*
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start
* creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*
*
* @return The name of the cache subnet group to be used for the replication group.
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you
* start creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*/
public String getCacheSubnetGroupName() {
return this.cacheSubnetGroupName;
}
/**
*
* The name of the cache subnet group to be used for the replication group.
*
*
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you start
* creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
*
*
* @param cacheSubnetGroupName
* The name of the cache subnet group to be used for the replication group.
*
* If you're going to launch your cluster in an Amazon VPC, you need to create a subnet group before you
* start creating a cluster. For more information, see Subnets and Subnet
* Groups.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withCacheSubnetGroupName(String cacheSubnetGroupName) {
setCacheSubnetGroupName(cacheSubnetGroupName);
return this;
}
/**
*
* A list of cache security group names to associate with this replication group.
*
*
* @return A list of cache security group names to associate with this replication group.
*/
public java.util.List getCacheSecurityGroupNames() {
if (cacheSecurityGroupNames == null) {
cacheSecurityGroupNames = new com.amazonaws.internal.SdkInternalList();
}
return cacheSecurityGroupNames;
}
/**
*
* A list of cache security group names to associate with this replication group.
*
*
* @param cacheSecurityGroupNames
* A list of cache security group names to associate with this replication group.
*/
public void setCacheSecurityGroupNames(java.util.Collection cacheSecurityGroupNames) {
if (cacheSecurityGroupNames == null) {
this.cacheSecurityGroupNames = null;
return;
}
this.cacheSecurityGroupNames = new com.amazonaws.internal.SdkInternalList(cacheSecurityGroupNames);
}
/**
*
* A list of cache security group names to associate with this replication group.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCacheSecurityGroupNames(java.util.Collection)} or
* {@link #withCacheSecurityGroupNames(java.util.Collection)} if you want to override the existing values.
*
*
* @param cacheSecurityGroupNames
* A list of cache security group names to associate with this replication group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withCacheSecurityGroupNames(String... cacheSecurityGroupNames) {
if (this.cacheSecurityGroupNames == null) {
setCacheSecurityGroupNames(new com.amazonaws.internal.SdkInternalList(cacheSecurityGroupNames.length));
}
for (String ele : cacheSecurityGroupNames) {
this.cacheSecurityGroupNames.add(ele);
}
return this;
}
/**
*
* A list of cache security group names to associate with this replication group.
*
*
* @param cacheSecurityGroupNames
* A list of cache security group names to associate with this replication group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withCacheSecurityGroupNames(java.util.Collection cacheSecurityGroupNames) {
setCacheSecurityGroupNames(cacheSecurityGroupNames);
return this;
}
/**
*
* One or more Amazon VPC security groups associated with this replication group.
*
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon
* VPC).
*
*
* @return One or more Amazon VPC security groups associated with this replication group.
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud
* (Amazon VPC).
*/
public java.util.List getSecurityGroupIds() {
if (securityGroupIds == null) {
securityGroupIds = new com.amazonaws.internal.SdkInternalList();
}
return securityGroupIds;
}
/**
*
* One or more Amazon VPC security groups associated with this replication group.
*
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon
* VPC).
*
*
* @param securityGroupIds
* One or more Amazon VPC security groups associated with this replication group.
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud
* (Amazon VPC).
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new com.amazonaws.internal.SdkInternalList(securityGroupIds);
}
/**
*
* One or more Amazon VPC security groups associated with this replication group.
*
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon
* VPC).
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param securityGroupIds
* One or more Amazon VPC security groups associated with this replication group.
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud
* (Amazon VPC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSecurityGroupIds(String... securityGroupIds) {
if (this.securityGroupIds == null) {
setSecurityGroupIds(new com.amazonaws.internal.SdkInternalList(securityGroupIds.length));
}
for (String ele : securityGroupIds) {
this.securityGroupIds.add(ele);
}
return this;
}
/**
*
* One or more Amazon VPC security groups associated with this replication group.
*
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud (Amazon
* VPC).
*
*
* @param securityGroupIds
* One or more Amazon VPC security groups associated with this replication group.
*
* Use this parameter only when you are creating a replication group in an Amazon Virtual Private Cloud
* (Amazon VPC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
*
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*
*
* @return A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*
*
* @param tags
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
*
*
* @param tags
* A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be
* accompanied by a tag value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
* The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
* contain any commas. The new replication group will have the number of node groups (console: shards) specified by
* the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration
* regardless of the number of ARNs specified here.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*
*
* @return A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in
* Amazon S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name
* in the ARN cannot contain any commas. The new replication group will have the number of node groups
* (console: shards) specified by the parameter NumNodeGroups or the number of node groups configured
* by NodeGroupConfiguration regardless of the number of ARNs specified here.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*/
public java.util.List getSnapshotArns() {
if (snapshotArns == null) {
snapshotArns = new com.amazonaws.internal.SdkInternalList();
}
return snapshotArns;
}
/**
*
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
* The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
* contain any commas. The new replication group will have the number of node groups (console: shards) specified by
* the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration
* regardless of the number of ARNs specified here.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*
*
* @param snapshotArns
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon
* S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the
* ARN cannot contain any commas. The new replication group will have the number of node groups (console:
* shards) specified by the parameter NumNodeGroups or the number of node groups configured by
* NodeGroupConfiguration regardless of the number of ARNs specified here.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*/
public void setSnapshotArns(java.util.Collection snapshotArns) {
if (snapshotArns == null) {
this.snapshotArns = null;
return;
}
this.snapshotArns = new com.amazonaws.internal.SdkInternalList(snapshotArns);
}
/**
*
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
* The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
* contain any commas. The new replication group will have the number of node groups (console: shards) specified by
* the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration
* regardless of the number of ARNs specified here.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSnapshotArns(java.util.Collection)} or {@link #withSnapshotArns(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param snapshotArns
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon
* S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the
* ARN cannot contain any commas. The new replication group will have the number of node groups (console:
* shards) specified by the parameter NumNodeGroups or the number of node groups configured by
* NodeGroupConfiguration regardless of the number of ARNs specified here.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSnapshotArns(String... snapshotArns) {
if (this.snapshotArns == null) {
setSnapshotArns(new com.amazonaws.internal.SdkInternalList(snapshotArns.length));
}
for (String ele : snapshotArns) {
this.snapshotArns.add(ele);
}
return this;
}
/**
*
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon S3.
* The snapshot files are used to populate the new replication group. The Amazon S3 object name in the ARN cannot
* contain any commas. The new replication group will have the number of node groups (console: shards) specified by
* the parameter NumNodeGroups or the number of node groups configured by NodeGroupConfiguration
* regardless of the number of ARNs specified here.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
*
*
* @param snapshotArns
* A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot files stored in Amazon
* S3. The snapshot files are used to populate the new replication group. The Amazon S3 object name in the
* ARN cannot contain any commas. The new replication group will have the number of node groups (console:
* shards) specified by the parameter NumNodeGroups or the number of node groups configured by
* NodeGroupConfiguration regardless of the number of ARNs specified here.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Example of an Amazon S3 ARN: arn:aws:s3:::my_bucket/snapshot1.rdb
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSnapshotArns(java.util.Collection snapshotArns) {
setSnapshotArns(snapshotArns);
return this;
}
/**
*
* The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to
* restoring
while the new replication group is being created.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @param snapshotName
* The name of a snapshot from which to restore data into the new replication group. The snapshot status
* changes to restoring
while the new replication group is being created.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*/
public void setSnapshotName(String snapshotName) {
this.snapshotName = snapshotName;
}
/**
*
* The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to
* restoring
while the new replication group is being created.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @return The name of a snapshot from which to restore data into the new replication group. The snapshot status
* changes to restoring
while the new replication group is being created.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*/
public String getSnapshotName() {
return this.snapshotName;
}
/**
*
* The name of a snapshot from which to restore data into the new replication group. The snapshot status changes to
* restoring
while the new replication group is being created.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @param snapshotName
* The name of a snapshot from which to restore data into the new replication group. The snapshot status
* changes to restoring
while the new replication group is being created.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSnapshotName(String snapshotName) {
setSnapshotName(snapshotName);
return this;
}
/**
*
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period. Valid values for ddd
are:
*
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range
* in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*
*
* @param preferredMaintenanceWindow
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is
* specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window
* is a 60 minute period. Valid values for ddd
are:
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period. Valid values for ddd
are:
*
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range
* in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*
*
* @return Specifies the weekly time range during which maintenance on the cache cluster is performed. It is
* specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance
* window is a 60 minute period. Valid values for ddd
are:
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as
* a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60
* minute period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period. Valid values for ddd
are:
*
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range
* in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
*
*
* @param preferredMaintenanceWindow
* Specifies the weekly time range during which maintenance on the cache cluster is performed. It is
* specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window
* is a 60 minute period. Valid values for ddd
are:
*
* Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a
* range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute
* period.
*
*
* Valid values for ddd
are:
*
*
* -
*
* sun
*
*
* -
*
* mon
*
*
* -
*
* tue
*
*
* -
*
* wed
*
*
* -
*
* thu
*
*
* -
*
* fri
*
*
* -
*
* sat
*
*
*
*
* Example: sun:23:00-mon:01:30
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
*
* The port number on which each member of the replication group accepts connections.
*
*
* @param port
* The port number on which each member of the replication group accepts connections.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number on which each member of the replication group accepts connections.
*
*
* @return The port number on which each member of the replication group accepts connections.
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number on which each member of the replication group accepts connections.
*
*
* @param port
* The port number on which each member of the replication group accepts connections.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are
* sent.
*
*
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
*
* @param notificationTopicArn
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which
* notifications are sent.
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*/
public void setNotificationTopicArn(String notificationTopicArn) {
this.notificationTopicArn = notificationTopicArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are
* sent.
*
*
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
*
* @return The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which
* notifications are sent.
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*/
public String getNotificationTopicArn() {
return this.notificationTopicArn;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which notifications are
* sent.
*
*
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
*
* @param notificationTopicArn
* The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic to which
* notifications are sent.
*
* The Amazon SNS topic owner must be the same as the cache cluster owner.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withNotificationTopicArn(String notificationTopicArn) {
setNotificationTopicArn(notificationTopicArn);
return this;
}
/**
*
* This parameter is currently disabled.
*
*
* @param autoMinorVersionUpgrade
* This parameter is currently disabled.
*/
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
/**
*
* This parameter is currently disabled.
*
*
* @return This parameter is currently disabled.
*/
public Boolean getAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* This parameter is currently disabled.
*
*
* @param autoMinorVersionUpgrade
* This parameter is currently disabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
setAutoMinorVersionUpgrade(autoMinorVersionUpgrade);
return this;
}
/**
*
* This parameter is currently disabled.
*
*
* @return This parameter is currently disabled.
*/
public Boolean isAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you
* set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being
* deleted.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*
*
* @param snapshotRetentionLimit
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if
* you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days
* before being deleted.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*/
public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
this.snapshotRetentionLimit = snapshotRetentionLimit;
}
/**
*
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you
* set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being
* deleted.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*
*
* @return The number of days for which ElastiCache retains automatic snapshots before deleting them. For example,
* if you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5
* days before being deleted.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*/
public Integer getSnapshotRetentionLimit() {
return this.snapshotRetentionLimit;
}
/**
*
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if you
* set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being
* deleted.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
*
*
* @param snapshotRetentionLimit
* The number of days for which ElastiCache retains automatic snapshots before deleting them. For example, if
* you set SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days
* before being deleted.
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* Default: 0 (i.e., automatic backups are disabled for this cache cluster).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
setSnapshotRetentionLimit(snapshotRetentionLimit);
return this;
}
/**
*
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
*
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @param snapshotWindow
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group
* (shard).
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*/
public void setSnapshotWindow(String snapshotWindow) {
this.snapshotWindow = snapshotWindow;
}
/**
*
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
*
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @return The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group
* (shard).
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*/
public String getSnapshotWindow() {
return this.snapshotWindow;
}
/**
*
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group (shard).
*
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
*
*
* @param snapshotWindow
* The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your node group
* (shard).
*
* Example: 05:00-09:00
*
*
* If you do not specify this parameter, ElastiCache automatically chooses an appropriate time range.
*
*
*
* This parameter is only valid if the Engine
parameter is redis
.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withSnapshotWindow(String snapshotWindow) {
setSnapshotWindow(snapshotWindow);
return this;
}
/**
*
* Reserved parameter. The password used to access a password protected server.
*
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*
*
* @param authToken
* Reserved parameter. The password used to access a password protected server.
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*/
public void setAuthToken(String authToken) {
this.authToken = authToken;
}
/**
*
* Reserved parameter. The password used to access a password protected server.
*
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*
*
* @return Reserved parameter. The password used to access a password protected server.
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*/
public String getAuthToken() {
return this.authToken;
}
/**
*
* Reserved parameter. The password used to access a password protected server.
*
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
*
*
* @param authToken
* Reserved parameter. The password used to access a password protected server.
*
* Password constraints:
*
*
* -
*
* Must be only printable ASCII characters.
*
*
* -
*
* Must be at least 16 characters and no more than 128 characters in length.
*
*
* -
*
* Cannot contain any of the following characters: '/', '"', or "@".
*
*
*
*
* For more information, see AUTH password at Redis.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateReplicationGroupRequest withAuthToken(String authToken) {
setAuthToken(authToken);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getReplicationGroupId() != null)
sb.append("ReplicationGroupId: ").append(getReplicationGroupId()).append(",");
if (getReplicationGroupDescription() != null)
sb.append("ReplicationGroupDescription: ").append(getReplicationGroupDescription()).append(",");
if (getPrimaryClusterId() != null)
sb.append("PrimaryClusterId: ").append(getPrimaryClusterId()).append(",");
if (getAutomaticFailoverEnabled() != null)
sb.append("AutomaticFailoverEnabled: ").append(getAutomaticFailoverEnabled()).append(",");
if (getNumCacheClusters() != null)
sb.append("NumCacheClusters: ").append(getNumCacheClusters()).append(",");
if (getPreferredCacheClusterAZs() != null)
sb.append("PreferredCacheClusterAZs: ").append(getPreferredCacheClusterAZs()).append(",");
if (getNumNodeGroups() != null)
sb.append("NumNodeGroups: ").append(getNumNodeGroups()).append(",");
if (getReplicasPerNodeGroup() != null)
sb.append("ReplicasPerNodeGroup: ").append(getReplicasPerNodeGroup()).append(",");
if (getNodeGroupConfiguration() != null)
sb.append("NodeGroupConfiguration: ").append(getNodeGroupConfiguration()).append(",");
if (getCacheNodeType() != null)
sb.append("CacheNodeType: ").append(getCacheNodeType()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getCacheParameterGroupName() != null)
sb.append("CacheParameterGroupName: ").append(getCacheParameterGroupName()).append(",");
if (getCacheSubnetGroupName() != null)
sb.append("CacheSubnetGroupName: ").append(getCacheSubnetGroupName()).append(",");
if (getCacheSecurityGroupNames() != null)
sb.append("CacheSecurityGroupNames: ").append(getCacheSecurityGroupNames()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getSnapshotArns() != null)
sb.append("SnapshotArns: ").append(getSnapshotArns()).append(",");
if (getSnapshotName() != null)
sb.append("SnapshotName: ").append(getSnapshotName()).append(",");
if (getPreferredMaintenanceWindow() != null)
sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(",");
if (getPort() != null)
sb.append("Port: ").append(getPort()).append(",");
if (getNotificationTopicArn() != null)
sb.append("NotificationTopicArn: ").append(getNotificationTopicArn()).append(",");
if (getAutoMinorVersionUpgrade() != null)
sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()).append(",");
if (getSnapshotRetentionLimit() != null)
sb.append("SnapshotRetentionLimit: ").append(getSnapshotRetentionLimit()).append(",");
if (getSnapshotWindow() != null)
sb.append("SnapshotWindow: ").append(getSnapshotWindow()).append(",");
if (getAuthToken() != null)
sb.append("AuthToken: ").append(getAuthToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateReplicationGroupRequest == false)
return false;
CreateReplicationGroupRequest other = (CreateReplicationGroupRequest) obj;
if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null)
return false;
if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == false)
return false;
if (other.getReplicationGroupDescription() == null ^ this.getReplicationGroupDescription() == null)
return false;
if (other.getReplicationGroupDescription() != null && other.getReplicationGroupDescription().equals(this.getReplicationGroupDescription()) == false)
return false;
if (other.getPrimaryClusterId() == null ^ this.getPrimaryClusterId() == null)
return false;
if (other.getPrimaryClusterId() != null && other.getPrimaryClusterId().equals(this.getPrimaryClusterId()) == false)
return false;
if (other.getAutomaticFailoverEnabled() == null ^ this.getAutomaticFailoverEnabled() == null)
return false;
if (other.getAutomaticFailoverEnabled() != null && other.getAutomaticFailoverEnabled().equals(this.getAutomaticFailoverEnabled()) == false)
return false;
if (other.getNumCacheClusters() == null ^ this.getNumCacheClusters() == null)
return false;
if (other.getNumCacheClusters() != null && other.getNumCacheClusters().equals(this.getNumCacheClusters()) == false)
return false;
if (other.getPreferredCacheClusterAZs() == null ^ this.getPreferredCacheClusterAZs() == null)
return false;
if (other.getPreferredCacheClusterAZs() != null && other.getPreferredCacheClusterAZs().equals(this.getPreferredCacheClusterAZs()) == false)
return false;
if (other.getNumNodeGroups() == null ^ this.getNumNodeGroups() == null)
return false;
if (other.getNumNodeGroups() != null && other.getNumNodeGroups().equals(this.getNumNodeGroups()) == false)
return false;
if (other.getReplicasPerNodeGroup() == null ^ this.getReplicasPerNodeGroup() == null)
return false;
if (other.getReplicasPerNodeGroup() != null && other.getReplicasPerNodeGroup().equals(this.getReplicasPerNodeGroup()) == false)
return false;
if (other.getNodeGroupConfiguration() == null ^ this.getNodeGroupConfiguration() == null)
return false;
if (other.getNodeGroupConfiguration() != null && other.getNodeGroupConfiguration().equals(this.getNodeGroupConfiguration()) == false)
return false;
if (other.getCacheNodeType() == null ^ this.getCacheNodeType() == null)
return false;
if (other.getCacheNodeType() != null && other.getCacheNodeType().equals(this.getCacheNodeType()) == false)
return false;
if (other.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false)
return false;
if (other.getEngineVersion() == null ^ this.getEngineVersion() == null)
return false;
if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false)
return false;
if (other.getCacheParameterGroupName() == null ^ this.getCacheParameterGroupName() == null)
return false;
if (other.getCacheParameterGroupName() != null && other.getCacheParameterGroupName().equals(this.getCacheParameterGroupName()) == false)
return false;
if (other.getCacheSubnetGroupName() == null ^ this.getCacheSubnetGroupName() == null)
return false;
if (other.getCacheSubnetGroupName() != null && other.getCacheSubnetGroupName().equals(this.getCacheSubnetGroupName()) == false)
return false;
if (other.getCacheSecurityGroupNames() == null ^ this.getCacheSecurityGroupNames() == null)
return false;
if (other.getCacheSecurityGroupNames() != null && other.getCacheSecurityGroupNames().equals(this.getCacheSecurityGroupNames()) == false)
return false;
if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null)
return false;
if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getSnapshotArns() == null ^ this.getSnapshotArns() == null)
return false;
if (other.getSnapshotArns() != null && other.getSnapshotArns().equals(this.getSnapshotArns()) == false)
return false;
if (other.getSnapshotName() == null ^ this.getSnapshotName() == null)
return false;
if (other.getSnapshotName() != null && other.getSnapshotName().equals(this.getSnapshotName()) == false)
return false;
if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null)
return false;
if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == false)
return false;
if (other.getPort() == null ^ this.getPort() == null)
return false;
if (other.getPort() != null && other.getPort().equals(this.getPort()) == false)
return false;
if (other.getNotificationTopicArn() == null ^ this.getNotificationTopicArn() == null)
return false;
if (other.getNotificationTopicArn() != null && other.getNotificationTopicArn().equals(this.getNotificationTopicArn()) == false)
return false;
if (other.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null)
return false;
if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals(this.getAutoMinorVersionUpgrade()) == false)
return false;
if (other.getSnapshotRetentionLimit() == null ^ this.getSnapshotRetentionLimit() == null)
return false;
if (other.getSnapshotRetentionLimit() != null && other.getSnapshotRetentionLimit().equals(this.getSnapshotRetentionLimit()) == false)
return false;
if (other.getSnapshotWindow() == null ^ this.getSnapshotWindow() == null)
return false;
if (other.getSnapshotWindow() != null && other.getSnapshotWindow().equals(this.getSnapshotWindow()) == false)
return false;
if (other.getAuthToken() == null ^ this.getAuthToken() == null)
return false;
if (other.getAuthToken() != null && other.getAuthToken().equals(this.getAuthToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode());
hashCode = prime * hashCode + ((getReplicationGroupDescription() == null) ? 0 : getReplicationGroupDescription().hashCode());
hashCode = prime * hashCode + ((getPrimaryClusterId() == null) ? 0 : getPrimaryClusterId().hashCode());
hashCode = prime * hashCode + ((getAutomaticFailoverEnabled() == null) ? 0 : getAutomaticFailoverEnabled().hashCode());
hashCode = prime * hashCode + ((getNumCacheClusters() == null) ? 0 : getNumCacheClusters().hashCode());
hashCode = prime * hashCode + ((getPreferredCacheClusterAZs() == null) ? 0 : getPreferredCacheClusterAZs().hashCode());
hashCode = prime * hashCode + ((getNumNodeGroups() == null) ? 0 : getNumNodeGroups().hashCode());
hashCode = prime * hashCode + ((getReplicasPerNodeGroup() == null) ? 0 : getReplicasPerNodeGroup().hashCode());
hashCode = prime * hashCode + ((getNodeGroupConfiguration() == null) ? 0 : getNodeGroupConfiguration().hashCode());
hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getCacheParameterGroupName() == null) ? 0 : getCacheParameterGroupName().hashCode());
hashCode = prime * hashCode + ((getCacheSubnetGroupName() == null) ? 0 : getCacheSubnetGroupName().hashCode());
hashCode = prime * hashCode + ((getCacheSecurityGroupNames() == null) ? 0 : getCacheSecurityGroupNames().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getSnapshotArns() == null) ? 0 : getSnapshotArns().hashCode());
hashCode = prime * hashCode + ((getSnapshotName() == null) ? 0 : getSnapshotName().hashCode());
hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode());
hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime * hashCode + ((getNotificationTopicArn() == null) ? 0 : getNotificationTopicArn().hashCode());
hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode());
hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode());
hashCode = prime * hashCode + ((getSnapshotWindow() == null) ? 0 : getSnapshotWindow().hashCode());
hashCode = prime * hashCode + ((getAuthToken() == null) ? 0 : getAuthToken().hashCode());
return hashCode;
}
@Override
public CreateReplicationGroupRequest clone() {
return (CreateReplicationGroupRequest) super.clone();
}
}