@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()); return hashCode; }
/** * <p> * 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.). * </p> * * @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<String> cacheNodeIdsToRemove) { setCacheNodeIdsToRemove(cacheNodeIdsToRemove); return this; }
/** * <p> * The cache node type that this cluster or replication group is scaled to. * </p> * * @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; }
public PendingModifiedValues unmarshall(StaxUnmarshallerContext context) throws Exception { PendingModifiedValues pendingModifiedValues = new PendingModifiedValues(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; pendingModifiedValues.setNumCacheNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.withCacheNodeIdsToRemove(new ArrayList<String>()); continue; pendingModifiedValues.withCacheNodeIdsToRemove(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.setEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.setCacheNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The new cache engine version that the cluster runs. * </p> * * @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; }
hashCode = prime * hashCode + ((getCacheClusterCreateTime() == null) ? 0 : getCacheClusterCreateTime().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getNotificationConfiguration() == null) ? 0 : getNotificationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCacheSecurityGroups() == null) ? 0 : getCacheSecurityGroups().hashCode());
if (other.getPendingModifiedValues() == null ^ this.getPendingModifiedValues() == null) return false; if (other.getPendingModifiedValues() != null && other.getPendingModifiedValues().equals(this.getPendingModifiedValues()) == false) return false; if (other.getNotificationConfiguration() == null ^ this.getNotificationConfiguration() == null)
public PendingModifiedValues unmarshall(StaxUnmarshallerContext context) throws Exception { PendingModifiedValues pendingModifiedValues = new PendingModifiedValues(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; pendingModifiedValues.setNumCacheNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.withCacheNodeIdsToRemove(new ArrayList<String>()); continue; pendingModifiedValues.withCacheNodeIdsToRemove(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.setEngineVersion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; pendingModifiedValues.setCacheNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The new cache engine version that the cluster runs. * </p> * * @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; }
hashCode = prime * hashCode + ((getCacheClusterCreateTime() == null) ? 0 : getCacheClusterCreateTime().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getNotificationConfiguration() == null) ? 0 : getNotificationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCacheSecurityGroups() == null) ? 0 : getCacheSecurityGroups().hashCode());
if (other.getPendingModifiedValues() == null ^ this.getPendingModifiedValues() == null) return false; if (other.getPendingModifiedValues() != null && other.getPendingModifiedValues().equals(this.getPendingModifiedValues()) == false) return false; if (other.getNotificationConfiguration() == null ^ this.getNotificationConfiguration() == null)
@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; return true; }
/** * <p> * 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.). * </p> * <p> * <b>NOTE:</b> 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. * </p> * * @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<String>(cacheNodeIdsToRemove.length)); } for (String ele : cacheNodeIdsToRemove) { this.cacheNodeIdsToRemove.add(ele); } return this; }
/** * <p> * The cache node type that this cluster or replication group is scaled to. * </p> * * @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; }
/** * 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()); sb.append("}"); return sb.toString(); }
/** * <p> * 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.). * </p> * * @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<String> cacheNodeIdsToRemove) { setCacheNodeIdsToRemove(cacheNodeIdsToRemove); return this; }
@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()); return hashCode; }
/** * <p> * 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.). * </p> * <p> * <b>NOTE:</b> 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. * </p> * * @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<String>(cacheNodeIdsToRemove.length)); } for (String ele : cacheNodeIdsToRemove) { this.cacheNodeIdsToRemove.add(ele); } return this; }
@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; return true; }
/** * 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()); sb.append("}"); return sb.toString(); }