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

com.amazonaws.services.elasticache.model.PendingModifiedValues 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;

/**
 * 

* A group of settings that are applied to the cluster in the future, or that are currently being applied. *

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

* The new number of cache nodes for the cluster. *

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be between * 1 and 40. *

*/ private Integer numCacheNodes; /** *

* A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit * numeric identifier (0001, 0002, etc.). *

*/ private com.amazonaws.internal.SdkInternalList cacheNodeIdsToRemove; /** *

* The new cache engine version that the cluster runs. *

*/ private String engineVersion; /** *

* The cache node type that this cluster or replication group is scaled to. *

*/ private String cacheNodeType; /** *

* The auth token status *

*/ private String authTokenStatus; /** *

* The log delivery configurations being modified *

*/ private com.amazonaws.internal.SdkInternalList logDeliveryConfigurations; /** *

* A flag that enables in-transit encryption when set to true. *

*/ private Boolean transitEncryptionEnabled; /** *

* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *

*/ private String transitEncryptionMode; /** *

* The new number of cache nodes for the cluster. *

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be between * 1 and 40. *

* * @param numCacheNodes * The new number of cache nodes for the cluster.

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be * between 1 and 40. */ public void setNumCacheNodes(Integer numCacheNodes) { this.numCacheNodes = numCacheNodes; } /** *

* The new number of cache nodes for the cluster. *

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be between * 1 and 40. *

* * @return The new number of cache nodes for the cluster.

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be * between 1 and 40. */ public Integer getNumCacheNodes() { return this.numCacheNodes; } /** *

* The new number of cache nodes for the cluster. *

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be between * 1 and 40. *

* * @param numCacheNodes * The new number of cache nodes for the cluster.

*

* For clusters running Redis OSS, this value must be 1. For clusters running Memcached, this value must be * between 1 and 40. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withNumCacheNodes(Integer numCacheNodes) { setNumCacheNodes(numCacheNodes); return this; } /** *

* A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit * numeric identifier (0001, 0002, etc.). *

* * @return A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a * 4-digit numeric identifier (0001, 0002, etc.). */ public java.util.List getCacheNodeIdsToRemove() { if (cacheNodeIdsToRemove == null) { cacheNodeIdsToRemove = new com.amazonaws.internal.SdkInternalList(); } return cacheNodeIdsToRemove; } /** *

* A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit * numeric identifier (0001, 0002, etc.). *

* * @param cacheNodeIdsToRemove * A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a * 4-digit numeric identifier (0001, 0002, etc.). */ public void setCacheNodeIdsToRemove(java.util.Collection cacheNodeIdsToRemove) { if (cacheNodeIdsToRemove == null) { this.cacheNodeIdsToRemove = null; return; } this.cacheNodeIdsToRemove = new com.amazonaws.internal.SdkInternalList(cacheNodeIdsToRemove); } /** *

* A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit * numeric identifier (0001, 0002, etc.). *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCacheNodeIdsToRemove(java.util.Collection)} or {@link #withCacheNodeIdsToRemove(java.util.Collection)} * if you want to override the existing values. *

* * @param cacheNodeIdsToRemove * A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a * 4-digit numeric identifier (0001, 0002, etc.). * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withCacheNodeIdsToRemove(String... cacheNodeIdsToRemove) { if (this.cacheNodeIdsToRemove == null) { setCacheNodeIdsToRemove(new com.amazonaws.internal.SdkInternalList(cacheNodeIdsToRemove.length)); } for (String ele : cacheNodeIdsToRemove) { this.cacheNodeIdsToRemove.add(ele); } return this; } /** *

* A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit * numeric identifier (0001, 0002, etc.). *

* * @param cacheNodeIdsToRemove * A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a * 4-digit numeric identifier (0001, 0002, etc.). * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withCacheNodeIdsToRemove(java.util.Collection cacheNodeIdsToRemove) { setCacheNodeIdsToRemove(cacheNodeIdsToRemove); return this; } /** *

* The new cache engine version that the cluster runs. *

* * @param engineVersion * The new cache engine version that the cluster runs. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The new cache engine version that the cluster runs. *

* * @return The new cache engine version that the cluster runs. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The new cache engine version that the cluster runs. *

* * @param engineVersion * The new cache engine version that the cluster runs. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* The cache node type that this cluster or replication group is scaled to. *

* * @param cacheNodeType * The cache node type that this cluster or replication group is scaled to. */ public void setCacheNodeType(String cacheNodeType) { this.cacheNodeType = cacheNodeType; } /** *

* The cache node type that this cluster or replication group is scaled to. *

* * @return The cache node type that this cluster or replication group is scaled to. */ public String getCacheNodeType() { return this.cacheNodeType; } /** *

* The cache node type that this cluster or replication group is scaled to. *

* * @param cacheNodeType * The cache node type that this cluster or replication group is scaled to. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withCacheNodeType(String cacheNodeType) { setCacheNodeType(cacheNodeType); return this; } /** *

* The auth token status *

* * @param authTokenStatus * The auth token status * @see AuthTokenUpdateStatus */ public void setAuthTokenStatus(String authTokenStatus) { this.authTokenStatus = authTokenStatus; } /** *

* The auth token status *

* * @return The auth token status * @see AuthTokenUpdateStatus */ public String getAuthTokenStatus() { return this.authTokenStatus; } /** *

* The auth token status *

* * @param authTokenStatus * The auth token status * @return Returns a reference to this object so that method calls can be chained together. * @see AuthTokenUpdateStatus */ public PendingModifiedValues withAuthTokenStatus(String authTokenStatus) { setAuthTokenStatus(authTokenStatus); return this; } /** *

* The auth token status *

* * @param authTokenStatus * The auth token status * @return Returns a reference to this object so that method calls can be chained together. * @see AuthTokenUpdateStatus */ public PendingModifiedValues withAuthTokenStatus(AuthTokenUpdateStatus authTokenStatus) { this.authTokenStatus = authTokenStatus.toString(); return this; } /** *

* The log delivery configurations being modified *

* * @return The log delivery configurations being modified */ public java.util.List getLogDeliveryConfigurations() { if (logDeliveryConfigurations == null) { logDeliveryConfigurations = new com.amazonaws.internal.SdkInternalList(); } return logDeliveryConfigurations; } /** *

* The log delivery configurations being modified *

* * @param logDeliveryConfigurations * The log delivery configurations being modified */ public void setLogDeliveryConfigurations(java.util.Collection logDeliveryConfigurations) { if (logDeliveryConfigurations == null) { this.logDeliveryConfigurations = null; return; } this.logDeliveryConfigurations = new com.amazonaws.internal.SdkInternalList(logDeliveryConfigurations); } /** *

* The log delivery configurations being modified *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogDeliveryConfigurations(java.util.Collection)} or * {@link #withLogDeliveryConfigurations(java.util.Collection)} if you want to override the existing values. *

* * @param logDeliveryConfigurations * The log delivery configurations being modified * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withLogDeliveryConfigurations(PendingLogDeliveryConfiguration... logDeliveryConfigurations) { if (this.logDeliveryConfigurations == null) { setLogDeliveryConfigurations(new com.amazonaws.internal.SdkInternalList(logDeliveryConfigurations.length)); } for (PendingLogDeliveryConfiguration ele : logDeliveryConfigurations) { this.logDeliveryConfigurations.add(ele); } return this; } /** *

* The log delivery configurations being modified *

* * @param logDeliveryConfigurations * The log delivery configurations being modified * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withLogDeliveryConfigurations(java.util.Collection logDeliveryConfigurations) { setLogDeliveryConfigurations(logDeliveryConfigurations); return this; } /** *

* A flag that enables in-transit encryption when set to true. *

* * @param transitEncryptionEnabled * A flag that enables in-transit encryption when set to true. */ public void setTransitEncryptionEnabled(Boolean transitEncryptionEnabled) { this.transitEncryptionEnabled = transitEncryptionEnabled; } /** *

* A flag that enables in-transit encryption when set to true. *

* * @return A flag that enables in-transit encryption when set to true. */ public Boolean getTransitEncryptionEnabled() { return this.transitEncryptionEnabled; } /** *

* A flag that enables in-transit encryption when set to true. *

* * @param transitEncryptionEnabled * A flag that enables in-transit encryption when set to true. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingModifiedValues withTransitEncryptionEnabled(Boolean transitEncryptionEnabled) { setTransitEncryptionEnabled(transitEncryptionEnabled); return this; } /** *

* A flag that enables in-transit encryption when set to true. *

* * @return A flag that enables in-transit encryption when set to true. */ public Boolean isTransitEncryptionEnabled() { return this.transitEncryptionEnabled; } /** *

* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *

* * @param transitEncryptionMode * A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. * @see TransitEncryptionMode */ public void setTransitEncryptionMode(String transitEncryptionMode) { this.transitEncryptionMode = transitEncryptionMode; } /** *

* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *

* * @return A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. * @see TransitEncryptionMode */ public String getTransitEncryptionMode() { return this.transitEncryptionMode; } /** *

* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *

* * @param transitEncryptionMode * A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitEncryptionMode */ public PendingModifiedValues withTransitEncryptionMode(String transitEncryptionMode) { setTransitEncryptionMode(transitEncryptionMode); return this; } /** *

* A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. *

* * @param transitEncryptionMode * A setting that allows you to migrate your clients to use in-transit encryption, with no downtime. * @return Returns a reference to this object so that method calls can be chained together. * @see TransitEncryptionMode */ public PendingModifiedValues withTransitEncryptionMode(TransitEncryptionMode transitEncryptionMode) { this.transitEncryptionMode = transitEncryptionMode.toString(); 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 (getNumCacheNodes() != null) sb.append("NumCacheNodes: ").append(getNumCacheNodes()).append(","); if (getCacheNodeIdsToRemove() != null) sb.append("CacheNodeIdsToRemove: ").append(getCacheNodeIdsToRemove()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getCacheNodeType() != null) sb.append("CacheNodeType: ").append(getCacheNodeType()).append(","); if (getAuthTokenStatus() != null) sb.append("AuthTokenStatus: ").append(getAuthTokenStatus()).append(","); if (getLogDeliveryConfigurations() != null) sb.append("LogDeliveryConfigurations: ").append(getLogDeliveryConfigurations()).append(","); if (getTransitEncryptionEnabled() != null) sb.append("TransitEncryptionEnabled: ").append(getTransitEncryptionEnabled()).append(","); if (getTransitEncryptionMode() != null) sb.append("TransitEncryptionMode: ").append(getTransitEncryptionMode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PendingModifiedValues == false) return false; PendingModifiedValues other = (PendingModifiedValues) obj; if (other.getNumCacheNodes() == null ^ this.getNumCacheNodes() == null) return false; if (other.getNumCacheNodes() != null && other.getNumCacheNodes().equals(this.getNumCacheNodes()) == false) return false; if (other.getCacheNodeIdsToRemove() == null ^ this.getCacheNodeIdsToRemove() == null) return false; if (other.getCacheNodeIdsToRemove() != null && other.getCacheNodeIdsToRemove().equals(this.getCacheNodeIdsToRemove()) == 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.getCacheNodeType() == null ^ this.getCacheNodeType() == null) return false; if (other.getCacheNodeType() != null && other.getCacheNodeType().equals(this.getCacheNodeType()) == false) return false; if (other.getAuthTokenStatus() == null ^ this.getAuthTokenStatus() == null) return false; if (other.getAuthTokenStatus() != null && other.getAuthTokenStatus().equals(this.getAuthTokenStatus()) == false) return false; if (other.getLogDeliveryConfigurations() == null ^ this.getLogDeliveryConfigurations() == null) return false; if (other.getLogDeliveryConfigurations() != null && other.getLogDeliveryConfigurations().equals(this.getLogDeliveryConfigurations()) == false) return false; if (other.getTransitEncryptionEnabled() == null ^ this.getTransitEncryptionEnabled() == null) return false; if (other.getTransitEncryptionEnabled() != null && other.getTransitEncryptionEnabled().equals(this.getTransitEncryptionEnabled()) == false) return false; if (other.getTransitEncryptionMode() == null ^ this.getTransitEncryptionMode() == null) return false; if (other.getTransitEncryptionMode() != null && other.getTransitEncryptionMode().equals(this.getTransitEncryptionMode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNumCacheNodes() == null) ? 0 : getNumCacheNodes().hashCode()); hashCode = prime * hashCode + ((getCacheNodeIdsToRemove() == null) ? 0 : getCacheNodeIdsToRemove().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getCacheNodeType() == null) ? 0 : getCacheNodeType().hashCode()); hashCode = prime * hashCode + ((getAuthTokenStatus() == null) ? 0 : getAuthTokenStatus().hashCode()); hashCode = prime * hashCode + ((getLogDeliveryConfigurations() == null) ? 0 : getLogDeliveryConfigurations().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionEnabled() == null) ? 0 : getTransitEncryptionEnabled().hashCode()); hashCode = prime * hashCode + ((getTransitEncryptionMode() == null) ? 0 : getTransitEncryptionMode().hashCode()); return hashCode; } @Override public PendingModifiedValues clone() { try { return (PendingModifiedValues) 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