@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContextDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Contains additional details about the context of the request. Verified Permissions evaluates this information in an
authorization request as part of the when
and unless
clauses in a policy.
This data type is used as a request parameter for the IsAuthorized, BatchIsAuthorized , and IsAuthorizedWithToken operations.
Example: "context":{"contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}}
Constructor and Description |
---|
ContextDefinition() |
Modifier and Type | Method and Description |
---|---|
ContextDefinition |
addContextMapEntry(String key,
AttributeValue value)
Add a single ContextMap entry
|
ContextDefinition |
clearContextMapEntries()
Removes all the entries added into ContextMap.
|
ContextDefinition |
clone() |
boolean |
equals(Object obj) |
Map<String,AttributeValue> |
getContextMap()
An list of attributes that are needed to successfully evaluate an authorization request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContextMap(Map<String,AttributeValue> contextMap)
An list of attributes that are needed to successfully evaluate an authorization request.
|
String |
toString()
Returns a string representation of this object.
|
ContextDefinition |
withContextMap(Map<String,AttributeValue> contextMap)
An list of attributes that are needed to successfully evaluate an authorization request.
|
public Map<String,AttributeValue> getContextMap()
An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
public void setContextMap(Map<String,AttributeValue> contextMap)
An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
contextMap
- An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in
this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
public ContextDefinition withContextMap(Map<String,AttributeValue> contextMap)
An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
contextMap
- An list of attributes that are needed to successfully evaluate an authorization request. Each attribute in
this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
public ContextDefinition addContextMapEntry(String key, AttributeValue value)
public ContextDefinition clearContextMapEntries()
public String toString()
toString
in class Object
Object.toString()
public ContextDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.