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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContextDefinition.BuildercedarJson(String cedarJson)A Cedar JSON string representation of the context needed to successfully evaluate an authorization request.ContextDefinition.BuildercontextMap(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 Detail
-
contextMap
ContextDefinition.Builder contextMap(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}}- 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
ContextDefinition.Builder cedarJson(String 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.
-
-