@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDBInstancesResult == false) return false; DescribeDBInstancesResult other = (DescribeDBInstancesResult) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getDBInstances() == null ^ this.getDBInstances() == null) return false; if (other.getDBInstances() != null && other.getDBInstances().equals(this.getDBInstances()) == 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 (getDBInstances() != null) sb.append("DBInstances: ").append(getDBInstances()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDBInstancesResult == false) return false; DescribeDBInstancesResult other = (DescribeDBInstancesResult) obj; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getDBInstances() == null ^ this.getDBInstances() == null) return false; if (other.getDBInstances() != null && other.getDBInstances().equals(this.getDBInstances()) == 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 (getDBInstances() != null) sb.append("DBInstances: ").append(getDBInstances()); sb.append("}"); return sb.toString(); }
private void forEachInstance(Consumer<DBInstance> consumer) { rateLimit(); DescribeDBInstancesResult result = getClient().describeDBInstances(); String marker = result.getMarker(); result.getDBInstances().forEach(consumer); while (tokenHasNext(marker)) { rateLimit(); result = getClient().describeDBInstances().withMarker(marker); marker = result.getMarker(); result.getDBInstances().forEach(consumer); } }
marker.ifPresent(request::setMarker); final DescribeDBInstancesResult result = amazonRDSClient.describeDBInstances(request); marker = Optional.ofNullable(trimToNull(result.getMarker()));
dbInstList.add(vh); nextMarker = rslt.getMarker(); }while(nextMarker!=null);