@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KmsGrantConstraints extends Object implements Serializable, Cloneable, StructuredPojo
Use this structure to propose allowing cryptographic operations in the grant only when the operation request includes the specified encryption context. You can specify only one type of encryption context. An empty map is treated as not specified. For more information, see GrantConstraints.
Constructor and Description |
---|
KmsGrantConstraints() |
Modifier and Type | Method and Description |
---|---|
KmsGrantConstraints |
addEncryptionContextEqualsEntry(String key,
String value)
Add a single EncryptionContextEquals entry
|
KmsGrantConstraints |
addEncryptionContextSubsetEntry(String key,
String value)
Add a single EncryptionContextSubset entry
|
KmsGrantConstraints |
clearEncryptionContextEqualsEntries()
Removes all the entries added into EncryptionContextEquals.
|
KmsGrantConstraints |
clearEncryptionContextSubsetEntries()
Removes all the entries added into EncryptionContextSubset.
|
KmsGrantConstraints |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getEncryptionContextEquals()
A list of key-value pairs that must match the encryption context in the cryptographic
operation request.
|
Map<String,String> |
getEncryptionContextSubset()
A list of key-value pairs that must be included in the encryption context of the cryptographic
operation request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
A list of key-value pairs that must match the encryption context in the cryptographic
operation request.
|
void |
setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
A list of key-value pairs that must be included in the encryption context of the cryptographic
operation request.
|
String |
toString()
Returns a string representation of this object.
|
KmsGrantConstraints |
withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
A list of key-value pairs that must match the encryption context in the cryptographic
operation request.
|
KmsGrantConstraints |
withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
A list of key-value pairs that must be included in the encryption context of the cryptographic
operation request.
|
public Map<String,String> getEncryptionContextEquals()
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
public void setEncryptionContextEquals(Map<String,String> encryptionContextEquals)
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
encryptionContextEquals
- A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in
the request is the same as the encryption context specified in this constraint.public KmsGrantConstraints withEncryptionContextEquals(Map<String,String> encryptionContextEquals)
A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in the request is the same as the encryption context specified in this constraint.
encryptionContextEquals
- A list of key-value pairs that must match the encryption context in the cryptographic operation request. The grant allows the operation only when the encryption context in
the request is the same as the encryption context specified in this constraint.public KmsGrantConstraints addEncryptionContextEqualsEntry(String key, String value)
public KmsGrantConstraints clearEncryptionContextEqualsEntries()
public Map<String,String> getEncryptionContextSubset()
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
public void setEncryptionContextSubset(Map<String,String> encryptionContextSubset)
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
encryptionContextSubset
- A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the
encryption context in the request includes the key-value pairs specified in this constraint, although it
can include additional key-value pairs.public KmsGrantConstraints withEncryptionContextSubset(Map<String,String> encryptionContextSubset)
A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the encryption context in the request includes the key-value pairs specified in this constraint, although it can include additional key-value pairs.
encryptionContextSubset
- A list of key-value pairs that must be included in the encryption context of the cryptographic operation request. The grant allows the cryptographic operation only when the
encryption context in the request includes the key-value pairs specified in this constraint, although it
can include additional key-value pairs.public KmsGrantConstraints addEncryptionContextSubsetEntry(String key, String value)
public KmsGrantConstraints clearEncryptionContextSubsetEntries()
public String toString()
toString
in class Object
Object.toString()
public KmsGrantConstraints clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.