@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEventId() == null) ? 0 : getEventId().hashCode()); hashCode = prime * hashCode + ((getEventCategories() == null) ? 0 : getEventCategories().hashCode()); hashCode = prime * hashCode + ((getEventDescription() == null) ? 0 : getEventDescription().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); return hashCode; }
/** * <p> * The category of an Amazon Redshift event. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(java.util.Collection<String> eventCategories) { setEventCategories(eventCategories); return this; }
/** * <p> * The description of an Amazon Redshift event. * </p> * * @param eventDescription * The description of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventDescription(String eventDescription) { setEventDescription(eventDescription); return this; }
public EventInfoMap unmarshall(StaxUnmarshallerContext context) throws Exception { EventInfoMap eventInfoMap = new EventInfoMap(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; eventInfoMap.setEventId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.withEventCategories(new ArrayList<String>()); continue; eventInfoMap.withEventCategories(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.setEventDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.setSeverity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The identifier of an Amazon Redshift event. * </p> * * @param eventId * The identifier of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventId(String eventId) { setEventId(eventId); return this; }
/** * <p> * The severity of the event. * </p> * <p> * Values: ERROR, INFO * </p> * * @param severity * The severity of the event.</p> * <p> * Values: ERROR, INFO * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withSeverity(String severity) { setSeverity(severity); return this; }
public EventInfoMap unmarshall(StaxUnmarshallerContext context) throws Exception { EventInfoMap eventInfoMap = new EventInfoMap(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; eventInfoMap.setEventId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.withEventCategories(new ArrayList<String>()); continue; eventInfoMap.withEventCategories(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.setEventDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; eventInfoMap.setSeverity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The identifier of an Amazon Redshift event. * </p> * * @param eventId * The identifier of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventId(String eventId) { setEventId(eventId); return this; }
/** * <p> * The severity of the event. * </p> * <p> * Values: ERROR, INFO * </p> * * @param severity * The severity of the event.</p> * <p> * Values: ERROR, INFO * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withSeverity(String severity) { setSeverity(severity); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EventInfoMap == false) return false; EventInfoMap other = (EventInfoMap) obj; if (other.getEventId() == null ^ this.getEventId() == null) return false; if (other.getEventId() != null && other.getEventId().equals(this.getEventId()) == false) return false; if (other.getEventCategories() == null ^ this.getEventCategories() == null) return false; if (other.getEventCategories() != null && other.getEventCategories().equals(this.getEventCategories()) == false) return false; if (other.getEventDescription() == null ^ this.getEventDescription() == null) return false; if (other.getEventDescription() != null && other.getEventDescription().equals(this.getEventDescription()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == false) return false; return true; }
/** * <p> * The category of an Amazon Redshift event. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventCategories(java.util.Collection)} or {@link #withEventCategories(java.util.Collection)} if you * want to override the existing values. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(String... eventCategories) { if (this.eventCategories == null) { setEventCategories(new com.amazonaws.internal.SdkInternalList<String>(eventCategories.length)); } for (String ele : eventCategories) { this.eventCategories.add(ele); } return this; }
/** * <p> * The description of an Amazon Redshift event. * </p> * * @param eventDescription * The description of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventDescription(String eventDescription) { setEventDescription(eventDescription); 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 (getEventId() != null) sb.append("EventId: ").append(getEventId()).append(","); if (getEventCategories() != null) sb.append("EventCategories: ").append(getEventCategories()).append(","); if (getEventDescription() != null) sb.append("EventDescription: ").append(getEventDescription()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()); sb.append("}"); return sb.toString(); }
/** * <p> * The category of an Amazon Redshift event. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(java.util.Collection<String> eventCategories) { setEventCategories(eventCategories); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEventId() == null) ? 0 : getEventId().hashCode()); hashCode = prime * hashCode + ((getEventCategories() == null) ? 0 : getEventCategories().hashCode()); hashCode = prime * hashCode + ((getEventDescription() == null) ? 0 : getEventDescription().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); return hashCode; }
/** * <p> * The category of an Amazon Redshift event. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEventCategories(java.util.Collection)} or {@link #withEventCategories(java.util.Collection)} if you * want to override the existing values. * </p> * * @param eventCategories * The category of an Amazon Redshift event. * @return Returns a reference to this object so that method calls can be chained together. */ public EventInfoMap withEventCategories(String... eventCategories) { if (this.eventCategories == null) { setEventCategories(new com.amazonaws.internal.SdkInternalList<String>(eventCategories.length)); } for (String ele : eventCategories) { this.eventCategories.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EventInfoMap == false) return false; EventInfoMap other = (EventInfoMap) obj; if (other.getEventId() == null ^ this.getEventId() == null) return false; if (other.getEventId() != null && other.getEventId().equals(this.getEventId()) == false) return false; if (other.getEventCategories() == null ^ this.getEventCategories() == null) return false; if (other.getEventCategories() != null && other.getEventCategories().equals(this.getEventCategories()) == false) return false; if (other.getEventDescription() == null ^ this.getEventDescription() == null) return false; if (other.getEventDescription() != null && other.getEventDescription().equals(this.getEventDescription()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == 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 (getEventId() != null) sb.append("EventId: ").append(getEventId()).append(","); if (getEventCategories() != null) sb.append("EventCategories: ").append(getEventCategories()).append(","); if (getEventDescription() != null) sb.append("EventDescription: ").append(getEventDescription()).append(","); if (getSeverity() != null) sb.append("Severity: ").append(getSeverity()); sb.append("}"); return sb.toString(); }