Interface PolicyItem.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyItem.Builder,PolicyItem>,SdkBuilder<PolicyItem.Builder,PolicyItem>,SdkPojo
- Enclosing class:
- PolicyItem
public static interface PolicyItem.Builder extends SdkPojo, CopyableBuilder<PolicyItem.Builder,PolicyItem>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PolicyItem.Builderactions(Collection<ActionIdentifier> actions)The action that a policy permits or forbids.PolicyItem.Builderactions(Consumer<ActionIdentifier.Builder>... actions)The action that a policy permits or forbids.PolicyItem.Builderactions(ActionIdentifier... actions)The action that a policy permits or forbids.PolicyItem.BuildercreatedDate(Instant createdDate)The date and time the policy was created.default PolicyItem.Builderdefinition(Consumer<PolicyDefinitionItem.Builder> definition)The policy definition of an item in the list of policies returned.PolicyItem.Builderdefinition(PolicyDefinitionItem definition)The policy definition of an item in the list of policies returned.PolicyItem.Buildereffect(String effect)The effect of the decision that a policy returns to an authorization request.PolicyItem.Buildereffect(PolicyEffect effect)The effect of the decision that a policy returns to an authorization request.PolicyItem.BuilderlastUpdatedDate(Instant lastUpdatedDate)The date and time the policy was most recently updated.PolicyItem.BuilderpolicyId(String policyId)The identifier of the policy you want information about.PolicyItem.BuilderpolicyStoreId(String policyStoreId)The identifier of the PolicyStore where the policy you want information about is stored.PolicyItem.BuilderpolicyType(String policyType)The type of the policy.PolicyItem.BuilderpolicyType(PolicyType policyType)The type of the policy.default PolicyItem.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The principal associated with the policy.PolicyItem.Builderprincipal(EntityIdentifier principal)The principal associated with the policy.default PolicyItem.Builderresource(Consumer<EntityIdentifier.Builder> resource)The resource associated with the policy.PolicyItem.Builderresource(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, sdkFields
-
-
-
-
Method Detail
-
policyStoreId
PolicyItem.Builder policyStoreId(String policyStoreId)
The identifier of the PolicyStore where the policy you want information about is stored.
- Parameters:
policyStoreId- The identifier of the PolicyStore 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
PolicyItem.Builder policyId(String 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
PolicyItem.Builder policyType(String policyType)
The type of the policy. This is one of the following values:
-
static -
templateLinked
- Parameters:
policyType- The type of the policy. This is one of the following values:-
static -
templateLinked
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
-
policyType
PolicyItem.Builder policyType(PolicyType policyType)
The type of the policy. This is one of the following values:
-
static -
templateLinked
- Parameters:
policyType- The type of the policy. This is one of the following values:-
static -
templateLinked
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
-
principal
PolicyItem.Builder principal(EntityIdentifier 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
default PolicyItem.Builder principal(Consumer<EntityIdentifier.Builder> principal)
The principal associated with the policy.
This is a convenience method that creates an instance of theEntityIdentifier.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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:
principal(EntityIdentifier)
-
resource
PolicyItem.Builder resource(EntityIdentifier 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
default PolicyItem.Builder resource(Consumer<EntityIdentifier.Builder> resource)
The resource associated with the policy.
This is a convenience method that creates an instance of theEntityIdentifier.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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:
resource(EntityIdentifier)
-
actions
PolicyItem.Builder actions(Collection<ActionIdentifier> 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
PolicyItem.Builder actions(ActionIdentifier... 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
PolicyItem.Builder actions(Consumer<ActionIdentifier.Builder>... 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.Builderavoiding the need to create one manually viaActionIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actions(List.) - 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:
#actions(java.util.Collection)
-
definition
PolicyItem.Builder definition(PolicyDefinitionItem 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
default PolicyItem.Builder definition(Consumer<PolicyDefinitionItem.Builder> definition)
The policy definition of an item in the list of policies returned.
This is a convenience method that creates an instance of thePolicyDefinitionItem.Builderavoiding the need to create one manually viaPolicyDefinitionItem.builder().When the
Consumercompletes,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:
definition(PolicyDefinitionItem)
-
createdDate
PolicyItem.Builder createdDate(Instant 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
PolicyItem.Builder lastUpdatedDate(Instant 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
PolicyItem.Builder effect(String 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:
PolicyEffect,PolicyEffect
-
effect
PolicyItem.Builder effect(PolicyEffect 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:
PolicyEffect,PolicyEffect
-
-