@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoScalingGroupName() == null) ? 0 : getAutoScalingGroupName().hashCode()); hashCode = prime * hashCode + ((getTopicARN() == null) ? 0 : getTopicARN().hashCode()); hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); return hashCode; }
/** * <p> * The name of the Auto Scaling group. * </p> * * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; }
setNotificationType(notificationType); return this;
public NotificationConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { NotificationConfiguration notificationConfiguration = new NotificationConfiguration(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return notificationConfiguration; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("AutoScalingGroupName", targetDepth)) { notificationConfiguration.setAutoScalingGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicARN", targetDepth)) { notificationConfiguration.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("NotificationType", targetDepth)) { notificationConfiguration.setNotificationType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }
/** * <p> * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic. * </p> * * @param topicARN * The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (Amazon SNS) topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; }
public NotificationConfiguration unmarshall(StaxUnmarshallerContext context) throws Exception { NotificationConfiguration notificationConfiguration = new NotificationConfiguration(); notificationConfiguration.setAutoScalingGroupName(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue; notificationConfiguration.setTopicARN(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; notificationConfiguration.setNotificationType(StringStaxUnmarshaller .getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NotificationConfiguration == false) return false; NotificationConfiguration other = (NotificationConfiguration) obj; if (other.getAutoScalingGroupName() == null ^ this.getAutoScalingGroupName() == null) return false; if (other.getAutoScalingGroupName() != null && other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == false) return false; if (other.getTopicARN() == null ^ this.getTopicARN() == null) return false; if (other.getTopicARN() != null && other.getTopicARN().equals(this.getTopicARN()) == false) return false; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == 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 (getAutoScalingGroupName() != null) sb.append("AutoScalingGroupName: ").append(getAutoScalingGroupName()).append(","); if (getTopicARN() != null) sb.append("TopicARN: ").append(getTopicARN()).append(","); if (getNotificationType() != null) sb.append("NotificationType: ").append(getNotificationType()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoScalingGroupName() == null) ? 0 : getAutoScalingGroupName().hashCode()); hashCode = prime * hashCode + ((getTopicARN() == null) ? 0 : getTopicARN().hashCode()); hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NotificationConfiguration == false) return false; NotificationConfiguration other = (NotificationConfiguration) obj; if (other.getAutoScalingGroupName() == null ^ this.getAutoScalingGroupName() == null) return false; if (other.getAutoScalingGroupName() != null && other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == false) return false; if (other.getTopicARN() == null ^ this.getTopicARN() == null) return false; if (other.getTopicARN() != null && other.getTopicARN().equals(this.getTopicARN()) == false) return false; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == false) return false; return true; } }
/** * 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 (getAutoScalingGroupName() != null) sb.append("AutoScalingGroupName: " + getAutoScalingGroupName() + ","); if (getTopicARN() != null) sb.append("TopicARN: " + getTopicARN() + ","); if (getNotificationType() != null) sb.append("NotificationType: " + getNotificationType()); sb.append("}"); return sb.toString(); }
public void marshall(NotificationConfiguration _notificationConfiguration, Request<?> request, String _prefix) { String prefix; if (_notificationConfiguration.getAutoScalingGroupName() != null) { prefix = _prefix + "AutoScalingGroupName"; String autoScalingGroupName = _notificationConfiguration.getAutoScalingGroupName(); request.addParameter(prefix, StringUtils.fromString(autoScalingGroupName)); } if (_notificationConfiguration.getTopicARN() != null) { prefix = _prefix + "TopicARN"; String topicARN = _notificationConfiguration.getTopicARN(); request.addParameter(prefix, StringUtils.fromString(topicARN)); } if (_notificationConfiguration.getNotificationType() != null) { prefix = _prefix + "NotificationType"; String notificationType = _notificationConfiguration.getNotificationType(); request.addParameter(prefix, StringUtils.fromString(notificationType)); } }