@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSNSTopicArn() == null) ? 0 : getSNSTopicArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().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 (getSNSTopicArn() != null) sb.append("SNSTopicArn: ").append(getSNSTopicArn()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NotificationChannel == false) return false; NotificationChannel other = (NotificationChannel) obj; if (other.getSNSTopicArn() == null ^ this.getSNSTopicArn() == null) return false; if (other.getSNSTopicArn() != null && other.getSNSTopicArn().equals(this.getSNSTopicArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(NotificationChannel notificationChannel, ProtocolMarshaller protocolMarshaller) { if (notificationChannel == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(notificationChannel.getSNSTopicArn(), SNSTOPICARN_BINDING); protocolMarshaller.marshall(notificationChannel.getRoleArn(), ROLEARN_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 + ((getSNSTopicArn() == null) ? 0 : getSNSTopicArn().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSNSTopicArn() != null) sb.append("SNSTopicArn: " + getSNSTopicArn() + ","); if (getRoleArn() != null) sb.append("RoleArn: " + getRoleArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NotificationChannel == false) return false; NotificationChannel other = (NotificationChannel) obj; if (other.getSNSTopicArn() == null ^ this.getSNSTopicArn() == null) return false; if (other.getSNSTopicArn() != null && other.getSNSTopicArn().equals(this.getSNSTopicArn()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; return true; } }
public void marshall(NotificationChannel notificationChannel, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (notificationChannel.getSNSTopicArn() != null) { String sNSTopicArn = notificationChannel.getSNSTopicArn(); jsonWriter.name("SNSTopicArn"); jsonWriter.value(sNSTopicArn); } if (notificationChannel.getRoleArn() != null) { String roleArn = notificationChannel.getRoleArn(); jsonWriter.name("RoleArn"); jsonWriter.value(roleArn); } jsonWriter.endObject(); }