Interface EntitiesDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EntitiesDefinition.Builder,
,EntitiesDefinition> SdkBuilder<EntitiesDefinition.Builder,
,EntitiesDefinition> SdkPojo
- Enclosing class:
EntitiesDefinition
-
Method Summary
Modifier and TypeMethodDescriptionA Cedar JSON string representation of the entities needed to successfully evaluate an authorization request.entityList
(Collection<EntityItem> entityList) An array of entities that are needed to successfully evaluate an authorization request.entityList
(Consumer<EntityItem.Builder>... entityList) An array of entities that are needed to successfully evaluate an authorization request.entityList
(EntityItem... entityList) An array of entities 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
-
entityList
An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.
If you include multiple entities with the same
identifier
, only the last one is processed in the request.- Parameters:
entityList
- An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.If you include multiple entities with the same
identifier
, only the last one is processed in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityList
An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.
If you include multiple entities with the same
identifier
, only the last one is processed in the request.- Parameters:
entityList
- An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.If you include multiple entities with the same
identifier
, only the last one is processed in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entityList
An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.
If you include multiple entities with the same
identifier
, only the last one is processed in the request.EntityItem.Builder
avoiding the need to create one manually viaEntityItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toentityList(List<EntityItem>)
.- Parameters:
entityList
- a consumer that will call methods onEntityItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cedarJson
A Cedar JSON string representation of the entities needed to successfully evaluate an authorization request.
Example:
{"cedarJson": "[{\"uid\":{\"type\":\"Photo\",\"id\":\"VacationPhoto94.jpg\"},\"attrs\":{\"accessLevel\":\"public\"},\"parents\":[]}]"}
- Parameters:
cedarJson
- A Cedar JSON string representation of the entities needed to successfully evaluate an authorization request.Example:
{"cedarJson": "[{\"uid\":{\"type\":\"Photo\",\"id\":\"VacationPhoto94.jpg\"},\"attrs\":{\"accessLevel\":\"public\"},\"parents\":[]}]"}
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-