@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheNodeId() == null) ? 0 : getCacheNodeId().hashCode()); hashCode = prime * hashCode + ((getCacheNodeStatus() == null) ? 0 : getCacheNodeStatus().hashCode()); hashCode = prime * hashCode + ((getCacheNodeCreateTime() == null) ? 0 : getCacheNodeCreateTime().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getParameterGroupStatus() == null) ? 0 : getParameterGroupStatus().hashCode()); hashCode = prime * hashCode + ((getSourceCacheNodeId() == null) ? 0 : getSourceCacheNodeId().hashCode()); hashCode = prime * hashCode + ((getCustomerAvailabilityZone() == null) ? 0 : getCustomerAvailabilityZone().hashCode()); return hashCode; }
/** * <p> * The date and time when the cache node was created. * </p> * * @param cacheNodeCreateTime * The date and time when the cache node was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNode withCacheNodeCreateTime(java.util.Date cacheNodeCreateTime) { setCacheNodeCreateTime(cacheNodeCreateTime); return this; }
/** * <p> * The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID * and node ID uniquely identifies every cache node used in a customer's AWS account. * </p> * * @param cacheNodeId * The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of * cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNode withCacheNodeId(String cacheNodeId) { setCacheNodeId(cacheNodeId); return this; }
public CacheNode unmarshall(StaxUnmarshallerContext context) throws Exception { CacheNode cacheNode = new CacheNode(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheNode.setCacheNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCacheNodeStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCacheNodeCreateTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; cacheNode.setEndpoint(EndpointStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setParameterGroupStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setSourceCacheNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCustomerAvailabilityZone(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
private static Endpoint getEndpointForCache(CacheCluster cacheCluster) { if (cacheCluster.getConfigurationEndpoint() != null) { return cacheCluster.getConfigurationEndpoint(); } if (!cacheCluster.getCacheNodes().isEmpty()) { return cacheCluster.getCacheNodes().get(0).getEndpoint(); } throw new IllegalArgumentException("No Configuration Endpoint or Cache Node available to " + "receive address information for cluster:'" + cacheCluster.getCacheClusterId() + "'"); } }
public CacheNode unmarshall(StaxUnmarshallerContext context) throws Exception { CacheNode cacheNode = new CacheNode(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; cacheNode.setCacheNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCacheNodeStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCacheNodeCreateTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; cacheNode.setEndpoint(EndpointStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setParameterGroupStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setSourceCacheNodeId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; cacheNode.setCustomerAvailabilityZone(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
private static Endpoint getEndpointForCache(CacheCluster cacheCluster) { if (cacheCluster.getConfigurationEndpoint() != null) { return cacheCluster.getConfigurationEndpoint(); } if (!cacheCluster.getCacheNodes().isEmpty()) { return cacheCluster.getCacheNodes().get(0).getEndpoint(); } throw new IllegalArgumentException("No Configuration Endpoint or Cache Node available to " + "receive address information for cluster:'" + cacheCluster.getCacheClusterId() + "'"); } }
return false; CacheNode other = (CacheNode) obj; if (other.getCacheNodeId() == null ^ this.getCacheNodeId() == null) return false; if (other.getCacheNodeId() != null && other.getCacheNodeId().equals(this.getCacheNodeId()) == false) return false; if (other.getCacheNodeStatus() == null ^ this.getCacheNodeStatus() == null) return false; if (other.getCacheNodeStatus() != null && other.getCacheNodeStatus().equals(this.getCacheNodeStatus()) == false) return false; if (other.getCacheNodeCreateTime() == null ^ this.getCacheNodeCreateTime() == null) return false; if (other.getCacheNodeCreateTime() != null && other.getCacheNodeCreateTime().equals(this.getCacheNodeCreateTime()) == 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.getParameterGroupStatus() == null ^ this.getParameterGroupStatus() == null) return false; if (other.getParameterGroupStatus() != null && other.getParameterGroupStatus().equals(this.getParameterGroupStatus()) == false) return false; if (other.getSourceCacheNodeId() == null ^ this.getSourceCacheNodeId() == null) return false; if (other.getSourceCacheNodeId() != null && other.getSourceCacheNodeId().equals(this.getSourceCacheNodeId()) == false) return false; if (other.getCustomerAvailabilityZone() == null ^ this.getCustomerAvailabilityZone() == null) return false; if (other.getCustomerAvailabilityZone() != null && other.getCustomerAvailabilityZone().equals(this.getCustomerAvailabilityZone()) == false)
/** * <p> * The date and time when the cache node was created. * </p> * * @param cacheNodeCreateTime * The date and time when the cache node was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNode withCacheNodeCreateTime(java.util.Date cacheNodeCreateTime) { setCacheNodeCreateTime(cacheNodeCreateTime); return this; }
/** * <p> * The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID * and node ID uniquely identifies every cache node used in a customer's AWS account. * </p> * * @param cacheNodeId * The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of * cluster ID and node ID uniquely identifies every cache node used in a customer's AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public CacheNode withCacheNodeId(String cacheNodeId) { setCacheNodeId(cacheNodeId); 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 (getCacheNodeId() != null) sb.append("CacheNodeId: ").append(getCacheNodeId()).append(","); if (getCacheNodeStatus() != null) sb.append("CacheNodeStatus: ").append(getCacheNodeStatus()).append(","); if (getCacheNodeCreateTime() != null) sb.append("CacheNodeCreateTime: ").append(getCacheNodeCreateTime()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getParameterGroupStatus() != null) sb.append("ParameterGroupStatus: ").append(getParameterGroupStatus()).append(","); if (getSourceCacheNodeId() != null) sb.append("SourceCacheNodeId: ").append(getSourceCacheNodeId()).append(","); if (getCustomerAvailabilityZone() != null) sb.append("CustomerAvailabilityZone: ").append(getCustomerAvailabilityZone()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheNodeId() == null) ? 0 : getCacheNodeId().hashCode()); hashCode = prime * hashCode + ((getCacheNodeStatus() == null) ? 0 : getCacheNodeStatus().hashCode()); hashCode = prime * hashCode + ((getCacheNodeCreateTime() == null) ? 0 : getCacheNodeCreateTime().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getParameterGroupStatus() == null) ? 0 : getParameterGroupStatus().hashCode()); hashCode = prime * hashCode + ((getSourceCacheNodeId() == null) ? 0 : getSourceCacheNodeId().hashCode()); hashCode = prime * hashCode + ((getCustomerAvailabilityZone() == null) ? 0 : getCustomerAvailabilityZone().hashCode()); return hashCode; }
return false; CacheNode other = (CacheNode) obj; if (other.getCacheNodeId() == null ^ this.getCacheNodeId() == null) return false; if (other.getCacheNodeId() != null && other.getCacheNodeId().equals(this.getCacheNodeId()) == false) return false; if (other.getCacheNodeStatus() == null ^ this.getCacheNodeStatus() == null) return false; if (other.getCacheNodeStatus() != null && other.getCacheNodeStatus().equals(this.getCacheNodeStatus()) == false) return false; if (other.getCacheNodeCreateTime() == null ^ this.getCacheNodeCreateTime() == null) return false; if (other.getCacheNodeCreateTime() != null && other.getCacheNodeCreateTime().equals(this.getCacheNodeCreateTime()) == 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.getParameterGroupStatus() == null ^ this.getParameterGroupStatus() == null) return false; if (other.getParameterGroupStatus() != null && other.getParameterGroupStatus().equals(this.getParameterGroupStatus()) == false) return false; if (other.getSourceCacheNodeId() == null ^ this.getSourceCacheNodeId() == null) return false; if (other.getSourceCacheNodeId() != null && other.getSourceCacheNodeId().equals(this.getSourceCacheNodeId()) == false) return false; if (other.getCustomerAvailabilityZone() == null ^ this.getCustomerAvailabilityZone() == null) return false; if (other.getCustomerAvailabilityZone() != null && other.getCustomerAvailabilityZone().equals(this.getCustomerAvailabilityZone()) == false)
/** * 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 (getCacheNodeId() != null) sb.append("CacheNodeId: ").append(getCacheNodeId()).append(","); if (getCacheNodeStatus() != null) sb.append("CacheNodeStatus: ").append(getCacheNodeStatus()).append(","); if (getCacheNodeCreateTime() != null) sb.append("CacheNodeCreateTime: ").append(getCacheNodeCreateTime()).append(","); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getParameterGroupStatus() != null) sb.append("ParameterGroupStatus: ").append(getParameterGroupStatus()).append(","); if (getSourceCacheNodeId() != null) sb.append("SourceCacheNodeId: ").append(getSourceCacheNodeId()).append(","); if (getCustomerAvailabilityZone() != null) sb.append("CustomerAvailabilityZone: ").append(getCustomerAvailabilityZone()); sb.append("}"); return sb.toString(); }