@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRequest == false) return false; DeleteRequest other = (DeleteRequest) obj; if (other.getKey() == null ^ this.getKey() == null) return false; if (other.getKey() != null && other.getKey().equals(this.getKey()) == 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 (getKey() != null) sb.append("Key: ").append(getKey()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DeleteRequest deleteRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteRequest.getKey(), KEY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * {@inheritDoc} */ protected Map<String, AttributeValue> getRequestItem(WriteRequest writeRequest) { return writeRequest.getDeleteRequest().getKey(); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRequest == false) return false; DeleteRequest other = (DeleteRequest) obj; if (other.getKey() == null ^ this.getKey() == null) return false; if (other.getKey() != null && other.getKey().equals(this.getKey()) == 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 (getKey() != null) sb.append("Key: " + getKey()); sb.append("}"); return sb.toString(); }
public void marshall(DeleteRequest deleteRequest, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (deleteRequest.getKey() != null) { java.util.Map<String, AttributeValue> key = deleteRequest.getKey(); jsonWriter.name("Key"); jsonWriter.beginObject(); for (java.util.Map.Entry<String, AttributeValue> keyEntry : key.entrySet()) { AttributeValue keyValue = keyEntry.getValue(); if (keyValue != null) { jsonWriter.name(keyEntry.getKey()); AttributeValueJsonMarshaller.getInstance().marshall(keyValue, jsonWriter); } } jsonWriter.endObject(); } jsonWriter.endObject(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteRequest == false) return false; DeleteRequest other = (DeleteRequest) obj; if (other.getKey() == null ^ this.getKey() == null) return false; if (other.getKey() != null && other.getKey().equals(this.getKey()) == 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 (getKey() != null) sb.append("Key: ").append(getKey()); sb.append("}"); return sb.toString(); }
/** * {@inheritDoc} */ protected Map<String, AttributeValue> getRequestItem(WriteRequest writeRequest) { return writeRequest.getDeleteRequest().getKey(); } }
/** * Marshall the given parameter object. */ public void marshall(DeleteRequest deleteRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deleteRequest.getKey(), KEY_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }