/** * 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 (getResourcesSummary() != null) sb.append("ResourcesSummary: ").append(getResourcesSummary()).append(","); if (getCategorySpecificSummary() != null) sb.append("CategorySpecificSummary: ").append(getCategorySpecificSummary()).append(","); if (getFlaggedResources() != null) sb.append("FlaggedResources: ").append(getFlaggedResources()); sb.append("}"); return sb.toString(); }
@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 + ((getResourcesSummary() == null) ? 0 : getResourcesSummary().hashCode()); hashCode = prime * hashCode + ((getCategorySpecificSummary() == null) ? 0 : getCategorySpecificSummary().hashCode()); hashCode = prime * hashCode + ((getFlaggedResources() == null) ? 0 : getFlaggedResources().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckResult trustedAdvisorCheckResult, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckResult.getCheckId(), CHECKID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getTimestamp(), TIMESTAMP_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getResourcesSummary(), RESOURCESSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getCategorySpecificSummary(), CATEGORYSPECIFICSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getFlaggedResources(), FLAGGEDRESOURCES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
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; if (other.getFlaggedResources() == null ^ this.getFlaggedResources() == null)
/** * 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 (getResourcesSummary() != null) sb.append("ResourcesSummary: ").append(getResourcesSummary()).append(","); if (getCategorySpecificSummary() != null) sb.append("CategorySpecificSummary: ").append(getCategorySpecificSummary()).append(","); if (getFlaggedResources() != null) sb.append("FlaggedResources: ").append(getFlaggedResources()); sb.append("}"); return sb.toString(); }
@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 + ((getResourcesSummary() == null) ? 0 : getResourcesSummary().hashCode()); hashCode = prime * hashCode + ((getCategorySpecificSummary() == null) ? 0 : getCategorySpecificSummary().hashCode()); hashCode = prime * hashCode + ((getFlaggedResources() == null) ? 0 : getFlaggedResources().hashCode()); return hashCode; }
/** * Marshall the given parameter object. */ public void marshall(TrustedAdvisorCheckResult trustedAdvisorCheckResult, ProtocolMarshaller protocolMarshaller) { if (trustedAdvisorCheckResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(trustedAdvisorCheckResult.getCheckId(), CHECKID_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getTimestamp(), TIMESTAMP_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getResourcesSummary(), RESOURCESSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getCategorySpecificSummary(), CATEGORYSPECIFICSUMMARY_BINDING); protocolMarshaller.marshall(trustedAdvisorCheckResult.getFlaggedResources(), FLAGGEDRESOURCES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
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; if (other.getFlaggedResources() == null ^ this.getFlaggedResources() == null)