com.amazonaws.services.elasticache.model.CreateCacheClusterRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk Show documentation
/*
* Copyright 2010-2014 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 com.amazonaws.AmazonWebServiceRequest;
/**
* Container for the parameters to the {@link com.amazonaws.services.elasticache.AmazonElastiCache#createCacheCluster(CreateCacheClusterRequest) CreateCacheCluster operation}.
*
* The CreateCacheCluster operation creates a new cache cluster.
* All nodes in the cache cluster run the same protocol-compliant cache
* engine software - either Memcached or Redis.
*
*
* @see com.amazonaws.services.elasticache.AmazonElastiCache#createCacheCluster(CreateCacheClusterRequest)
*/
public class CreateCacheClusterRequest extends AmazonWebServiceRequest implements Serializable {
/**
* The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*/
private String cacheClusterId;
/**
* The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*/
private String replicationGroupId;
/**
* The initial number of cache nodes that the cache cluster will have.
* For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*/
private Integer numCacheNodes;
/**
* The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*/
private String cacheNodeType;
/**
* The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*/
private String engine;
/**
* The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*/
private String engineVersion;
/**
* The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*/
private String cacheParameterGroupName;
/**
* The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
private String cacheSubnetGroupName;
/**
* A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*/
private com.amazonaws.internal.ListWithAutoConstructFlag cacheSecurityGroupNames;
/**
* One or more VPC security groups associated with the cache cluster.
* Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
private com.amazonaws.internal.ListWithAutoConstructFlag securityGroupIds;
/**
* A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas. Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag snapshotArns;
/**
* The EC2 Availability Zone in which the cache cluster will be created.
* All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*/
private String preferredAvailabilityZone;
/**
* The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*/
private String preferredMaintenanceWindow;
/**
* The port number on which each of the cache nodes will accept
* connections.
*/
private Integer port;
/**
* The Amazon Resource Name (ARN) of the Amazon Simple Notification
* Service (SNS) topic to which notifications will be sent. The
* Amazon SNS topic owner must be the same as the cache cluster owner.
*
*/
private String notificationTopicArn;
/**
* Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*/
private Boolean autoMinorVersionUpgrade;
/**
* Default constructor for a new CreateCacheClusterRequest object. Callers should use the
* setter or fluent setter (with...) methods to initialize this object after creating it.
*/
public CreateCacheClusterRequest() {}
/**
* Constructs a new CreateCacheClusterRequest object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param cacheClusterId The cache cluster identifier. This parameter is
* stored as a lowercase string.
Constraints:
- Must contain
* from 1 to 20 alphanumeric characters or hyphens.
- First
* character must be a letter.
- Cannot end with a hyphen or
* contain two consecutive hyphens.
* @param numCacheNodes The initial number of cache nodes that the cache
* cluster will have. For a Memcached cluster, valid values are
* between 1 and 20. If you need to exceed this limit, please fill out
* the ElastiCache Limit Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
* @param cacheNodeType The compute and memory capacity of the nodes in
* the cache cluster.
Valid values for Memcached:
* cache.t1.micro
| cache.m1.small
|
* cache.m1.medium
| cache.m1.large
|
* cache.m1.xlarge
| cache.m3.xlarge
|
* cache.m3.2xlarge
| cache.m2.xlarge
|
* cache.m2.2xlarge
| cache.m2.4xlarge
|
* cache.c1.xlarge
Valid values for Redis:
* cache.t1.micro
| cache.m1.small
|
* cache.m1.medium
| cache.m1.large
|
* cache.m1.xlarge
| cache.m2.xlarge
|
* cache.m2.2xlarge
| cache.m2.4xlarge
|
* cache.c1.xlarge
For a complete listing of cache node
* types and specifications, see .
* @param engine The name of the cache engine to be used for this cache
* cluster.
Valid values for this parameter are:
*
memcached
| redis
* @param cacheSecurityGroupNames A list of cache security group names to
* associate with this cache cluster.
Use this parameter only when you
* are creating a cluster outside of an Amazon Virtual Private Cloud
* (VPC).
*/
public CreateCacheClusterRequest(String cacheClusterId, Integer numCacheNodes, String cacheNodeType, String engine, java.util.List cacheSecurityGroupNames) {
setCacheClusterId(cacheClusterId);
setNumCacheNodes(numCacheNodes);
setCacheNodeType(cacheNodeType);
setEngine(engine);
setCacheSecurityGroupNames(cacheSecurityGroupNames);
}
/**
* The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*
* @return The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*/
public String getCacheClusterId() {
return cacheClusterId;
}
/**
* The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*
* @param cacheClusterId The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*/
public void setCacheClusterId(String cacheClusterId) {
this.cacheClusterId = cacheClusterId;
}
/**
* The cache cluster identifier. This parameter is stored as a lowercase
* string. Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheClusterId The cache cluster identifier. This parameter is stored as a lowercase
* string.
Constraints:
- Must contain from 1 to 20
* alphanumeric characters or hyphens.
- First character must be a
* letter.
- Cannot end with a hyphen or contain two consecutive
* hyphens.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheClusterId(String cacheClusterId) {
this.cacheClusterId = cacheClusterId;
return this;
}
/**
* The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*
* @return The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*/
public String getReplicationGroupId() {
return replicationGroupId;
}
/**
* The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*
* @param replicationGroupId The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*/
public void setReplicationGroupId(String replicationGroupId) {
this.replicationGroupId = replicationGroupId;
}
/**
* The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param replicationGroupId The replication group to which this cache cluster should belong. If
* this parameter is specified, the cache cluster will be added to the
* specified replication group as a read replica; otherwise, the cache
* cluster will be a standalone primary that is not part of any
* replication group.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withReplicationGroupId(String replicationGroupId) {
this.replicationGroupId = replicationGroupId;
return this;
}
/**
* The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*
* @return The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*/
public Integer getNumCacheNodes() {
return numCacheNodes;
}
/**
* The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*
* @param numCacheNodes The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*/
public void setNumCacheNodes(Integer numCacheNodes) {
this.numCacheNodes = numCacheNodes;
}
/**
* The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param numCacheNodes The initial number of cache nodes that the cache cluster will have.
*
For a Memcached cluster, valid values are between 1 and 20. If you
* need to exceed this limit, please fill out the ElastiCache Limit
* Increase Request form at
* .
For Redis, only single-node cache clusters are supported at this
* time, so the value for this parameter must be 1.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withNumCacheNodes(Integer numCacheNodes) {
this.numCacheNodes = numCacheNodes;
return this;
}
/**
* The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*
* @return The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*/
public String getCacheNodeType() {
return cacheNodeType;
}
/**
* The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*
* @param cacheNodeType The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*/
public void setCacheNodeType(String cacheNodeType) {
this.cacheNodeType = cacheNodeType;
}
/**
* The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheNodeType The compute and memory capacity of the nodes in the cache cluster.
*
Valid values for Memcached:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m3.xlarge
| cache.m3.2xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
Valid
* values for Redis:
cache.t1.micro
|
* cache.m1.small
| cache.m1.medium
|
* cache.m1.large
| cache.m1.xlarge
|
* cache.m2.xlarge
| cache.m2.2xlarge
|
* cache.m2.4xlarge
| cache.c1.xlarge
For a
* complete listing of cache node types and specifications, see .
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheNodeType(String cacheNodeType) {
this.cacheNodeType = cacheNodeType;
return this;
}
/**
* The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*
* @return The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*/
public String getEngine() {
return engine;
}
/**
* The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*
* @param engine The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
* The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param engine The name of the cache engine to be used for this cache cluster.
*
Valid values for this parameter are:
memcached
|
* redis
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withEngine(String engine) {
this.engine = engine;
return this;
}
/**
* The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*
* @return The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*/
public String getEngineVersion() {
return engineVersion;
}
/**
* The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*
* @param engineVersion The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
* The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param engineVersion The version number of the cache engine to be used for this cluster. To
* view the supported cache engine versions, use the
* DescribeCacheEngineVersions operation.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
/**
* The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*
* @return The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*/
public String getCacheParameterGroupName() {
return cacheParameterGroupName;
}
/**
* The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*
* @param cacheParameterGroupName The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*/
public void setCacheParameterGroupName(String cacheParameterGroupName) {
this.cacheParameterGroupName = cacheParameterGroupName;
}
/**
* The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheParameterGroupName The name of the cache parameter group to associate with this cache
* cluster. If this argument is omitted, the default cache parameter
* group for the specified engine will be used.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheParameterGroupName(String cacheParameterGroupName) {
this.cacheParameterGroupName = cacheParameterGroupName;
return this;
}
/**
* The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @return The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
public String getCacheSubnetGroupName() {
return cacheSubnetGroupName;
}
/**
* The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @param cacheSubnetGroupName The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
public void setCacheSubnetGroupName(String cacheSubnetGroupName) {
this.cacheSubnetGroupName = cacheSubnetGroupName;
}
/**
* The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheSubnetGroupName The name of the cache subnet group to be used for the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheSubnetGroupName(String cacheSubnetGroupName) {
this.cacheSubnetGroupName = cacheSubnetGroupName;
return this;
}
/**
* A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* @return A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*/
public java.util.List getCacheSecurityGroupNames() {
if (cacheSecurityGroupNames == null) {
cacheSecurityGroupNames = new com.amazonaws.internal.ListWithAutoConstructFlag();
cacheSecurityGroupNames.setAutoConstruct(true);
}
return cacheSecurityGroupNames;
}
/**
* A list of cache security group names to associate with this cache
* cluster. Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* @param cacheSecurityGroupNames A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*/
public void setCacheSecurityGroupNames(java.util.Collection cacheSecurityGroupNames) {
if (cacheSecurityGroupNames == null) {
this.cacheSecurityGroupNames = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag cacheSecurityGroupNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(cacheSecurityGroupNames.size());
cacheSecurityGroupNamesCopy.addAll(cacheSecurityGroupNames);
this.cacheSecurityGroupNames = cacheSecurityGroupNamesCopy;
}
/**
* A list of cache security group names to associate with this cache
* cluster. Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheSecurityGroupNames A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheSecurityGroupNames(String... cacheSecurityGroupNames) {
if (getCacheSecurityGroupNames() == null) setCacheSecurityGroupNames(new java.util.ArrayList(cacheSecurityGroupNames.length));
for (String value : cacheSecurityGroupNames) {
getCacheSecurityGroupNames().add(value);
}
return this;
}
/**
* A list of cache security group names to associate with this cache
* cluster. Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param cacheSecurityGroupNames A list of cache security group names to associate with this cache
* cluster.
Use this parameter only when you are creating a cluster
* outside of an Amazon Virtual Private Cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withCacheSecurityGroupNames(java.util.Collection cacheSecurityGroupNames) {
if (cacheSecurityGroupNames == null) {
this.cacheSecurityGroupNames = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag cacheSecurityGroupNamesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(cacheSecurityGroupNames.size());
cacheSecurityGroupNamesCopy.addAll(cacheSecurityGroupNames);
this.cacheSecurityGroupNames = cacheSecurityGroupNamesCopy;
}
return this;
}
/**
* One or more VPC security groups associated with the cache cluster.
* Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @return One or more VPC security groups associated with the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
public java.util.List getSecurityGroupIds() {
if (securityGroupIds == null) {
securityGroupIds = new com.amazonaws.internal.ListWithAutoConstructFlag();
securityGroupIds.setAutoConstruct(true);
}
return securityGroupIds;
}
/**
* One or more VPC security groups associated with the cache cluster.
* Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @param securityGroupIds One or more VPC security groups associated with the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag securityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(securityGroupIds.size());
securityGroupIdsCopy.addAll(securityGroupIds);
this.securityGroupIds = securityGroupIdsCopy;
}
/**
* One or more VPC security groups associated with the cache cluster.
* Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param securityGroupIds One or more VPC security groups associated with the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withSecurityGroupIds(String... securityGroupIds) {
if (getSecurityGroupIds() == null) setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length));
for (String value : securityGroupIds) {
getSecurityGroupIds().add(value);
}
return this;
}
/**
* One or more VPC security groups associated with the cache cluster.
* Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param securityGroupIds One or more VPC security groups associated with the cache cluster.
*
Use this parameter only when you are creating a cluster in an
* Amazon Virtual Private Cloud (VPC).
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag securityGroupIdsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(securityGroupIds.size());
securityGroupIdsCopy.addAll(securityGroupIds);
this.securityGroupIds = securityGroupIdsCopy;
}
return this;
}
/**
* A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas. Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* @return A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas.
Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*/
public java.util.List getSnapshotArns() {
if (snapshotArns == null) {
snapshotArns = new com.amazonaws.internal.ListWithAutoConstructFlag();
snapshotArns.setAutoConstruct(true);
}
return snapshotArns;
}
/**
* A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas. Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas.
Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*/
public void setSnapshotArns(java.util.Collection snapshotArns) {
if (snapshotArns == null) {
this.snapshotArns = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag snapshotArnsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(snapshotArns.size());
snapshotArnsCopy.addAll(snapshotArns);
this.snapshotArns = snapshotArnsCopy;
}
/**
* A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas. Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas.
Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withSnapshotArns(String... snapshotArns) {
if (getSnapshotArns() == null) setSnapshotArns(new java.util.ArrayList(snapshotArns.length));
for (String value : snapshotArns) {
getSnapshotArns().add(value);
}
return this;
}
/**
* A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas. Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param snapshotArns A single-element string list containing an Amazon Resource Name (ARN)
* that uniquely identifies a Redis RDB snapshot file stored in Amazon
* S3. The snapshot file will be used to populate the Redis cache in the
* new cache cluster. The Amazon S3 object name in the ARN cannot contain
* any commas.
Here is an example of an Amazon S3 ARN:
* arn:aws:s3:::my_bucket/snapshot1.rdb
Note: This
* parameter is only valid if the Engine
parameter is
* redis
.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withSnapshotArns(java.util.Collection snapshotArns) {
if (snapshotArns == null) {
this.snapshotArns = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag snapshotArnsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(snapshotArns.size());
snapshotArnsCopy.addAll(snapshotArns);
this.snapshotArns = snapshotArnsCopy;
}
return this;
}
/**
* The EC2 Availability Zone in which the cache cluster will be created.
* All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*
* @return The EC2 Availability Zone in which the cache cluster will be created.
*
All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*/
public String getPreferredAvailabilityZone() {
return preferredAvailabilityZone;
}
/**
* The EC2 Availability Zone in which the cache cluster will be created.
*
All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*
* @param preferredAvailabilityZone The EC2 Availability Zone in which the cache cluster will be created.
*
All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*/
public void setPreferredAvailabilityZone(String preferredAvailabilityZone) {
this.preferredAvailabilityZone = preferredAvailabilityZone;
}
/**
* The EC2 Availability Zone in which the cache cluster will be created.
*
All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param preferredAvailabilityZone The EC2 Availability Zone in which the cache cluster will be created.
*
All cache nodes belonging to a cache cluster are placed in the
* preferred availability zone.
Default: System chosen availability
* zone.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withPreferredAvailabilityZone(String preferredAvailabilityZone) {
this.preferredAvailabilityZone = preferredAvailabilityZone;
return this;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*
* @return The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*/
public String getPreferredMaintenanceWindow() {
return preferredMaintenanceWindow;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*
* @param preferredMaintenanceWindow The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
* The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param preferredMaintenanceWindow The weekly time range (in UTC) during which system maintenance can
* occur.
Example: sun:05:00-sun:09:00
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
return this;
}
/**
* The port number on which each of the cache nodes will accept
* connections.
*
* @return The port number on which each of the cache nodes will accept
* connections.
*/
public Integer getPort() {
return port;
}
/**
* The port number on which each of the cache nodes will accept
* connections.
*
* @param port The port number on which each of the cache nodes will accept
* connections.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
* The port number on which each of the cache nodes will accept
* connections.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param port The port number on which each of the cache nodes will accept
* connections.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withPort(Integer port) {
this.port = port;
return this;
}
/**
* The Amazon Resource Name (ARN) of the Amazon Simple Notification
* Service (SNS) topic to which notifications will be 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 will be sent. The
* Amazon SNS topic owner must be the same as the cache cluster owner.
*
*/
public String getNotificationTopicArn() {
return notificationTopicArn;
}
/**
* The Amazon Resource Name (ARN) of the Amazon Simple Notification
* Service (SNS) topic to which notifications will be 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 will be 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 will be sent. The
* Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param notificationTopicArn The Amazon Resource Name (ARN) of the Amazon Simple Notification
* Service (SNS) topic to which notifications will be sent. The
* Amazon SNS topic owner must be the same as the cache cluster owner.
*
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withNotificationTopicArn(String notificationTopicArn) {
this.notificationTopicArn = notificationTopicArn;
return this;
}
/**
* Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*
* @return Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*/
public Boolean isAutoMinorVersionUpgrade() {
return autoMinorVersionUpgrade;
}
/**
* Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*
* @param autoMinorVersionUpgrade Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*/
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
/**
* Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param autoMinorVersionUpgrade Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public CreateCacheClusterRequest withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
return this;
}
/**
* Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*
* @return Determines whether minor engine upgrades will be applied automatically
* to the cache cluster during the maintenance window. A value of
* true
allows these upgrades to occur; false
* disables automatic upgrades.
Default: true
*/
public Boolean getAutoMinorVersionUpgrade() {
return autoMinorVersionUpgrade;
}
/**
* 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 (getCacheClusterId() != null) sb.append("CacheClusterId: " + getCacheClusterId() + ",");
if (getReplicationGroupId() != null) sb.append("ReplicationGroupId: " + getReplicationGroupId() + ",");
if (getNumCacheNodes() != null) sb.append("NumCacheNodes: " + getNumCacheNodes() + ",");
if (getCacheNodeType() != null) sb.append("CacheNodeType: " + getCacheNodeType() + ",");
if (getEngine() != null) sb.append("Engine: " + getEngine() + ",");
if (getEngineVersion() != null) sb.append("EngineVersion: " + getEngineVersion() + ",");
if (getCacheParameterGroupName() != null) sb.append("CacheParameterGroupName: " + getCacheParameterGroupName() + ",");
if (getCacheSubnetGroupName() != null) sb.append("CacheSubnetGroupName: " + getCacheSubnetGroupName() + ",");
if (getCacheSecurityGroupNames() != null) sb.append("CacheSecurityGroupNames: " + getCacheSecurityGroupNames() + ",");
if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: " + getSecurityGroupIds() + ",");
if (getSnapshotArns() != null) sb.append("SnapshotArns: " + getSnapshotArns() + ",");
if (getPreferredAvailabilityZone() != null) sb.append("PreferredAvailabilityZone: " + getPreferredAvailabilityZone() + ",");
if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: " + getPreferredMaintenanceWindow() + ",");
if (getPort() != null) sb.append("Port: " + getPort() + ",");
if (getNotificationTopicArn() != null) sb.append("NotificationTopicArn: " + getNotificationTopicArn() + ",");
if (isAutoMinorVersionUpgrade() != null) sb.append("AutoMinorVersionUpgrade: " + isAutoMinorVersionUpgrade() );
sb.append("}");
return sb.toString();
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCacheClusterId() == null) ? 0 : getCacheClusterId().hashCode());
hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode());
hashCode = prime * hashCode + ((getNumCacheNodes() == null) ? 0 : getNumCacheNodes().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 + ((getSnapshotArns() == null) ? 0 : getSnapshotArns().hashCode());
hashCode = prime * hashCode + ((getPreferredAvailabilityZone() == null) ? 0 : getPreferredAvailabilityZone().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 + ((isAutoMinorVersionUpgrade() == null) ? 0 : isAutoMinorVersionUpgrade().hashCode());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof CreateCacheClusterRequest == false) return false;
CreateCacheClusterRequest other = (CreateCacheClusterRequest)obj;
if (other.getCacheClusterId() == null ^ this.getCacheClusterId() == null) return false;
if (other.getCacheClusterId() != null && other.getCacheClusterId().equals(this.getCacheClusterId()) == false) return false;
if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false;
if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == false) return false;
if (other.getNumCacheNodes() == null ^ this.getNumCacheNodes() == null) return false;
if (other.getNumCacheNodes() != null && other.getNumCacheNodes().equals(this.getNumCacheNodes()) == 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.getSnapshotArns() == null ^ this.getSnapshotArns() == null) return false;
if (other.getSnapshotArns() != null && other.getSnapshotArns().equals(this.getSnapshotArns()) == false) return false;
if (other.getPreferredAvailabilityZone() == null ^ this.getPreferredAvailabilityZone() == null) return false;
if (other.getPreferredAvailabilityZone() != null && other.getPreferredAvailabilityZone().equals(this.getPreferredAvailabilityZone()) == 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.isAutoMinorVersionUpgrade() == null ^ this.isAutoMinorVersionUpgrade() == null) return false;
if (other.isAutoMinorVersionUpgrade() != null && other.isAutoMinorVersionUpgrade().equals(this.isAutoMinorVersionUpgrade()) == false) return false;
return true;
}
}