@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCheckId() == null) ? 0 : getCheckId().hashCode()); hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getHasFlaggedResources() == null) ? 0 : getHasFlaggedResources().hashCode()); hashCode = prime * hashCode + ((getResourcesSummary() == null) ? 0 : getResourcesSummary().hashCode()); hashCode = prime * hashCode + ((getCategorySpecificSummary() == null) ? 0 : getCategorySpecificSummary().hashCode()); return hashCode; }
/** * <p> * Summary information that relates to the category of the check. Cost Optimizing is the only category that is * currently supported. * </p> * * @param categorySpecificSummary * Summary information that relates to the category of the check. Cost Optimizing is the only category that * is currently supported. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary) { setCategorySpecificSummary(categorySpecificSummary); return this; }
/** * <p> * The unique identifier for the Trusted Advisor check. * </p> * * @param checkId * The unique identifier for the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withCheckId(String checkId) { setCheckId(checkId); return this; }
public TrustedAdvisorCheckSummary unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCheckSummary trustedAdvisorCheckSummary = new TrustedAdvisorCheckSummary(); if (context.testExpression("checkId", targetDepth)) { context.nextToken(); trustedAdvisorCheckSummary.setCheckId(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setTimestamp(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setHasFlaggedResources(context.getUnmarshaller(Boolean.class).unmarshall(context)); trustedAdvisorCheckSummary.setResourcesSummary(TrustedAdvisorResourcesSummaryJsonUnmarshaller.getInstance().unmarshall(context)); trustedAdvisorCheckSummary.setCategorySpecificSummary(TrustedAdvisorCategorySpecificSummaryJsonUnmarshaller.getInstance().unmarshall( context));
/** * <p> * Specifies whether the Trusted Advisor check has flagged resources. * </p> * * @param hasFlaggedResources * Specifies whether the Trusted Advisor check has flagged resources. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withHasFlaggedResources(Boolean hasFlaggedResources) { setHasFlaggedResources(hasFlaggedResources); return this; }
public TrustedAdvisorCheckSummary unmarshall(JsonUnmarshallerContext context) throws Exception { TrustedAdvisorCheckSummary trustedAdvisorCheckSummary = new TrustedAdvisorCheckSummary(); if (context.testExpression("checkId", targetDepth)) { context.nextToken(); trustedAdvisorCheckSummary.setCheckId(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setTimestamp(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); trustedAdvisorCheckSummary.setHasFlaggedResources(context.getUnmarshaller(Boolean.class).unmarshall(context)); trustedAdvisorCheckSummary.setResourcesSummary(TrustedAdvisorResourcesSummaryJsonUnmarshaller.getInstance().unmarshall(context)); trustedAdvisorCheckSummary.setCategorySpecificSummary(TrustedAdvisorCategorySpecificSummaryJsonUnmarshaller.getInstance().unmarshall( context));
/** * <p> * Specifies whether the Trusted Advisor check has flagged resources. * </p> * * @param hasFlaggedResources * Specifies whether the Trusted Advisor check has flagged resources. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withHasFlaggedResources(Boolean hasFlaggedResources) { setHasFlaggedResources(hasFlaggedResources); return this; }
return false; TrustedAdvisorCheckSummary other = (TrustedAdvisorCheckSummary) obj; if (other.getCheckId() == null ^ this.getCheckId() == null) return false; if (other.getCheckId() != null && other.getCheckId().equals(this.getCheckId()) == false) return false; if (other.getTimestamp() == null ^ this.getTimestamp() == null) return false; if (other.getTimestamp() != null && other.getTimestamp().equals(this.getTimestamp()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getHasFlaggedResources() == null ^ this.getHasFlaggedResources() == null) return false; if (other.getHasFlaggedResources() != null && other.getHasFlaggedResources().equals(this.getHasFlaggedResources()) == false) return false; if (other.getResourcesSummary() == null ^ this.getResourcesSummary() == null) return false; if (other.getResourcesSummary() != null && other.getResourcesSummary().equals(this.getResourcesSummary()) == false) return false; if (other.getCategorySpecificSummary() == null ^ this.getCategorySpecificSummary() == null) return false; if (other.getCategorySpecificSummary() != null && other.getCategorySpecificSummary().equals(this.getCategorySpecificSummary()) == false) return false; return true;
/** * <p> * The unique identifier for the Trusted Advisor check. * </p> * * @param checkId * The unique identifier for the Trusted Advisor check. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withCheckId(String checkId) { setCheckId(checkId); return this; }
/** * <p> * Summary information that relates to the category of the check. Cost Optimizing is the only category that is * currently supported. * </p> * * @param categorySpecificSummary * Summary information that relates to the category of the check. Cost Optimizing is the only category that * is currently supported. * @return Returns a reference to this object so that method calls can be chained together. */ public TrustedAdvisorCheckSummary withCategorySpecificSummary(TrustedAdvisorCategorySpecificSummary categorySpecificSummary) { setCategorySpecificSummary(categorySpecificSummary); 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 (getCheckId() != null) sb.append("CheckId: ").append(getCheckId()).append(","); if (getTimestamp() != null) sb.append("Timestamp: ").append(getTimestamp()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getHasFlaggedResources() != null) sb.append("HasFlaggedResources: ").append(getHasFlaggedResources()).append(","); if (getResourcesSummary() != null) sb.append("ResourcesSummary: ").append(getResourcesSummary()).append(","); if (getCategorySpecificSummary() != null) sb.append("CategorySpecificSummary: ").append(getCategorySpecificSummary()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckSummary trustedAdvisorCheckSummary, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckSummary.getCheckId(), CHECKID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getTimestamp(), TIMESTAMP_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getHasFlaggedResources(), HASFLAGGEDRESOURCES_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getResourcesSummary(), RESOURCESSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getCategorySpecificSummary(), CATEGORYSPECIFICSUMMARY_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 + ((getCheckId() == null) ? 0 : getCheckId().hashCode()); hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getHasFlaggedResources() == null) ? 0 : getHasFlaggedResources().hashCode()); hashCode = prime * hashCode + ((getResourcesSummary() == null) ? 0 : getResourcesSummary().hashCode()); hashCode = prime * hashCode + ((getCategorySpecificSummary() == null) ? 0 : getCategorySpecificSummary().hashCode()); return hashCode; }
return false; TrustedAdvisorCheckSummary other = (TrustedAdvisorCheckSummary) obj; if (other.getCheckId() == null ^ this.getCheckId() == null) return false; if (other.getCheckId() != null && other.getCheckId().equals(this.getCheckId()) == false) return false; if (other.getTimestamp() == null ^ this.getTimestamp() == null) return false; if (other.getTimestamp() != null && other.getTimestamp().equals(this.getTimestamp()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getHasFlaggedResources() == null ^ this.getHasFlaggedResources() == null) return false; if (other.getHasFlaggedResources() != null && other.getHasFlaggedResources().equals(this.getHasFlaggedResources()) == false) return false; if (other.getResourcesSummary() == null ^ this.getResourcesSummary() == null) return false; if (other.getResourcesSummary() != null && other.getResourcesSummary().equals(this.getResourcesSummary()) == false) return false; if (other.getCategorySpecificSummary() == null ^ this.getCategorySpecificSummary() == null) return false; if (other.getCategorySpecificSummary() != null && other.getCategorySpecificSummary().equals(this.getCategorySpecificSummary()) == 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 (getCheckId() != null) sb.append("CheckId: ").append(getCheckId()).append(","); if (getTimestamp() != null) sb.append("Timestamp: ").append(getTimestamp()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getHasFlaggedResources() != null) sb.append("HasFlaggedResources: ").append(getHasFlaggedResources()).append(","); if (getResourcesSummary() != null) sb.append("ResourcesSummary: ").append(getResourcesSummary()).append(","); if (getCategorySpecificSummary() != null) sb.append("CategorySpecificSummary: ").append(getCategorySpecificSummary()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckSummary trustedAdvisorCheckSummary, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckSummary.getCheckId(), CHECKID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getTimestamp(), TIMESTAMP_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getHasFlaggedResources(), HASFLAGGEDRESOURCES_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getResourcesSummary(), RESOURCESSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckSummary.getCategorySpecificSummary(), CATEGORYSPECIFICSUMMARY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }