@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetReusableDelegationSetResult == false) return false; GetReusableDelegationSetResult other = (GetReusableDelegationSetResult) obj; if (other.getDelegationSet() == null ^ this.getDelegationSet() == null) return false; if (other.getDelegationSet() != null && other.getDelegationSet().equals(this.getDelegationSet()) == false) return false; return true; }
/** * <p> * A complex type that contains information about the reusable delegation set. * </p> * * @param delegationSet * A complex type that contains information about the reusable delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReusableDelegationSetResult withDelegationSet(DelegationSet delegationSet) { setDelegationSet(delegationSet); return this; }
public GetReusableDelegationSetResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetReusableDelegationSetResult getReusableDelegationSetResult = new GetReusableDelegationSetResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getReusableDelegationSetResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("DelegationSet", targetDepth)) { getReusableDelegationSetResult.setDelegationSet(DelegationSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getReusableDelegationSetResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDelegationSet() == null) ? 0 : getDelegationSet().hashCode()); return hashCode; }
/** * 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 (getDelegationSet() != null) sb.append("DelegationSet: ").append(getDelegationSet()); sb.append("}"); return sb.toString(); }
} else if (obj instanceof GetReusableDelegationSetResult) { GetReusableDelegationSetResult result = (GetReusableDelegationSetResult) obj; removePrefix(result.getDelegationSet()); } else if (obj instanceof ListReusableDelegationSetsResult) { ListReusableDelegationSetsResult result = (ListReusableDelegationSetsResult) obj;