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