/** * <p> * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the * same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption Context</a>. * </p> * * @param encryptionContext * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used * here, the same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more * information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption * Context</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptRequest withEncryptionContext(java.util.Map<String, String> encryptionContext) { setEncryptionContext(encryptionContext); return this; }
/** * <p> * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the * same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption Context</a>. * </p> * * @param encryptionContext * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used * here, the same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more * information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption * Context</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptRequest withEncryptionContext(java.util.Map<String, String> encryptionContext) { setEncryptionContext(encryptionContext); return this; }
/** * <p> * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used here, the * same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption Context</a>. * </p> * * @param encryptionContext * Name-value pair that specifies the encryption context to be used for authenticated encryption. If used * here, the same value must be supplied to the <code>Decrypt</code> API or decryption will fail. For more * information, see <a * href="http://docs.aws.amazon.com/kms/latest/developerguide/encryption-context.html">Encryption * Context</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public EncryptRequest withEncryptionContext(java.util.Map<String, String> encryptionContext) { setEncryptionContext(encryptionContext); return this; }