@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDelegationSets() == null) ? 0 : getDelegationSets().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * <p> * A complex type that contains one <code>DelegationSet</code> element for each reusable delegation set that was * created by the current AWS account. * </p> * * @param delegationSets * A complex type that contains one <code>DelegationSet</code> element for each reusable delegation set that * was created by the current AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public ListReusableDelegationSetsResult withDelegationSets(java.util.Collection<DelegationSet> delegationSets) { setDelegationSets(delegationSets); return this; }
/** * <p> * A flag that indicates whether there are more reusable delegation sets to be listed. * </p> * * @param isTruncated * A flag that indicates whether there are more reusable delegation sets to be listed. * @return Returns a reference to this object so that method calls can be chained together. */ public ListReusableDelegationSetsResult withIsTruncated(Boolean isTruncated) { setIsTruncated(isTruncated); return this; }
public ListReusableDelegationSetsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListReusableDelegationSetsResult listReusableDelegationSetsResult = new ListReusableDelegationSetsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listReusableDelegationSetsResult.withDelegationSets(new ArrayList<DelegationSet>()); continue; listReusableDelegationSetsResult.withDelegationSets(DelegationSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; listReusableDelegationSetsResult.setMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listReusableDelegationSetsResult.setIsTruncated(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; listReusableDelegationSetsResult.setNextMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listReusableDelegationSetsResult.setMaxItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The value that you specified for the <code>maxitems</code> parameter in the call to * <code>ListReusableDelegationSets</code> that produced the current response. * </p> * * @param maxItems * The value that you specified for the <code>maxitems</code> parameter in the call to * <code>ListReusableDelegationSets</code> that produced the current response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListReusableDelegationSetsResult withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
/** * <p> * For the second and subsequent calls to <code>ListReusableDelegationSets</code>, <code>Marker</code> is the value * that you specified for the <code>marker</code> parameter in the request that produced the current response. * </p> * * @param marker * For the second and subsequent calls to <code>ListReusableDelegationSets</code>, <code>Marker</code> is the * value that you specified for the <code>marker</code> parameter in the request that produced the current * response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListReusableDelegationSetsResult withMarker(String marker) { setMarker(marker); return this; }
} else if (obj instanceof ListReusableDelegationSetsResult) { ListReusableDelegationSetsResult result = (ListReusableDelegationSetsResult) obj; for (DelegationSet delegationSet : result.getDelegationSets()) removePrefix(delegationSet);
return false; ListReusableDelegationSetsResult other = (ListReusableDelegationSetsResult) obj; if (other.getDelegationSets() == null ^ this.getDelegationSets() == null) return false; if (other.getDelegationSets() != null && other.getDelegationSets().equals(this.getDelegationSets()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getIsTruncated() == null ^ this.getIsTruncated() == null) return false; if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == false) return false; if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false; if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true;
/** * <p> * A complex type that contains one <code>DelegationSet</code> element for each reusable delegation set that was * created by the current AWS account. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setDelegationSets(java.util.Collection)} or {@link #withDelegationSets(java.util.Collection)} if you want * to override the existing values. * </p> * * @param delegationSets * A complex type that contains one <code>DelegationSet</code> element for each reusable delegation set that * was created by the current AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public ListReusableDelegationSetsResult withDelegationSets(DelegationSet... delegationSets) { if (this.delegationSets == null) { setDelegationSets(new com.amazonaws.internal.SdkInternalList<DelegationSet>(delegationSets.length)); } for (DelegationSet ele : delegationSets) { this.delegationSets.add(ele); } 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 (getDelegationSets() != null) sb.append("DelegationSets: ").append(getDelegationSets()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getNextMarker() != null) sb.append("NextMarker: ").append(getNextMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }