@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParameterName() == null) ? 0 : getParameterName().hashCode()); hashCode = prime * hashCode + ((getParameterValue() == null) ? 0 : getParameterValue().hashCode()); return hashCode; }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. * @param parameterValue * The value of the parameter. */ public ParameterNameValue(String parameterName, String parameterValue) { setParameterName(parameterName); setParameterValue(parameterValue); }
public ParameterNameValue unmarshall(StaxUnmarshallerContext context) throws Exception { ParameterNameValue parameterNameValue = new ParameterNameValue(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return parameterNameValue; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ParameterName", targetDepth)) { parameterNameValue.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ParameterValue", targetDepth)) { parameterNameValue.setParameterValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return parameterNameValue; } } } }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. */ public ParameterNameValue(String parameterName) { setParameterName(parameterName); }
/** * <p> * The value of the parameter. * </p> * * @param parameterValue * The value of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterValue(String parameterValue) { setParameterValue(parameterValue); return this; }
public ParameterNameValue unmarshall(StaxUnmarshallerContext context) throws Exception { ParameterNameValue parameterNameValue = new ParameterNameValue(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return parameterNameValue; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ParameterName", targetDepth)) { parameterNameValue.setParameterName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("ParameterValue", targetDepth)) { parameterNameValue.setParameterValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return parameterNameValue; } } } }
/** * <p> * The name of the parameter. * </p> * * @param parameterName * The name of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterName(String parameterName) { setParameterName(parameterName); return this; }
/** * <p> * The value of the parameter. * </p> * * @param parameterValue * The value of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterValue(String parameterValue) { setParameterValue(parameterValue); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ParameterNameValue == false) return false; ParameterNameValue other = (ParameterNameValue) obj; if (other.getParameterName() == null ^ this.getParameterName() == null) return false; if (other.getParameterName() != null && other.getParameterName().equals(this.getParameterName()) == false) return false; if (other.getParameterValue() == null ^ this.getParameterValue() == null) return false; if (other.getParameterValue() != null && other.getParameterValue().equals(this.getParameterValue()) == false) return false; return true; }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. * @param parameterValue * The value of the parameter. */ public ParameterNameValue(String parameterName, String parameterValue) { setParameterName(parameterName); setParameterValue(parameterValue); }
/** * Constructs a new ParameterNameValue object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param parameterName * The name of the parameter. */ public ParameterNameValue(String parameterName) { setParameterName(parameterName); }
/** * 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 (getParameterName() != null) sb.append("ParameterName: ").append(getParameterName()).append(","); if (getParameterValue() != null) sb.append("ParameterValue: ").append(getParameterValue()); sb.append("}"); return sb.toString(); }
/** * <p> * The name of the parameter. * </p> * * @param parameterName * The name of the parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ParameterNameValue withParameterName(String parameterName) { setParameterName(parameterName); return this; }
if (parameterNameValuesListValue.getParameterName() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterName", StringUtils.fromString(parameterNameValuesListValue.getParameterName())); if (parameterNameValuesListValue.getParameterValue() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterValue", StringUtils.fromString(parameterNameValuesListValue.getParameterValue()));
if (parameterNameValuesListValue.getParameterName() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterName", StringUtils.fromString(parameterNameValuesListValue.getParameterName())); if (parameterNameValuesListValue.getParameterValue() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterValue", StringUtils.fromString(parameterNameValuesListValue.getParameterValue()));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getParameterName() == null) ? 0 : getParameterName().hashCode()); hashCode = prime * hashCode + ((getParameterValue() == null) ? 0 : getParameterValue().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ParameterNameValue == false) return false; ParameterNameValue other = (ParameterNameValue) obj; if (other.getParameterName() == null ^ this.getParameterName() == null) return false; if (other.getParameterName() != null && other.getParameterName().equals(this.getParameterName()) == false) return false; if (other.getParameterValue() == null ^ this.getParameterValue() == null) return false; if (other.getParameterValue() != null && other.getParameterValue().equals(this.getParameterValue()) == 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 (getParameterName() != null) sb.append("ParameterName: ").append(getParameterName()).append(","); if (getParameterValue() != null) sb.append("ParameterValue: ").append(getParameterValue()); sb.append("}"); return sb.toString(); }
if (parameterNameValuesListValue.getParameterName() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterName", StringUtils.fromString(parameterNameValuesListValue.getParameterName())); if (parameterNameValuesListValue.getParameterValue() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterValue", StringUtils.fromString(parameterNameValuesListValue.getParameterValue()));
if (parameterNameValuesListValue.getParameterName() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterName", StringUtils.fromString(parameterNameValuesListValue.getParameterName())); if (parameterNameValuesListValue.getParameterValue() != null) { request.addParameter("ParameterNameValues.ParameterNameValue." + parameterNameValuesListIndex + ".ParameterValue", StringUtils.fromString(parameterNameValuesListValue.getParameterValue()));