@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyMetadata() == null) ? 0 : getKeyMetadata().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyMetadata() == null) ? 0 : getKeyMetadata().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeKeyResult == false) return false; DescribeKeyResult other = (DescribeKeyResult) obj; if (other.getKeyMetadata() == null ^ this.getKeyMetadata() == null) return false; if (other.getKeyMetadata() != null && other.getKeyMetadata().equals(this.getKeyMetadata()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateKeyResult == false) return false; CreateKeyResult other = (CreateKeyResult) obj; if (other.getKeyMetadata() == null ^ this.getKeyMetadata() == null) return false; if (other.getKeyMetadata() != null && other.getKeyMetadata().equals(this.getKeyMetadata()) == false) return false; return true; }
/** * <p> * A list of grants. * </p> * * @param grants * A list of grants. * @return Returns a reference to this object so that method calls can be chained together. */ public ListRetirableGrantsResult withGrants(java.util.Collection<GrantListEntry> grants) { setGrants(grants); return this; }
/** * <p> * Unique identifier of the CMK used to originally encrypt the data. * </p> * * @param sourceKeyId * Unique identifier of the CMK used to originally encrypt the data. * @return Returns a reference to this object so that method calls can be chained together. */ public ReEncryptResult withSourceKeyId(String sourceKeyId) { setSourceKeyId(sourceKeyId); return this; }
/** * <p> * String that contains the alias. * </p> * * @param aliasName * String that contains the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public AliasListEntry withAliasName(String aliasName) { setAliasName(aliasName); return this; }
/** * <p> * The globally unique identifier for the CMK. * </p> * * @param keyId * The globally unique identifier for the CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public KeyMetadata withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * A Boolean value that specifies whether key rotation is enabled. * </p> * * @param keyRotationEnabled * A Boolean value that specifies whether key rotation is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public GetKeyRotationStatusResult withKeyRotationEnabled(Boolean keyRotationEnabled) { setKeyRotationEnabled(keyRotationEnabled); return this; }
/** * <p> * The ID of the key used during encryption. * </p> * * @param keyId * The ID of the key used during encryption. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptResult withKeyId(String keyId) { setKeyId(keyId); return this; }
/** * <p> * The principal that receives the grant's permissions. * </p> * * @param granteePrincipal * The principal that receives the grant's permissions. * @return Returns a reference to this object so that method calls can be chained together. */ public GrantListEntry withGranteePrincipal(String granteePrincipal) { setGranteePrincipal(granteePrincipal); return this; }
/** * <p> * The value of the tag. * </p> * * @param tagValue * The value of the tag. * @return Returns a reference to this object so that method calls can be chained together. */ public Tag withTagValue(String tagValue) { setTagValue(tagValue); return this; }
/** * <p> * One or more tag keys. Specify only the tag keys, not the tag values. * </p> * * @param tagKeys * One or more tag keys. Specify only the tag keys, not the tag values. * @return Returns a reference to this object so that method calls can be chained together. */ public UntagResourceRequest withTagKeys(java.util.Collection<String> tagKeys) { setTagKeys(tagKeys); return this; }
public UpdateCustomKeyStoreResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateCustomKeyStoreResult updateCustomKeyStoreResult = new UpdateCustomKeyStoreResult(); return updateCustomKeyStoreResult; }
public DeleteCustomKeyStoreResult unmarshall(JsonUnmarshallerContext context) throws Exception { DeleteCustomKeyStoreResult deleteCustomKeyStoreResult = new DeleteCustomKeyStoreResult(); return deleteCustomKeyStoreResult; }
public TagResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception { TagResourceResult tagResourceResult = new TagResourceResult(); return tagResourceResult; }
/** * <p> * Identifier of the grant to be revoked. * </p> * * @param grantId * Identifier of the grant to be revoked. * @return Returns a reference to this object so that method calls can be chained together. */ public RevokeGrantRequest withGrantId(String grantId) { setGrantId(grantId); return this; }
public UntagResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception { UntagResourceResult untagResourceResult = new UntagResourceResult(); return untagResourceResult; }
public DisableKeyRotationResult unmarshall(JsonUnmarshallerContext context) throws Exception { DisableKeyRotationResult disableKeyRotationResult = new DisableKeyRotationResult(); return disableKeyRotationResult; }
public EnableKeyRotationResult unmarshall(JsonUnmarshallerContext context) throws Exception { EnableKeyRotationResult enableKeyRotationResult = new EnableKeyRotationResult(); return enableKeyRotationResult; }