/** * 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 (getDate() != null) sb.append("Date: ").append(getDate()).append(","); if (getEvent() != null) sb.append("Event: ").append(getEvent()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getError() != null) sb.append("Error: ").append(getError()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getSnsPublishStatusCode() != null) sb.append("SnsPublishStatusCode: ").append(getSnsPublishStatusCode()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDate() == null) ? 0 : getDate().hashCode()); hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getSnsPublishStatusCode() == null) ? 0 : getSnsPublishStatusCode().hashCode()); return hashCode; }
if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getError() == null ^ this.getError() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunNotification assessmentRunNotification, ProtocolMarshaller protocolMarshaller) { if (assessmentRunNotification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunNotification.getDate(), DATE_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getEvent(), EVENT_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getMessage(), MESSAGE_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getError(), ERROR_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getSnsTopicArn(), SNSTOPICARN_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getSnsPublishStatusCode(), SNSPUBLISHSTATUSCODE_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 + ((getDate() == null) ? 0 : getDate().hashCode()); hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getSnsTopicArn() == null) ? 0 : getSnsTopicArn().hashCode()); hashCode = prime * hashCode + ((getSnsPublishStatusCode() == null) ? 0 : getSnsPublishStatusCode().hashCode()); return hashCode; }
/** * 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 (getDate() != null) sb.append("Date: ").append(getDate()).append(","); if (getEvent() != null) sb.append("Event: ").append(getEvent()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getError() != null) sb.append("Error: ").append(getError()).append(","); if (getSnsTopicArn() != null) sb.append("SnsTopicArn: ").append(getSnsTopicArn()).append(","); if (getSnsPublishStatusCode() != null) sb.append("SnsPublishStatusCode: ").append(getSnsPublishStatusCode()); sb.append("}"); return sb.toString(); }
if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getError() == null ^ this.getError() == null)
/** * Marshall the given parameter object. */ public void marshall(AssessmentRunNotification assessmentRunNotification, ProtocolMarshaller protocolMarshaller) { if (assessmentRunNotification == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(assessmentRunNotification.getDate(), DATE_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getEvent(), EVENT_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getMessage(), MESSAGE_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getError(), ERROR_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getSnsTopicArn(), SNSTOPICARN_BINDING); protocolMarshaller.marshall(assessmentRunNotification.getSnsPublishStatusCode(), SNSPUBLISHSTATUSCODE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }