/** * <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; }
/** * <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; }
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; }
/** * <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; }
/** * <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; }
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; }