@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); return hashCode; }
/** * <p> * The category of the Trusted Advisor check. * </p> * * @param category * The category of the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withCategory(String category) { setCategory(category); return this; }
/** * <p> * The description of the Trusted Advisor check, which includes the alert criteria and recommended actions (contains * HTML markup). * </p> * * @param description * The description of the Trusted Advisor check, which includes the alert criteria and recommended actions * (contains HTML markup). * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withDescription(String description) { setDescription(description); return this; }
public TrustedAdvisorCheckDescription unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCheckDescription trustedAdvisorCheckDescription = new TrustedAdvisorCheckDescription(); if (context.testExpression("id", targetDepth)) { context.nextToken(); trustedAdvisorCheckDescription.setId(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setName(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setCategory(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setMetadata(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
for(TrustedAdvisorCheckDescription check : trstdAdvsrList){ try{ checkids.add(check.getId()); DescribeTrustedAdvisorCheckResultResult result = awsSupportClient.describeTrustedAdvisorCheckResult(new DescribeTrustedAdvisorCheckResultRequest().withCheckId(check.getId())); List<String> metadata = check.getMetadata(); checkVH.setResources(resources); if( ("ePs02jT06w".equalsIgnoreCase(check.getId()) || "rSs93HQwa1".equalsIgnoreCase(check.getId())) && !result.getResult().getFlaggedResources().isEmpty() ){ int dataSize = result.getResult().getFlaggedResources().get(0).getMetadata().size() ; if(dataSize == metadata.size()+1 && !metadata.contains("Status")){ resources.add(new Resource(check.getId(),rsrc.getResourceId(),rsrc.getStatus(),resounceInfo.toString()));
client.describeTrustedAdvisorCheckResultAsync( new DescribeTrustedAdvisorCheckResultRequest() .withCheckId(checkDescription.getId()) .withLanguage(Locale.ENGLISH.getLanguage()), new AsyncHandler<DescribeTrustedAdvisorCheckResultRequest, DescribeTrustedAdvisorCheckResultResult>() {
/** * <p> * The unique identifier for the Trusted Advisor check. * </p> * * @param id * The unique identifier for the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withId(String id) { setId(id); return this; }
public TrustedAdvisorCheckDescription unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCheckDescription trustedAdvisorCheckDescription = new TrustedAdvisorCheckDescription(); if (context.testExpression("id", targetDepth)) { context.nextToken(); trustedAdvisorCheckDescription.setId(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setName(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setDescription(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setCategory(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckDescription.setMetadata(new ListUnmarshaller<String>(context.getUnmarshaller(String.class)).unmarshall(context));
/** * <p> * The unique identifier for the Trusted Advisor check. * </p> * * @param id * The unique identifier for the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withId(String id) { setId(id); return this; }
return false; TrustedAdvisorCheckDescription other = (TrustedAdvisorCheckDescription) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCategory() == null ^ this.getCategory() == null) return false; if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == false) return false; return true;
/** * <p> * The category of the Trusted Advisor check. * </p> * * @param category * The category of the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withCategory(String category) { setCategory(category); return this; }
/** * <p> * The description of the Trusted Advisor check, which includes the alert criteria and recommended actions (contains * HTML markup). * </p> * * @param description * The description of the Trusted Advisor check, which includes the alert criteria and recommended actions * (contains HTML markup). * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckDescription withDescription(String description) { setDescription(description); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCategory() != null) sb.append("Category: ").append(getCategory()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckDescription trustedAdvisorCheckDescription, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckDescription.getId(), ID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getName(), NAME_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getCategory(), CATEGORY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getMetadata(), METADATA_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCategory() == null) ? 0 : getCategory().hashCode()); hashCode = prime * hashCode + ((getMetadata() == null) ? 0 : getMetadata().hashCode()); return hashCode; }
return false; TrustedAdvisorCheckDescription other = (TrustedAdvisorCheckDescription) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCategory() == null ^ this.getCategory() == null) return false; if (other.getCategory() != null && other.getCategory().equals(this.getCategory()) == false) return false; if (other.getMetadata() == null ^ this.getMetadata() == null) return false; if (other.getMetadata() != null && other.getMetadata().equals(this.getMetadata()) == 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCategory() != null) sb.append("Category: ").append(getCategory()).append(","); if (getMetadata() != null) sb.append("Metadata: ").append(getMetadata()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckDescription trustedAdvisorCheckDescription, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckDescription.getId(), ID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getName(), NAME_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getDescription(), DESCRIPTION_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getCategory(), CATEGORY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckDescription.getMetadata(), METADATA_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }