com.amazonaws.services.elasticache.model.ServerlessCache Maven / Gradle / Ivy
Show all versions of aws-java-sdk-elasticache Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* The resource representing a serverless cache.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ServerlessCache implements Serializable, Cloneable {
/**
*
* The unique identifier of the serverless cache.
*
*/
private String serverlessCacheName;
/**
*
* A description of the serverless cache.
*
*/
private String description;
/**
*
* When the serverless cache was created.
*
*/
private java.util.Date createTime;
/**
*
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED
* and MODIFYING.
*
*/
private String status;
/**
*
* The engine the serverless cache is compatible with.
*
*/
private String engine;
/**
*
* The version number of the engine the serverless cache is compatible with.
*
*/
private String majorEngineVersion;
/**
*
* The name and version number of the engine the serverless cache is compatible with.
*
*/
private String fullEngineVersion;
/**
*
* The cache usage limit for the serverless cache.
*
*/
private CacheUsageLimits cacheUsageLimits;
/**
*
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the
* serverless cache.
*
*/
private String kmsKeyId;
/**
*
* The IDs of the EC2 security groups associated with the serverless cache.
*
*/
private com.amazonaws.internal.SdkInternalList securityGroupIds;
private Endpoint endpoint;
private Endpoint readerEndpoint;
/**
*
* The Amazon Resource Name (ARN) of the serverless cache.
*
*/
private String aRN;
/**
*
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only. Default is
* NULL.
*
*/
private String userGroupId;
/**
*
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across
* AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets
* across AZs in your default VPC.
*
*/
private com.amazonaws.internal.SdkInternalList subnetIds;
/**
*
* The current setting for the number of serverless cache snapshots the system will retain. Available for Redis OSS
* and Serverless Memcached only.
*
*/
private Integer snapshotRetentionLimit;
/**
*
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a
* specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*
*/
private String dailySnapshotTime;
/**
*
* The unique identifier of the serverless cache.
*
*
* @param serverlessCacheName
* The unique identifier of the serverless cache.
*/
public void setServerlessCacheName(String serverlessCacheName) {
this.serverlessCacheName = serverlessCacheName;
}
/**
*
* The unique identifier of the serverless cache.
*
*
* @return The unique identifier of the serverless cache.
*/
public String getServerlessCacheName() {
return this.serverlessCacheName;
}
/**
*
* The unique identifier of the serverless cache.
*
*
* @param serverlessCacheName
* The unique identifier of the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withServerlessCacheName(String serverlessCacheName) {
setServerlessCacheName(serverlessCacheName);
return this;
}
/**
*
* A description of the serverless cache.
*
*
* @param description
* A description of the serverless cache.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the serverless cache.
*
*
* @return A description of the serverless cache.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the serverless cache.
*
*
* @param description
* A description of the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* When the serverless cache was created.
*
*
* @param createTime
* When the serverless cache was created.
*/
public void setCreateTime(java.util.Date createTime) {
this.createTime = createTime;
}
/**
*
* When the serverless cache was created.
*
*
* @return When the serverless cache was created.
*/
public java.util.Date getCreateTime() {
return this.createTime;
}
/**
*
* When the serverless cache was created.
*
*
* @param createTime
* When the serverless cache was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withCreateTime(java.util.Date createTime) {
setCreateTime(createTime);
return this;
}
/**
*
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED
* and MODIFYING.
*
*
* @param status
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING,
* CREATE-FAILED and MODIFYING.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED
* and MODIFYING.
*
*
* @return The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING,
* CREATE-FAILED and MODIFYING.
*/
public String getStatus() {
return this.status;
}
/**
*
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING, CREATE-FAILED
* and MODIFYING.
*
*
* @param status
* The current status of the serverless cache. The allowed values are CREATING, AVAILABLE, DELETING,
* CREATE-FAILED and MODIFYING.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The engine the serverless cache is compatible with.
*
*
* @param engine
* The engine the serverless cache is compatible with.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The engine the serverless cache is compatible with.
*
*
* @return The engine the serverless cache is compatible with.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The engine the serverless cache is compatible with.
*
*
* @param engine
* The engine the serverless cache is compatible with.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The version number of the engine the serverless cache is compatible with.
*
*
* @param majorEngineVersion
* The version number of the engine the serverless cache is compatible with.
*/
public void setMajorEngineVersion(String majorEngineVersion) {
this.majorEngineVersion = majorEngineVersion;
}
/**
*
* The version number of the engine the serverless cache is compatible with.
*
*
* @return The version number of the engine the serverless cache is compatible with.
*/
public String getMajorEngineVersion() {
return this.majorEngineVersion;
}
/**
*
* The version number of the engine the serverless cache is compatible with.
*
*
* @param majorEngineVersion
* The version number of the engine the serverless cache is compatible with.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withMajorEngineVersion(String majorEngineVersion) {
setMajorEngineVersion(majorEngineVersion);
return this;
}
/**
*
* The name and version number of the engine the serverless cache is compatible with.
*
*
* @param fullEngineVersion
* The name and version number of the engine the serverless cache is compatible with.
*/
public void setFullEngineVersion(String fullEngineVersion) {
this.fullEngineVersion = fullEngineVersion;
}
/**
*
* The name and version number of the engine the serverless cache is compatible with.
*
*
* @return The name and version number of the engine the serverless cache is compatible with.
*/
public String getFullEngineVersion() {
return this.fullEngineVersion;
}
/**
*
* The name and version number of the engine the serverless cache is compatible with.
*
*
* @param fullEngineVersion
* The name and version number of the engine the serverless cache is compatible with.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withFullEngineVersion(String fullEngineVersion) {
setFullEngineVersion(fullEngineVersion);
return this;
}
/**
*
* The cache usage limit for the serverless cache.
*
*
* @param cacheUsageLimits
* The cache usage limit for the serverless cache.
*/
public void setCacheUsageLimits(CacheUsageLimits cacheUsageLimits) {
this.cacheUsageLimits = cacheUsageLimits;
}
/**
*
* The cache usage limit for the serverless cache.
*
*
* @return The cache usage limit for the serverless cache.
*/
public CacheUsageLimits getCacheUsageLimits() {
return this.cacheUsageLimits;
}
/**
*
* The cache usage limit for the serverless cache.
*
*
* @param cacheUsageLimits
* The cache usage limit for the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withCacheUsageLimits(CacheUsageLimits cacheUsageLimits) {
setCacheUsageLimits(cacheUsageLimits);
return this;
}
/**
*
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the
* serverless cache.
*
*
* @param kmsKeyId
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in
* the serverless cache.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the
* serverless cache.
*
*
* @return The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest
* in the serverless cache.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in the
* serverless cache.
*
*
* @param kmsKeyId
* The ID of the Amazon Web Services Key Management Service (KMS) key that is used to encrypt data at rest in
* the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The IDs of the EC2 security groups associated with the serverless cache.
*
*
* @return The IDs of the EC2 security groups associated with the serverless cache.
*/
public java.util.List getSecurityGroupIds() {
if (securityGroupIds == null) {
securityGroupIds = new com.amazonaws.internal.SdkInternalList();
}
return securityGroupIds;
}
/**
*
* The IDs of the EC2 security groups associated with the serverless cache.
*
*
* @param securityGroupIds
* The IDs of the EC2 security groups associated with the serverless cache.
*/
public void setSecurityGroupIds(java.util.Collection securityGroupIds) {
if (securityGroupIds == null) {
this.securityGroupIds = null;
return;
}
this.securityGroupIds = new com.amazonaws.internal.SdkInternalList(securityGroupIds);
}
/**
*
* The IDs of the EC2 security groups associated with the serverless cache.
*
*
* 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
* The IDs of the EC2 security groups associated with the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache 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;
}
/**
*
* The IDs of the EC2 security groups associated with the serverless cache.
*
*
* @param securityGroupIds
* The IDs of the EC2 security groups associated with the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withSecurityGroupIds(java.util.Collection securityGroupIds) {
setSecurityGroupIds(securityGroupIds);
return this;
}
/**
* @param endpoint
*/
public void setEndpoint(Endpoint endpoint) {
this.endpoint = endpoint;
}
/**
* @return
*/
public Endpoint getEndpoint() {
return this.endpoint;
}
/**
* @param endpoint
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withEndpoint(Endpoint endpoint) {
setEndpoint(endpoint);
return this;
}
/**
* @param readerEndpoint
*/
public void setReaderEndpoint(Endpoint readerEndpoint) {
this.readerEndpoint = readerEndpoint;
}
/**
* @return
*/
public Endpoint getReaderEndpoint() {
return this.readerEndpoint;
}
/**
* @param readerEndpoint
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withReaderEndpoint(Endpoint readerEndpoint) {
setReaderEndpoint(readerEndpoint);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the serverless cache.
*
*
* @param aRN
* The Amazon Resource Name (ARN) of the serverless cache.
*/
public void setARN(String aRN) {
this.aRN = aRN;
}
/**
*
* The Amazon Resource Name (ARN) of the serverless cache.
*
*
* @return The Amazon Resource Name (ARN) of the serverless cache.
*/
public String getARN() {
return this.aRN;
}
/**
*
* The Amazon Resource Name (ARN) of the serverless cache.
*
*
* @param aRN
* The Amazon Resource Name (ARN) of the serverless cache.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withARN(String aRN) {
setARN(aRN);
return this;
}
/**
*
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only. Default is
* NULL.
*
*
* @param userGroupId
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only.
* Default is NULL.
*/
public void setUserGroupId(String userGroupId) {
this.userGroupId = userGroupId;
}
/**
*
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only. Default is
* NULL.
*
*
* @return The identifier of the user group associated with the serverless cache. Available for Redis OSS only.
* Default is NULL.
*/
public String getUserGroupId() {
return this.userGroupId;
}
/**
*
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only. Default is
* NULL.
*
*
* @param userGroupId
* The identifier of the user group associated with the serverless cache. Available for Redis OSS only.
* Default is NULL.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withUserGroupId(String userGroupId) {
setUserGroupId(userGroupId);
return this;
}
/**
*
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across
* AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets
* across AZs in your default VPC.
*
*
* @return If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets
* across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3
* default subnets across AZs in your default VPC.
*/
public java.util.List getSubnetIds() {
if (subnetIds == null) {
subnetIds = new com.amazonaws.internal.SdkInternalList();
}
return subnetIds;
}
/**
*
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across
* AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets
* across AZs in your default VPC.
*
*
* @param subnetIds
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets
* across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3
* default subnets across AZs in your default VPC.
*/
public void setSubnetIds(java.util.Collection subnetIds) {
if (subnetIds == null) {
this.subnetIds = null;
return;
}
this.subnetIds = new com.amazonaws.internal.SdkInternalList(subnetIds);
}
/**
*
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across
* AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets
* across AZs in your default VPC.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param subnetIds
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets
* across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3
* default subnets across AZs in your default VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withSubnetIds(String... subnetIds) {
if (this.subnetIds == null) {
setSubnetIds(new com.amazonaws.internal.SdkInternalList(subnetIds.length));
}
for (String ele : subnetIds) {
this.subnetIds.add(ele);
}
return this;
}
/**
*
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets across
* AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3 default subnets
* across AZs in your default VPC.
*
*
* @param subnetIds
* If no subnet IDs are given and your VPC is in us-west-1, then ElastiCache will select 2 default subnets
* across AZs in your VPC. For all other Regions, if no subnet IDs are given then ElastiCache will select 3
* default subnets across AZs in your default VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withSubnetIds(java.util.Collection subnetIds) {
setSubnetIds(subnetIds);
return this;
}
/**
*
* The current setting for the number of serverless cache snapshots the system will retain. Available for Redis OSS
* and Serverless Memcached only.
*
*
* @param snapshotRetentionLimit
* The current setting for the number of serverless cache snapshots the system will retain. Available for
* Redis OSS and Serverless Memcached only.
*/
public void setSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
this.snapshotRetentionLimit = snapshotRetentionLimit;
}
/**
*
* The current setting for the number of serverless cache snapshots the system will retain. Available for Redis OSS
* and Serverless Memcached only.
*
*
* @return The current setting for the number of serverless cache snapshots the system will retain. Available for
* Redis OSS and Serverless Memcached only.
*/
public Integer getSnapshotRetentionLimit() {
return this.snapshotRetentionLimit;
}
/**
*
* The current setting for the number of serverless cache snapshots the system will retain. Available for Redis OSS
* and Serverless Memcached only.
*
*
* @param snapshotRetentionLimit
* The current setting for the number of serverless cache snapshots the system will retain. Available for
* Redis OSS and Serverless Memcached only.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withSnapshotRetentionLimit(Integer snapshotRetentionLimit) {
setSnapshotRetentionLimit(snapshotRetentionLimit);
return this;
}
/**
*
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a
* specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*
*
* @param dailySnapshotTime
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created
* at a specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*/
public void setDailySnapshotTime(String dailySnapshotTime) {
this.dailySnapshotTime = dailySnapshotTime;
}
/**
*
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a
* specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*
*
* @return The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created
* at a specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*/
public String getDailySnapshotTime() {
return this.dailySnapshotTime;
}
/**
*
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created at a
* specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
*
*
* @param dailySnapshotTime
* The daily time that a cache snapshot will be created. Default is NULL, i.e. snapshots will not be created
* at a specific time on a daily basis. Available for Redis OSS and Serverless Memcached only.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ServerlessCache withDailySnapshotTime(String dailySnapshotTime) {
setDailySnapshotTime(dailySnapshotTime);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getServerlessCacheName() != null)
sb.append("ServerlessCacheName: ").append(getServerlessCacheName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getCreateTime() != null)
sb.append("CreateTime: ").append(getCreateTime()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getMajorEngineVersion() != null)
sb.append("MajorEngineVersion: ").append(getMajorEngineVersion()).append(",");
if (getFullEngineVersion() != null)
sb.append("FullEngineVersion: ").append(getFullEngineVersion()).append(",");
if (getCacheUsageLimits() != null)
sb.append("CacheUsageLimits: ").append(getCacheUsageLimits()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getSecurityGroupIds() != null)
sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(",");
if (getEndpoint() != null)
sb.append("Endpoint: ").append(getEndpoint()).append(",");
if (getReaderEndpoint() != null)
sb.append("ReaderEndpoint: ").append(getReaderEndpoint()).append(",");
if (getARN() != null)
sb.append("ARN: ").append(getARN()).append(",");
if (getUserGroupId() != null)
sb.append("UserGroupId: ").append(getUserGroupId()).append(",");
if (getSubnetIds() != null)
sb.append("SubnetIds: ").append(getSubnetIds()).append(",");
if (getSnapshotRetentionLimit() != null)
sb.append("SnapshotRetentionLimit: ").append(getSnapshotRetentionLimit()).append(",");
if (getDailySnapshotTime() != null)
sb.append("DailySnapshotTime: ").append(getDailySnapshotTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ServerlessCache == false)
return false;
ServerlessCache other = (ServerlessCache) obj;
if (other.getServerlessCacheName() == null ^ this.getServerlessCacheName() == null)
return false;
if (other.getServerlessCacheName() != null && other.getServerlessCacheName().equals(this.getServerlessCacheName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getCreateTime() == null ^ this.getCreateTime() == null)
return false;
if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getMajorEngineVersion() == null ^ this.getMajorEngineVersion() == null)
return false;
if (other.getMajorEngineVersion() != null && other.getMajorEngineVersion().equals(this.getMajorEngineVersion()) == false)
return false;
if (other.getFullEngineVersion() == null ^ this.getFullEngineVersion() == null)
return false;
if (other.getFullEngineVersion() != null && other.getFullEngineVersion().equals(this.getFullEngineVersion()) == false)
return false;
if (other.getCacheUsageLimits() == null ^ this.getCacheUsageLimits() == null)
return false;
if (other.getCacheUsageLimits() != null && other.getCacheUsageLimits().equals(this.getCacheUsageLimits()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == 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.getEndpoint() == null ^ this.getEndpoint() == null)
return false;
if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false)
return false;
if (other.getReaderEndpoint() == null ^ this.getReaderEndpoint() == null)
return false;
if (other.getReaderEndpoint() != null && other.getReaderEndpoint().equals(this.getReaderEndpoint()) == false)
return false;
if (other.getARN() == null ^ this.getARN() == null)
return false;
if (other.getARN() != null && other.getARN().equals(this.getARN()) == false)
return false;
if (other.getUserGroupId() == null ^ this.getUserGroupId() == null)
return false;
if (other.getUserGroupId() != null && other.getUserGroupId().equals(this.getUserGroupId()) == false)
return false;
if (other.getSubnetIds() == null ^ this.getSubnetIds() == null)
return false;
if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == 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.getDailySnapshotTime() == null ^ this.getDailySnapshotTime() == null)
return false;
if (other.getDailySnapshotTime() != null && other.getDailySnapshotTime().equals(this.getDailySnapshotTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getServerlessCacheName() == null) ? 0 : getServerlessCacheName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getMajorEngineVersion() == null) ? 0 : getMajorEngineVersion().hashCode());
hashCode = prime * hashCode + ((getFullEngineVersion() == null) ? 0 : getFullEngineVersion().hashCode());
hashCode = prime * hashCode + ((getCacheUsageLimits() == null) ? 0 : getCacheUsageLimits().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode());
hashCode = prime * hashCode + ((getReaderEndpoint() == null) ? 0 : getReaderEndpoint().hashCode());
hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode());
hashCode = prime * hashCode + ((getUserGroupId() == null) ? 0 : getUserGroupId().hashCode());
hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode());
hashCode = prime * hashCode + ((getSnapshotRetentionLimit() == null) ? 0 : getSnapshotRetentionLimit().hashCode());
hashCode = prime * hashCode + ((getDailySnapshotTime() == null) ? 0 : getDailySnapshotTime().hashCode());
return hashCode;
}
@Override
public ServerlessCache clone() {
try {
return (ServerlessCache) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}