/** * <p> * Information about all available Trusted Advisor checks. * </p> * * @param checks * Information about all available Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorChecksResult withChecks(java.util.Collection<TrustedAdvisorCheckDescription> checks) { setChecks(checks); return this; }
public DescribeTrustedAdvisorChecksResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeTrustedAdvisorChecksResult describeTrustedAdvisorChecksResult = new DescribeTrustedAdvisorChecksResult(); 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 describeTrustedAdvisorChecksResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("checks", targetDepth)) { context.nextToken(); describeTrustedAdvisorChecksResult.setChecks(new ListUnmarshaller<TrustedAdvisorCheckDescription>( TrustedAdvisorCheckDescriptionJsonUnmarshaller.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 describeTrustedAdvisorChecksResult; }
public DescribeTrustedAdvisorChecksResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeTrustedAdvisorChecksResult describeTrustedAdvisorChecksResult = new DescribeTrustedAdvisorChecksResult(); 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 describeTrustedAdvisorChecksResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("checks", targetDepth)) { context.nextToken(); describeTrustedAdvisorChecksResult.setChecks(new ListUnmarshaller<TrustedAdvisorCheckDescription>( TrustedAdvisorCheckDescriptionJsonUnmarshaller.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 describeTrustedAdvisorChecksResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorChecksResult == false) return false; DescribeTrustedAdvisorChecksResult other = (DescribeTrustedAdvisorChecksResult) obj; if (other.getChecks() == null ^ this.getChecks() == null) return false; if (other.getChecks() != null && other.getChecks().equals(this.getChecks()) == false) return false; return true; }
/** * <p> * Information about all available Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setChecks(java.util.Collection)} or {@link #withChecks(java.util.Collection)} if you want to override the * existing values. * </p> * * @param checks * Information about all available Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorChecksResult withChecks(TrustedAdvisorCheckDescription... checks) { if (this.checks == null) { setChecks(new com.amazonaws.internal.SdkInternalList<TrustedAdvisorCheckDescription>(checks.length)); } for (TrustedAdvisorCheckDescription ele : checks) { this.checks.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 (getChecks() != null) sb.append("Checks: ").append(getChecks()); sb.append("}"); return sb.toString(); }
/** * <p> * Information about all available Trusted Advisor checks. * </p> * * @param checks * Information about all available Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorChecksResult withChecks(java.util.Collection<TrustedAdvisorCheckDescription> checks) { setChecks(checks); return this; }
/** * <p> * Information about all available Trusted Advisor checks. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setChecks(java.util.Collection)} or {@link #withChecks(java.util.Collection)} if you want to override the * existing values. * </p> * * @param checks * Information about all available Trusted Advisor checks. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTrustedAdvisorChecksResult withChecks(TrustedAdvisorCheckDescription... checks) { if (this.checks == null) { setChecks(new com.amazonaws.internal.SdkInternalList<TrustedAdvisorCheckDescription>(checks.length)); } for (TrustedAdvisorCheckDescription ele : checks) { this.checks.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTrustedAdvisorChecksResult == false) return false; DescribeTrustedAdvisorChecksResult other = (DescribeTrustedAdvisorChecksResult) obj; if (other.getChecks() == null ^ this.getChecks() == null) return false; if (other.getChecks() != null && other.getChecks().equals(this.getChecks()) == 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 (getChecks() != null) sb.append("Checks: ").append(getChecks()); sb.append("}"); return sb.toString(); }
describeTrustedAdvisorChecksResult.getChecks() .forEach(checkDescription -> futures.add(
try{ DescribeTrustedAdvisorChecksResult rslt = awsSupportClient.describeTrustedAdvisorChecks(new DescribeTrustedAdvisorChecksRequest().withLanguage("en")); List<TrustedAdvisorCheckDescription> trstdAdvsrList = rslt.getChecks(); for(TrustedAdvisorCheckDescription check : trstdAdvsrList){ try{