/** * 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 (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getCacheClusters() != null) sb.append("CacheClusters: ").append(getCacheClusters()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCacheClustersResult == false) return false; DescribeCacheClustersResult other = (DescribeCacheClustersResult) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getCacheClusters() == null ^ this.getCacheClusters() == null) return false; if (other.getCacheClusters() != null && other.getCacheClusters().equals(this.getCacheClusters()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCacheClustersResult == false) return false; DescribeCacheClustersResult other = (DescribeCacheClustersResult) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getCacheClusters() == null ^ this.getCacheClusters() == null) return false; if (other.getCacheClusters() != null && other.getCacheClusters().equals(this.getCacheClusters()) == 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 (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getCacheClusters() != null) sb.append("CacheClusters: ").append(getCacheClusters()); sb.append("}"); return sb.toString(); }
describeResult = amazonElastiCache.describeCacheClusters(rqst); cacheClusterList.addAll(describeResult.getCacheClusters()); marker = describeResult.getMarker(); describeRGResult = amazonElastiCache.describeReplicationGroups(rgRqst); replicationGroupList.addAll(describeRGResult.getReplicationGroups()); marker = describeResult.getMarker();