All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.elasticache.model.ServerlessCacheSnapshot Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon ElastiCache module holds the client classes that are used for communicating with Amazon ElastiCache Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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 snapshot. Available for Redis OSS and Serverless Memcached only. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ServerlessCacheSnapshot implements Serializable, Cloneable { /** *

* The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. *

*/ private String serverlessCacheSnapshotName; /** *

* The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached * only. *

*/ private String aRN; /** *

* The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for * Redis OSS and Serverless Memcached only. *

*/ private String kmsKeyId; /** *

* The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. *

*/ private String snapshotType; /** *

* The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. *

*/ private String status; /** *

* The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. * Available for Redis OSS and Serverless Memcached only. *

*/ private java.util.Date createTime; /** *

* The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached only. *

*/ private java.util.Date expiryTime; /** *

* The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached only. *

*/ private String bytesUsedForCache; /** *

* The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. *

*/ private ServerlessCacheConfiguration serverlessCacheConfiguration; /** *

* The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. *

* * @param serverlessCacheSnapshotName * The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. */ public void setServerlessCacheSnapshotName(String serverlessCacheSnapshotName) { this.serverlessCacheSnapshotName = serverlessCacheSnapshotName; } /** *

* The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. *

* * @return The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. */ public String getServerlessCacheSnapshotName() { return this.serverlessCacheSnapshotName; } /** *

* The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. *

* * @param serverlessCacheSnapshotName * The identifier of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withServerlessCacheSnapshotName(String serverlessCacheSnapshotName) { setServerlessCacheSnapshotName(serverlessCacheSnapshotName); return this; } /** *

* The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached * only. *

* * @param aRN * The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless * Memcached only. */ public void setARN(String aRN) { this.aRN = aRN; } /** *

* The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached * only. *

* * @return The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless * Memcached only. */ public String getARN() { return this.aRN; } /** *

* The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless Memcached * only. *

* * @param aRN * The Amazon Resource Name (ARN) of a serverless cache snapshot. Available for Redis OSS and Serverless * Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withARN(String aRN) { setARN(aRN); return this; } /** *

* The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for * Redis OSS and Serverless Memcached only. *

* * @param kmsKeyId * The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. * Available for Redis OSS and Serverless Memcached only. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for * Redis OSS and Serverless Memcached only. *

* * @return The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. * Available for Redis OSS and Serverless Memcached only. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. Available for * Redis OSS and Serverless Memcached only. *

* * @param kmsKeyId * The ID of the Amazon Web Services Key Management Service (KMS) key of a serverless cache snapshot. * Available for Redis OSS and Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @param snapshotType * The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. */ public void setSnapshotType(String snapshotType) { this.snapshotType = snapshotType; } /** *

* The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @return The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. */ public String getSnapshotType() { return this.snapshotType; } /** *

* The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @param snapshotType * The type of snapshot of serverless cache. Available for Redis OSS and Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withSnapshotType(String snapshotType) { setSnapshotType(snapshotType); return this; } /** *

* The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @param status * The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. */ public void setStatus(String status) { this.status = status; } /** *

* The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @return The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. */ public String getStatus() { return this.status; } /** *

* The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. *

* * @param status * The current status of the serverless cache. Available for Redis OSS and Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withStatus(String status) { setStatus(status); return this; } /** *

* The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. * Available for Redis OSS and Serverless Memcached only. *

* * @param createTime * The date and time that the source serverless cache's metadata and cache data set was obtained for the * snapshot. Available for Redis OSS and Serverless Memcached only. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. * Available for Redis OSS and Serverless Memcached only. *

* * @return The date and time that the source serverless cache's metadata and cache data set was obtained for the * snapshot. Available for Redis OSS and Serverless Memcached only. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The date and time that the source serverless cache's metadata and cache data set was obtained for the snapshot. * Available for Redis OSS and Serverless Memcached only. *

* * @param createTime * The date and time that the source serverless cache's metadata and cache data set was obtained for the * snapshot. Available for Redis OSS and Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached only. *

* * @param expiryTime * The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached * only. */ public void setExpiryTime(java.util.Date expiryTime) { this.expiryTime = expiryTime; } /** *

* The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached only. *

* * @return The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached * only. */ public java.util.Date getExpiryTime() { return this.expiryTime; } /** *

* The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached only. *

* * @param expiryTime * The time that the serverless cache snapshot will expire. Available for Redis OSS and Serverless Memcached * only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withExpiryTime(java.util.Date expiryTime) { setExpiryTime(expiryTime); return this; } /** *

* The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached only. *

* * @param bytesUsedForCache * The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached * only. */ public void setBytesUsedForCache(String bytesUsedForCache) { this.bytesUsedForCache = bytesUsedForCache; } /** *

* The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached only. *

* * @return The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached * only. */ public String getBytesUsedForCache() { return this.bytesUsedForCache; } /** *

* The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached only. *

* * @param bytesUsedForCache * The total size of a serverless cache snapshot, in bytes. Available for Redis OSS and Serverless Memcached * only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withBytesUsedForCache(String bytesUsedForCache) { setBytesUsedForCache(bytesUsedForCache); return this; } /** *

* The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. *

* * @param serverlessCacheConfiguration * The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. */ public void setServerlessCacheConfiguration(ServerlessCacheConfiguration serverlessCacheConfiguration) { this.serverlessCacheConfiguration = serverlessCacheConfiguration; } /** *

* The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. *

* * @return The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS * and Serverless Memcached only. */ public ServerlessCacheConfiguration getServerlessCacheConfiguration() { return this.serverlessCacheConfiguration; } /** *

* The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. *

* * @param serverlessCacheConfiguration * The configuration of the serverless cache, at the time the snapshot was taken. Available for Redis OSS and * Serverless Memcached only. * @return Returns a reference to this object so that method calls can be chained together. */ public ServerlessCacheSnapshot withServerlessCacheConfiguration(ServerlessCacheConfiguration serverlessCacheConfiguration) { setServerlessCacheConfiguration(serverlessCacheConfiguration); 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 (getServerlessCacheSnapshotName() != null) sb.append("ServerlessCacheSnapshotName: ").append(getServerlessCacheSnapshotName()).append(","); if (getARN() != null) sb.append("ARN: ").append(getARN()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getSnapshotType() != null) sb.append("SnapshotType: ").append(getSnapshotType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreateTime() != null) sb.append("CreateTime: ").append(getCreateTime()).append(","); if (getExpiryTime() != null) sb.append("ExpiryTime: ").append(getExpiryTime()).append(","); if (getBytesUsedForCache() != null) sb.append("BytesUsedForCache: ").append(getBytesUsedForCache()).append(","); if (getServerlessCacheConfiguration() != null) sb.append("ServerlessCacheConfiguration: ").append(getServerlessCacheConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServerlessCacheSnapshot == false) return false; ServerlessCacheSnapshot other = (ServerlessCacheSnapshot) obj; if (other.getServerlessCacheSnapshotName() == null ^ this.getServerlessCacheSnapshotName() == null) return false; if (other.getServerlessCacheSnapshotName() != null && other.getServerlessCacheSnapshotName().equals(this.getServerlessCacheSnapshotName()) == 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.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getSnapshotType() == null ^ this.getSnapshotType() == null) return false; if (other.getSnapshotType() != null && other.getSnapshotType().equals(this.getSnapshotType()) == 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.getCreateTime() == null ^ this.getCreateTime() == null) return false; if (other.getCreateTime() != null && other.getCreateTime().equals(this.getCreateTime()) == false) return false; if (other.getExpiryTime() == null ^ this.getExpiryTime() == null) return false; if (other.getExpiryTime() != null && other.getExpiryTime().equals(this.getExpiryTime()) == false) return false; if (other.getBytesUsedForCache() == null ^ this.getBytesUsedForCache() == null) return false; if (other.getBytesUsedForCache() != null && other.getBytesUsedForCache().equals(this.getBytesUsedForCache()) == false) return false; if (other.getServerlessCacheConfiguration() == null ^ this.getServerlessCacheConfiguration() == null) return false; if (other.getServerlessCacheConfiguration() != null && other.getServerlessCacheConfiguration().equals(this.getServerlessCacheConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerlessCacheSnapshotName() == null) ? 0 : getServerlessCacheSnapshotName().hashCode()); hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getSnapshotType() == null) ? 0 : getSnapshotType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); hashCode = prime * hashCode + ((getExpiryTime() == null) ? 0 : getExpiryTime().hashCode()); hashCode = prime * hashCode + ((getBytesUsedForCache() == null) ? 0 : getBytesUsedForCache().hashCode()); hashCode = prime * hashCode + ((getServerlessCacheConfiguration() == null) ? 0 : getServerlessCacheConfiguration().hashCode()); return hashCode; } @Override public ServerlessCacheSnapshot clone() { try { return (ServerlessCacheSnapshot) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy