@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getTopicStatus() == null) ? 0 : getTopicStatus().hashCode()); return hashCode; }
/** * <p> * The Amazon Resource Name (ARN) that identifies the topic. * </p> * * @param topicArn * The Amazon Resource Name (ARN) that identifies the 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; }
/** * <p> * The current state of the topic. * </p> * * @param topicStatus * The current state of the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicStatus(String topicStatus) { setTopicStatus(topicStatus); 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("TopicArn", targetDepth)) { notificationConfiguration.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicStatus", targetDepth)) { notificationConfiguration.setTopicStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }
hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getNotificationConfiguration() == null) ? 0 : getNotificationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCacheSecurityGroups() == null) ? 0 : getCacheSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getCacheParameterGroup() == null) ? 0 : getCacheParameterGroup().hashCode());
if (other.getNotificationConfiguration() == null ^ this.getNotificationConfiguration() == null) return false; if (other.getNotificationConfiguration() != null && other.getNotificationConfiguration().equals(this.getNotificationConfiguration()) == false) return false; if (other.getCacheSecurityGroups() == null ^ this.getCacheSecurityGroups() == null)
this.pendingModifiedValues = cacheCluster.getPendingModifiedValues().toString(); if (cacheCluster.getNotificationConfiguration() != null) { this.notificationConfiguration = cacheCluster.getNotificationConfiguration().toString(); } else { this.notificationConfiguration = "empty";
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("TopicArn", targetDepth)) { notificationConfiguration.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("TopicStatus", targetDepth)) { notificationConfiguration.setTopicStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return notificationConfiguration; } } } }
hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getNotificationConfiguration() == null) ? 0 : getNotificationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCacheSecurityGroups() == null) ? 0 : getCacheSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getCacheParameterGroup() == null) ? 0 : getCacheParameterGroup().hashCode());
if (other.getNotificationConfiguration() == null ^ this.getNotificationConfiguration() == null) return false; if (other.getNotificationConfiguration() != null && other.getNotificationConfiguration().equals(this.getNotificationConfiguration()) == false) return false; if (other.getCacheSecurityGroups() == null ^ this.getCacheSecurityGroups() == null)
@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.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getTopicStatus() == null ^ this.getTopicStatus() == null) return false; if (other.getTopicStatus() != null && other.getTopicStatus().equals(this.getTopicStatus()) == false) return false; return true; }
/** * <p> * The current state of the topic. * </p> * * @param topicStatus * The current state of the topic. * @return Returns a reference to this object so that method calls can be chained together. */ public NotificationConfiguration withTopicStatus(String topicStatus) { setTopicStatus(topicStatus); return this; }
/** * <p> * The Amazon Resource Name (ARN) that identifies the topic. * </p> * * @param topicArn * The Amazon Resource Name (ARN) that identifies the 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; }
/** * 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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getTopicStatus() != null) sb.append("TopicStatus: ").append(getTopicStatus()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getTopicStatus() == null) ? 0 : getTopicStatus().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.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getTopicStatus() == null ^ this.getTopicStatus() == null) return false; if (other.getTopicStatus() != null && other.getTopicStatus().equals(this.getTopicStatus()) == 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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getTopicStatus() != null) sb.append("TopicStatus: ").append(getTopicStatus()); sb.append("}"); return sb.toString(); }