Interface PolicyItem.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyItem.Builder,
,PolicyItem> SdkBuilder<PolicyItem.Builder,
,PolicyItem> SdkPojo
- Enclosing class:
PolicyItem
-
Method Summary
Modifier and TypeMethodDescriptionactions
(Collection<ActionIdentifier> actions) The action that a policy permits or forbids.actions
(Consumer<ActionIdentifier.Builder>... actions) The action that a policy permits or forbids.actions
(ActionIdentifier... actions) The action that a policy permits or forbids.createdDate
(Instant createdDate) The date and time the policy was created.default PolicyItem.Builder
definition
(Consumer<PolicyDefinitionItem.Builder> definition) The policy definition of an item in the list of policies returned.definition
(PolicyDefinitionItem definition) The policy definition of an item in the list of policies returned.The effect of the decision that a policy returns to an authorization request.effect
(PolicyEffect effect) The effect of the decision that a policy returns to an authorization request.lastUpdatedDate
(Instant lastUpdatedDate) The date and time the policy was most recently updated.The identifier of the policy you want information about.policyStoreId
(String policyStoreId) The identifier of the policy store where the policy you want information about is stored.policyType
(String policyType) The type of the policy.policyType
(PolicyType policyType) The type of the policy.default PolicyItem.Builder
principal
(Consumer<EntityIdentifier.Builder> principal) The principal associated with the policy.principal
(EntityIdentifier principal) The principal associated with the policy.default PolicyItem.Builder
resource
(Consumer<EntityIdentifier.Builder> resource) The resource associated with the policy.resource
(EntityIdentifier resource) The resource associated with the policy.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
-
policyStoreId
The identifier of the policy store where the policy you want information about is stored.
- Parameters:
policyStoreId
- The identifier of the policy store where the policy you want information about is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
The identifier of the policy you want information about.
- Parameters:
policyId
- The identifier of the policy you want information about.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyType
The type of the policy. This is one of the following values:
-
STATIC
-
TEMPLATE_LINKED
- Parameters:
policyType
- The type of the policy. This is one of the following values:-
STATIC
-
TEMPLATE_LINKED
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
policyType
The type of the policy. This is one of the following values:
-
STATIC
-
TEMPLATE_LINKED
- Parameters:
policyType
- The type of the policy. This is one of the following values:-
STATIC
-
TEMPLATE_LINKED
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
principal
The principal associated with the policy.
- Parameters:
principal
- The principal associated with the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
The principal associated with the policy.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(EntityIdentifier)
.- Parameters:
principal
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resource
The resource associated with the policy.
- Parameters:
resource
- The resource associated with the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource associated with the policy.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(EntityIdentifier)
.- Parameters:
resource
- a consumer that will call methods onEntityIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actions
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.- Parameters:
actions
- The action that a policy permits or forbids. For example,{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The action that a policy permits or forbids. For example,
{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.- Parameters:
actions
- The action that a policy permits or forbids. For example,{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
The action that a policy permits or forbids. For example,
This is a convenience method that creates an instance of the{"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}
.ActionIdentifier.Builder
avoiding the need to create one manually viaActionIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(List<ActionIdentifier>)
.- Parameters:
actions
- a consumer that will call methods onActionIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
definition
The policy definition of an item in the list of policies returned.
- Parameters:
definition
- The policy definition of an item in the list of policies returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The policy definition of an item in the list of policies returned.
This is a convenience method that creates an instance of thePolicyDefinitionItem.Builder
avoiding the need to create one manually viaPolicyDefinitionItem.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefinition(PolicyDefinitionItem)
.- Parameters:
definition
- a consumer that will call methods onPolicyDefinitionItem.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdDate
The date and time the policy was created.
- Parameters:
createdDate
- The date and time the policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
The date and time the policy was most recently updated.
- Parameters:
lastUpdatedDate
- The date and time the policy was most recently updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effect
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.- Parameters:
effect
- The effect of the decision that a policy returns to an authorization request. For example,"effect": "Permit"
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
effect
The effect of the decision that a policy returns to an authorization request. For example,
"effect": "Permit"
.- Parameters:
effect
- The effect of the decision that a policy returns to an authorization request. For example,"effect": "Permit"
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-