@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorCheckSummariesResult == false) return false; DescribeTrustedAdvisorCheckSummariesResult other = (DescribeTrustedAdvisorCheckSummariesResult) obj; if (other.getSummaries() == null ^ this.getSummaries() == null) return false; if (other.getSummaries() != null && other.getSummaries().equals(this.getSummaries()) == false) return false; return true; }
/** * <p> * The summary information for the requested Trusted Advisor checks. * </p> * * @param summaries * The summary information for the requested Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesResult withSummaries(java.util.Collection<TrustedAdvisorCheckSummary> summaries) { setSummaries(summaries); return this; }
public DescribeTrustedAdvisorCheckSummariesResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeTrustedAdvisorCheckSummariesResult describeTrustedAdvisorCheckSummariesResult = new DescribeTrustedAdvisorCheckSummariesResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return describeTrustedAdvisorCheckSummariesResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("summaries", targetDepth)) { context.nextToken(); describeTrustedAdvisorCheckSummariesResult.setSummaries(new ListUnmarshaller<TrustedAdvisorCheckSummary>( TrustedAdvisorCheckSummaryJsonUnmarshaller.getInstance()).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return describeTrustedAdvisorCheckSummariesResult; }
public DescribeTrustedAdvisorCheckSummariesResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeTrustedAdvisorCheckSummariesResult describeTrustedAdvisorCheckSummariesResult = new DescribeTrustedAdvisorCheckSummariesResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return describeTrustedAdvisorCheckSummariesResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("summaries", targetDepth)) { context.nextToken(); describeTrustedAdvisorCheckSummariesResult.setSummaries(new ListUnmarshaller<TrustedAdvisorCheckSummary>( TrustedAdvisorCheckSummaryJsonUnmarshaller.getInstance()).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return describeTrustedAdvisorCheckSummariesResult; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSummaries() == null) ? 0 : getSummaries().hashCode()); return hashCode; }
/** * <p> * The summary information for the requested Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSummaries(java.util.Collection)} or {@link #withSummaries(java.util.Collection)} if you want to * override the existing values. * </p> * * @param summaries * The summary information for the requested Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesResult withSummaries(TrustedAdvisorCheckSummary... summaries) { if (this.summaries == null) { setSummaries(new com.amazonaws.internal.SdkInternalList<TrustedAdvisorCheckSummary>(summaries.length)); } for (TrustedAdvisorCheckSummary ele : summaries) { this.summaries.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 (getSummaries() != null) sb.append("Summaries: ").append(getSummaries()); sb.append("}"); return sb.toString(); }
/** * <p> * The summary information for the requested Trusted Advisor checks. * </p> * * @param summaries * The summary information for the requested Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesResult withSummaries(java.util.Collection<TrustedAdvisorCheckSummary> summaries) { setSummaries(summaries); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSummaries() == null) ? 0 : getSummaries().hashCode()); return hashCode; }
/** * <p> * The summary information for the requested Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setSummaries(java.util.Collection)} or {@link #withSummaries(java.util.Collection)} if you want to * override the existing values. * </p> * * @param summaries * The summary information for the requested Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorCheckSummariesResult withSummaries(TrustedAdvisorCheckSummary... summaries) { if (this.summaries == null) { setSummaries(new com.amazonaws.internal.SdkInternalList<TrustedAdvisorCheckSummary>(summaries.length)); } for (TrustedAdvisorCheckSummary ele : summaries) { this.summaries.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorCheckSummariesResult == false) return false; DescribeTrustedAdvisorCheckSummariesResult other = (DescribeTrustedAdvisorCheckSummariesResult) obj; if (other.getSummaries() == null ^ this.getSummaries() == null) return false; if (other.getSummaries() != null && other.getSummaries().equals(this.getSummaries()) == 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 (getSummaries() != null) sb.append("Summaries: ").append(getSummaries()); sb.append("}"); return sb.toString(); }