@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); hashCode = prime * hashCode + ((getBinaryValue() == null) ? 0 : getBinaryValue().hashCode()); hashCode = prime * hashCode + ((getStringListValues() == null) ? 0 : getStringListValues().hashCode()); hashCode = prime * hashCode + ((getBinaryListValues() == null) ? 0 : getBinaryListValues().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); return hashCode; }
/** * 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 (getStringValue() != null) sb.append("StringValue: ").append(getStringValue()).append(","); if (getBinaryValue() != null) sb.append("BinaryValue: ").append(getBinaryValue()).append(","); if (getStringListValues() != null) sb.append("StringListValues: ").append(getStringListValues()).append(","); if (getBinaryListValues() != null) sb.append("BinaryListValues: ").append(getBinaryListValues()).append(","); if (getDataType() != null) sb.append("DataType: ").append(getDataType()); sb.append("}"); return sb.toString(); }
md5Digest.update(BINARY_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getBinaryValue()); } else if (attrValue.getStringListValues().size() > 0) { md5Digest.update(STRING_LIST_TYPE_FIELD_INDEX); for (String strListMember : attrValue.getStringListValues()) { updateLengthAndBytes(md5Digest, strListMember);
if (other.getBinaryValue() != null && other.getBinaryValue().equals(this.getBinaryValue()) == false) return false; if (other.getStringListValues() == null ^ this.getStringListValues() == null) return false; if (other.getStringListValues() != null && other.getStringListValues().equals(this.getStringListValues()) == false) return false; if (other.getBinaryListValues() == null ^ this.getBinaryListValues() == null)
if (!entry.getValue().getStringListValues().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) entry.getValue().getStringListValues()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> stringListValuesList = (com.amazonaws.internal.SdkInternalList<String>) entry.getValue() .getStringListValues(); int stringListValuesListIndex = 1;
if (!entry.getValue().getStringListValues().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) entry.getValue().getStringListValues()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> stringListValuesList = (com.amazonaws.internal.SdkInternalList<String>) entry .getValue().getStringListValues(); int stringListValuesListIndex = 1;
/** * <p> * Not implemented. Reserved for future use. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param stringListValues <p> * Not implemented. Reserved for future use. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public MessageAttributeValue withStringListValues(String... stringListValues) { if (getStringListValues() == null) { this.stringListValues = new java.util.ArrayList<String>(stringListValues.length); } for (String value : stringListValues) { this.stringListValues.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); hashCode = prime * hashCode + ((getBinaryValue() == null) ? 0 : getBinaryValue().hashCode()); hashCode = prime * hashCode + ((getStringListValues() == null) ? 0 : getStringListValues().hashCode()); hashCode = prime * hashCode + ((getBinaryListValues() == null) ? 0 : getBinaryListValues().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); return hashCode; }
/** * 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 (getStringValue() != null) sb.append("StringValue: " + getStringValue() + ","); if (getBinaryValue() != null) sb.append("BinaryValue: " + getBinaryValue() + ","); if (getStringListValues() != null) sb.append("StringListValues: " + getStringListValues() + ","); if (getBinaryListValues() != null) sb.append("BinaryListValues: " + getBinaryListValues() + ","); if (getDataType() != null) sb.append("DataType: " + getDataType()); sb.append("}"); return sb.toString(); }
&& other.getBinaryValue().equals(this.getBinaryValue()) == false) return false; if (other.getStringListValues() == null ^ this.getStringListValues() == null) return false; if (other.getStringListValues() != null && other.getStringListValues().equals(this.getStringListValues()) == false) return false; if (other.getBinaryListValues() == null ^ this.getBinaryListValues() == null)
md5Digest.update(BINARY_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getBinaryValue()); } else if (attrValue.getStringListValues() != null) { md5Digest.update(STRING_LIST_TYPE_FIELD_INDEX); for (String strListMember : attrValue.getStringListValues()) { updateLengthAndBytes(md5Digest, strListMember);
request.addParameter(prefix, StringUtils.fromByteBuffer(binaryValue)); if (_messageAttributeValue.getStringListValues() != null) { prefix = _prefix + "StringListValue"; java.util.List<String> stringListValues = _messageAttributeValue.getStringListValues(); int stringListValuesIndex = 1; String stringListValuesPrefix = prefix;
/** * <p> * Not implemented. Reserved for future use. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param stringListValues <p> * Not implemented. Reserved for future use. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public MessageAttributeValue withStringListValues(String... stringListValues) { if (getStringListValues() == null) { this.stringListValues = new java.util.ArrayList<String>(stringListValues.length); } for (String value : stringListValues) { this.stringListValues.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); hashCode = prime * hashCode + ((getBinaryValue() == null) ? 0 : getBinaryValue().hashCode()); hashCode = prime * hashCode + ((getStringListValues() == null) ? 0 : getStringListValues().hashCode()); hashCode = prime * hashCode + ((getBinaryListValues() == null) ? 0 : getBinaryListValues().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); return hashCode; }
/** * 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 (getStringValue() != null) sb.append("StringValue: ").append(getStringValue()).append(","); if (getBinaryValue() != null) sb.append("BinaryValue: ").append(getBinaryValue()).append(","); if (getStringListValues() != null) sb.append("StringListValues: ").append(getStringListValues()).append(","); if (getBinaryListValues() != null) sb.append("BinaryListValues: ").append(getBinaryListValues()).append(","); if (getDataType() != null) sb.append("DataType: ").append(getDataType()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStringValue() == null) ? 0 : getStringValue().hashCode()); hashCode = prime * hashCode + ((getBinaryValue() == null) ? 0 : getBinaryValue().hashCode()); hashCode = prime * hashCode + ((getStringListValues() == null) ? 0 : getStringListValues().hashCode()); hashCode = prime * hashCode + ((getBinaryListValues() == null) ? 0 : getBinaryListValues().hashCode()); hashCode = prime * hashCode + ((getDataType() == null) ? 0 : getDataType().hashCode()); return hashCode; }
/** * 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 (getStringValue() != null) sb.append("StringValue: " + getStringValue() + ","); if (getBinaryValue() != null) sb.append("BinaryValue: " + getBinaryValue() + ","); if (getStringListValues() != null) sb.append("StringListValues: " + getStringListValues() + ","); if (getBinaryListValues() != null) sb.append("BinaryListValues: " + getBinaryListValues() + ","); if (getDataType() != null) sb.append("DataType: " + getDataType()); sb.append("}"); return sb.toString(); }
md5Digest.update(BINARY_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getBinaryValue()); } else if (attrValue.getStringListValues().size() > 0) { md5Digest.update(STRING_LIST_TYPE_FIELD_INDEX); for (String strListMember : attrValue.getStringListValues()) { updateLengthAndBytes(md5Digest, strListMember);
if (other.getBinaryValue() != null && other.getBinaryValue().equals(this.getBinaryValue()) == false) return false; if (other.getStringListValues() == null ^ this.getStringListValues() == null) return false; if (other.getStringListValues() != null && other.getStringListValues().equals(this.getStringListValues()) == false) return false; if (other.getBinaryListValues() == null ^ this.getBinaryListValues() == null)
&& other.getBinaryValue().equals(this.getBinaryValue()) == false) return false; if (other.getStringListValues() == null ^ this.getStringListValues() == null) return false; if (other.getStringListValues() != null && other.getStringListValues().equals(this.getStringListValues()) == false) return false; if (other.getBinaryListValues() == null ^ this.getBinaryListValues() == null)