@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KeyListEntry == false) return false; KeyListEntry other = (KeyListEntry) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getKeyArn() == null ^ this.getKeyArn() == null) return false; if (other.getKeyArn() != null && other.getKeyArn().equals(this.getKeyArn()) == 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 (getKeyId() != null) sb.append("KeyId: ").append(getKeyId()).append(","); if (getKeyArn() != null) sb.append("KeyArn: ").append(getKeyArn()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(KeyListEntry keyListEntry, ProtocolMarshaller protocolMarshaller) { if (keyListEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(keyListEntry.getKeyId(), KEYID_BINDING); protocolMarshaller.marshall(keyListEntry.getKeyArn(), KEYARN_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 (getKeyId() != null) sb.append("KeyId: " + getKeyId() + ","); if (getKeyArn() != null) sb.append("KeyArn: " + getKeyArn()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KeyListEntry == false) return false; KeyListEntry other = (KeyListEntry) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getKeyArn() == null ^ this.getKeyArn() == null) return false; if (other.getKeyArn() != null && other.getKeyArn().equals(this.getKeyArn()) == false) return false; return true; } }
public void marshall(KeyListEntry keyListEntry, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (keyListEntry.getKeyId() != null) { String keyId = keyListEntry.getKeyId(); jsonWriter.name("KeyId"); jsonWriter.value(keyId); } if (keyListEntry.getKeyArn() != null) { String keyArn = keyListEntry.getKeyArn(); jsonWriter.name("KeyArn"); jsonWriter.value(keyArn); } jsonWriter.endObject(); }
public AliasedAlgorithm(final KeyListEntry entry, final String alias) { super(KMSEncryptionFeature.SSE_KMS_DEFAULT.algorithm, entry.getKeyArn()); this.entry = entry; this.alias = alias; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KeyListEntry == false) return false; KeyListEntry other = (KeyListEntry) obj; if (other.getKeyId() == null ^ this.getKeyId() == null) return false; if (other.getKeyId() != null && other.getKeyId().equals(this.getKeyId()) == false) return false; if (other.getKeyArn() == null ^ this.getKeyArn() == null) return false; if (other.getKeyArn() != null && other.getKeyArn().equals(this.getKeyArn()) == 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 (getKeyId() != null) sb.append("KeyId: " + getKeyId() + ","); if (getKeyArn() != null) sb.append("KeyArn: " + getKeyArn()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(KeyListEntry keyListEntry, ProtocolMarshaller protocolMarshaller) { if (keyListEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(keyListEntry.getKeyId(), KEYID_BINDING); protocolMarshaller.marshall(keyListEntry.getKeyArn(), KEYARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Marshall the given parameter object. */ public void marshall(KeyListEntry keyListEntry, ProtocolMarshaller protocolMarshaller) { if (keyListEntry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(keyListEntry.getKeyId(), KEYID_BINDING); protocolMarshaller.marshall(keyListEntry.getKeyArn(), KEYARN_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(KeyListEntry keyListEntry, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (keyListEntry.getKeyId() != null) { String keyId = keyListEntry.getKeyId(); jsonWriter.name("KeyId"); jsonWriter.value(keyId); } if (keyListEntry.getKeyArn() != null) { String keyArn = keyListEntry.getKeyArn(); jsonWriter.name("KeyArn"); jsonWriter.value(keyArn); } jsonWriter.endObject(); }
public void marshall(KeyListEntry keyListEntry, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (keyListEntry.getKeyId() != null) { String keyId = keyListEntry.getKeyId(); jsonWriter.name("KeyId"); jsonWriter.value(keyId); } if (keyListEntry.getKeyArn() != null) { String keyArn = keyListEntry.getKeyArn(); jsonWriter.name("KeyArn"); jsonWriter.value(keyArn); } jsonWriter.endObject(); }