public AddHeaderAction unmarshall(StaxUnmarshallerContext context) throws Exception { AddHeaderAction addHeaderAction = new AddHeaderAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return addHeaderAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HeaderName", targetDepth)) { addHeaderAction.setHeaderName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HeaderValue", targetDepth)) { addHeaderAction.setHeaderValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return addHeaderAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHeaderName() == null) ? 0 : getHeaderName().hashCode()); hashCode = prime * hashCode + ((getHeaderValue() == null) ? 0 : getHeaderValue().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null) return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false; if (other.getSNSAction() == null ^ this.getSNSAction() == null)
/** * <p> * Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n"). * </p> * * @param headerValue * Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n"). * @return Returns a reference to this object so that method calls can be chained together. */ public AddHeaderAction withHeaderValue(String headerValue) { setHeaderValue(headerValue); return this; }
/** * <p> * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, * A-Z, 0-9) characters and dashes only. * </p> * * @param headerName * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric * (a-z, A-Z, 0-9) characters and dashes only. * @return Returns a reference to this object so that method calls can be chained together. */ public AddHeaderAction withHeaderName(String headerName) { setHeaderName(headerName); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false; if (other.getSNSAction() == null ^ this.getSNSAction() == null)
/** * <p> * Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n"). * </p> * * @param headerValue * Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n"). * @return Returns a reference to this object so that method calls can be chained together. */ public AddHeaderAction withHeaderValue(String headerValue) { setHeaderValue(headerValue); return this; }
/** * <p> * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, * A-Z, 0-9) characters and dashes only. * </p> * * @param headerName * The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric * (a-z, A-Z, 0-9) characters and dashes only. * @return Returns a reference to this object so that method calls can be chained together. */ public AddHeaderAction withHeaderName(String headerName) { setHeaderName(headerName); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddHeaderAction == false) return false; AddHeaderAction other = (AddHeaderAction) obj; if (other.getHeaderName() == null ^ this.getHeaderName() == null) return false; if (other.getHeaderName() != null && other.getHeaderName().equals(this.getHeaderName()) == false) return false; if (other.getHeaderValue() == null ^ this.getHeaderValue() == null) return false; if (other.getHeaderValue() != null && other.getHeaderValue().equals(this.getHeaderValue()) == false) return false; return true; }
public AddHeaderAction unmarshall(StaxUnmarshallerContext context) throws Exception { AddHeaderAction addHeaderAction = new AddHeaderAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) break; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("HeaderName", targetDepth)) { addHeaderAction.setHeaderName(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } if (context.testExpression("HeaderValue", targetDepth)) { addHeaderAction.setHeaderValue(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { break; } } } return addHeaderAction; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null) return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false; if (other.getSNSAction() == null ^ this.getSNSAction() == null)
/** * 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 (getHeaderName() != null) sb.append("HeaderName: ").append(getHeaderName()).append(","); if (getHeaderValue() != null) sb.append("HeaderValue: ").append(getHeaderValue()); sb.append("}"); return sb.toString(); }
public AddHeaderAction unmarshall(StaxUnmarshallerContext context) throws Exception { AddHeaderAction addHeaderAction = new AddHeaderAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return addHeaderAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("HeaderName", targetDepth)) { addHeaderAction.setHeaderName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HeaderValue", targetDepth)) { addHeaderAction.setHeaderValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return addHeaderAction; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHeaderName() == null) ? 0 : getHeaderName().hashCode()); hashCode = prime * hashCode + ((getHeaderValue() == null) ? 0 : getHeaderValue().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddHeaderAction == false) return false; AddHeaderAction other = (AddHeaderAction) obj; if (other.getHeaderName() == null ^ this.getHeaderName() == null) return false; if (other.getHeaderName() != null && other.getHeaderName().equals(this.getHeaderName()) == false) return false; if (other.getHeaderValue() == null ^ this.getHeaderValue() == null) return false; if (other.getHeaderValue() != null && other.getHeaderValue().equals(this.getHeaderValue()) == 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 (getHeaderName() != null) sb.append("HeaderName: " + getHeaderName() + ","); if (getHeaderValue() != null) sb.append("HeaderValue: " + getHeaderValue()); sb.append("}"); return sb.toString(); }
public void marshall(AddHeaderAction _addHeaderAction, Request<?> request, String _prefix) { String prefix; if (_addHeaderAction.getHeaderName() != null) { prefix = _prefix + "HeaderName"; String headerName = _addHeaderAction.getHeaderName(); request.addParameter(prefix, StringUtils.fromString(headerName)); } if (_addHeaderAction.getHeaderValue() != null) { prefix = _prefix + "HeaderValue"; String headerValue = _addHeaderAction.getHeaderValue(); request.addParameter(prefix, StringUtils.fromString(headerValue)); } }