@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getMessageId() == null) ? 0 : getMessageId().hashCode()); return hashCode; }
/** * <p> * A description of an error that prevented a message being sent using the <code>SendBulkTemplatedEmail</code> * operation. * </p> * * @param error * A description of an error that prevented a message being sent using the * <code>SendBulkTemplatedEmail</code> operation. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestinationStatus withError(String error) { setError(error); return this; }
/** * <p> * The unique message identifier returned from the <code>SendBulkTemplatedEmail</code> operation. * </p> * * @param messageId * The unique message identifier returned from the <code>SendBulkTemplatedEmail</code> operation. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestinationStatus withMessageId(String messageId) { setMessageId(messageId); return this; }
public BulkEmailDestinationStatus unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestinationStatus bulkEmailDestinationStatus = new BulkEmailDestinationStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return bulkEmailDestinationStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Status", targetDepth)) { bulkEmailDestinationStatus.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Error", targetDepth)) { bulkEmailDestinationStatus.setError(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MessageId", targetDepth)) { bulkEmailDestinationStatus.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return bulkEmailDestinationStatus; } } } }
setStatus(status); return this;
public BulkEmailDestinationStatus unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestinationStatus bulkEmailDestinationStatus = new BulkEmailDestinationStatus(); bulkEmailDestinationStatus.setStatus(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bulkEmailDestinationStatus.setError(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bulkEmailDestinationStatus.setMessageId(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue;
setStatus(status); return this;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestinationStatus == false) return false; BulkEmailDestinationStatus other = (BulkEmailDestinationStatus) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; if (other.getMessageId() == null ^ this.getMessageId() == null) return false; if (other.getMessageId() != null && other.getMessageId().equals(this.getMessageId()) == false) return false; return true; }
public BulkEmailDestinationStatus unmarshall(StaxUnmarshallerContext context) throws Exception { BulkEmailDestinationStatus bulkEmailDestinationStatus = new BulkEmailDestinationStatus(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return bulkEmailDestinationStatus; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Status", targetDepth)) { bulkEmailDestinationStatus.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Error", targetDepth)) { bulkEmailDestinationStatus.setError(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("MessageId", targetDepth)) { bulkEmailDestinationStatus.setMessageId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return bulkEmailDestinationStatus; } } } }
/** * <p> * The unique message identifier returned from the <code>SendBulkTemplatedEmail</code> operation. * </p> * * @param messageId * The unique message identifier returned from the <code>SendBulkTemplatedEmail</code> operation. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestinationStatus withMessageId(String messageId) { setMessageId(messageId); return this; }
/** * <p> * A description of an error that prevented a message being sent using the <code>SendBulkTemplatedEmail</code> * operation. * </p> * * @param error * A description of an error that prevented a message being sent using the * <code>SendBulkTemplatedEmail</code> operation. * @return Returns a reference to this object so that method calls can be chained together. */ public BulkEmailDestinationStatus withError(String error) { setError(error); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getError() != null) sb.append("Error: ").append(getError()).append(","); if (getMessageId() != null) sb.append("MessageId: ").append(getMessageId()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getMessageId() == null) ? 0 : getMessageId().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestinationStatus == false) return false; BulkEmailDestinationStatus other = (BulkEmailDestinationStatus) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; if (other.getMessageId() == null ^ this.getMessageId() == null) return false; if (other.getMessageId() != null && other.getMessageId().equals(this.getMessageId()) == 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 (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getError() != null) sb.append("Error: " + getError() + ","); if (getMessageId() != null) sb.append("MessageId: " + getMessageId()); sb.append("}"); return sb.toString(); }
public void marshall(BulkEmailDestinationStatus _bulkEmailDestinationStatus, Request<?> request, String _prefix) { String prefix; if (_bulkEmailDestinationStatus.getStatus() != null) { prefix = _prefix + "Status"; String status = _bulkEmailDestinationStatus.getStatus(); request.addParameter(prefix, StringUtils.fromString(status)); } if (_bulkEmailDestinationStatus.getError() != null) { prefix = _prefix + "Error"; String error = _bulkEmailDestinationStatus.getError(); request.addParameter(prefix, StringUtils.fromString(error)); } if (_bulkEmailDestinationStatus.getMessageId() != null) { prefix = _prefix + "MessageId"; String messageId = _bulkEmailDestinationStatus.getMessageId(); request.addParameter(prefix, StringUtils.fromString(messageId)); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); hashCode = prime * hashCode + ((getMessageId() == null) ? 0 : getMessageId().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BulkEmailDestinationStatus == false) return false; BulkEmailDestinationStatus other = (BulkEmailDestinationStatus) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; if (other.getMessageId() == null ^ this.getMessageId() == null) return false; if (other.getMessageId() != null && other.getMessageId().equals(this.getMessageId()) == 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getError() != null) sb.append("Error: ").append(getError()).append(","); if (getMessageId() != null) sb.append("MessageId: ").append(getMessageId()); sb.append("}"); return sb.toString(); }