@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttributePayload == false) return false; AttributePayload other = (AttributePayload) obj; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getMerge() == null ^ this.getMerge() == null) return false; if (other.getMerge() != null && other.getMerge().equals(this.getMerge()) == 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 (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getMerge() != null) sb.append("Merge: ").append(getMerge()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AttributePayload attributePayload, ProtocolMarshaller protocolMarshaller) { if (attributePayload == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(attributePayload.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(attributePayload.getMerge(), MERGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getAttributes() != null) sb.append("attributes: " + getAttributes() + ","); if (getMerge() != null) sb.append("merge: " + getMerge()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttributePayload == false) return false; AttributePayload other = (AttributePayload) obj; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getMerge() == null ^ this.getMerge() == null) return false; if (other.getMerge() != null && other.getMerge().equals(this.getMerge()) == false) return false; return true; } }
public void marshall(AttributePayload attributePayload, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (attributePayload.getAttributes() != null) { java.util.Map<String, String> attributes = attributePayload.getAttributes(); jsonWriter.name("attributes"); jsonWriter.beginObject(); for (java.util.Map.Entry<String, String> attributesEntry : attributes.entrySet()) { String attributesValue = attributesEntry.getValue(); if (attributesValue != null) { jsonWriter.name(attributesEntry.getKey()); jsonWriter.value(attributesValue); } } jsonWriter.endObject(); } if (attributePayload.getMerge() != null) { Boolean merge = attributePayload.getMerge(); jsonWriter.name("merge"); jsonWriter.value(merge); } jsonWriter.endObject(); }
/** * 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 (getAttributes() != null) sb.append("attributes: " + getAttributes() + ","); if (getMerge() != null) sb.append("merge: " + getMerge()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttributePayload == false) return false; AttributePayload other = (AttributePayload) obj; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getMerge() == null ^ this.getMerge() == null) return false; if (other.getMerge() != null && other.getMerge().equals(this.getMerge()) == 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 (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getMerge() != null) sb.append("Merge: ").append(getMerge()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AttributePayload == false) return false; AttributePayload other = (AttributePayload) obj; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getMerge() == null ^ this.getMerge() == null) return false; if (other.getMerge() != null && other.getMerge().equals(this.getMerge()) == false) return false; return true; } }
/** * Marshall the given parameter object. */ public void marshall(AttributePayload attributePayload, ProtocolMarshaller protocolMarshaller) { if (attributePayload == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(attributePayload.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(attributePayload.getMerge(), MERGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(AttributePayload attributePayload, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (attributePayload.getAttributes() != null) { java.util.Map<String, String> attributes = attributePayload.getAttributes(); jsonWriter.name("attributes"); jsonWriter.beginObject(); for (java.util.Map.Entry<String, String> attributesEntry : attributes.entrySet()) { String attributesValue = attributesEntry.getValue(); if (attributesValue != null) { jsonWriter.name(attributesEntry.getKey()); jsonWriter.value(attributesValue); } } jsonWriter.endObject(); } if (attributePayload.getMerge() != null) { Boolean merge = attributePayload.getMerge(); jsonWriter.name("merge"); jsonWriter.value(merge); } jsonWriter.endObject(); }