Interface ContextDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContextDefinition.Builder,
,ContextDefinition> SdkBuilder<ContextDefinition.Builder,
,ContextDefinition> SdkPojo
- Enclosing class:
ContextDefinition
@Mutable
@NotThreadSafe
public static interface ContextDefinition.Builder
extends SdkPojo, CopyableBuilder<ContextDefinition.Builder,ContextDefinition>
-
Method Summary
Modifier and TypeMethodDescriptionA Cedar JSON string representation of the context needed to successfully evaluate an authorization request.contextMap
(Map<String, AttributeValue> contextMap) An list of attributes that are needed to successfully evaluate an authorization request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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}}
- Parameters:
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}}
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cedarJson
A Cedar JSON string representation of the context needed to successfully evaluate an authorization request.
Example:
{"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }
- Parameters:
cedarJson
- A Cedar JSON string representation of the context needed to successfully evaluate an authorization request.Example:
{"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-