Interface UpdatePolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdatePolicyResponse.Builder,UpdatePolicyResponse>,SdkBuilder<UpdatePolicyResponse.Builder,UpdatePolicyResponse>,SdkPojo,SdkResponse.Builder,VerifiedPermissionsResponse.Builder
- Enclosing class:
- UpdatePolicyResponse
public static interface UpdatePolicyResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<UpdatePolicyResponse.Builder,UpdatePolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdatePolicyResponse.Builderactions(Collection<ActionIdentifier> actions)The action that a policy permits or forbids.UpdatePolicyResponse.Builderactions(Consumer<ActionIdentifier.Builder>... actions)The action that a policy permits or forbids.UpdatePolicyResponse.Builderactions(ActionIdentifier... actions)The action that a policy permits or forbids.UpdatePolicyResponse.BuildercreatedDate(Instant createdDate)The date and time that the policy was originally created.UpdatePolicyResponse.Buildereffect(String effect)The effect of the decision that a policy returns to an authorization request.UpdatePolicyResponse.Buildereffect(PolicyEffect effect)The effect of the decision that a policy returns to an authorization request.UpdatePolicyResponse.BuilderlastUpdatedDate(Instant lastUpdatedDate)The date and time that the policy was most recently updated.UpdatePolicyResponse.BuilderpolicyId(String policyId)The ID of the policy that was updated.UpdatePolicyResponse.BuilderpolicyStoreId(String policyStoreId)The ID of the policy store that contains the policy that was updated.UpdatePolicyResponse.BuilderpolicyType(String policyType)The type of the policy that was updated.UpdatePolicyResponse.BuilderpolicyType(PolicyType policyType)The type of the policy that was updated.default UpdatePolicyResponse.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The principal specified in the policy's scope.UpdatePolicyResponse.Builderprincipal(EntityIdentifier principal)The principal specified in the policy's scope.default UpdatePolicyResponse.Builderresource(Consumer<EntityIdentifier.Builder> resource)The resource specified in the policy's scope.UpdatePolicyResponse.Builderresource(EntityIdentifier resource)The resource specified in the policy's scope.-
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
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Methods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsResponse.Builder
build, responseMetadata, responseMetadata
-
-
-
-
Method Detail
-
policyStoreId
UpdatePolicyResponse.Builder policyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that was updated.
- Parameters:
policyStoreId- The ID of the policy store that contains the policy that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
UpdatePolicyResponse.Builder policyId(String policyId)
The ID of the policy that was updated.
- Parameters:
policyId- The ID of the policy that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyType
UpdatePolicyResponse.Builder policyType(String policyType)
The type of the policy that was updated.
- Parameters:
policyType- The type of the policy that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
policyType
UpdatePolicyResponse.Builder policyType(PolicyType policyType)
The type of the policy that was updated.
- Parameters:
policyType- The type of the policy that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
principal
UpdatePolicyResponse.Builder principal(EntityIdentifier principal)
The principal specified in the policy's scope. This element isn't included in the response when
Principalisn't present in the policy content.- Parameters:
principal- The principal specified in the policy's scope. This element isn't included in the response whenPrincipalisn't present in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default UpdatePolicyResponse.Builder principal(Consumer<EntityIdentifier.Builder> principal)
The principal specified in the policy's scope. This element isn't included in the response when
This is a convenience method that creates an instance of thePrincipalisn't present in the policy content.EntityIdentifier.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
UpdatePolicyResponse.Builder resource(EntityIdentifier resource)
The resource specified in the policy's scope. This element isn't included in the response when
Resourceisn't present in the policy content.- Parameters:
resource- The resource specified in the policy's scope. This element isn't included in the response whenResourceisn't present in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default UpdatePolicyResponse.Builder resource(Consumer<EntityIdentifier.Builder> resource)
The resource specified in the policy's scope. This element isn't included in the response when
This is a convenience method that creates an instance of theResourceisn't present in the policy content.EntityIdentifier.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
UpdatePolicyResponse.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
UpdatePolicyResponse.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
UpdatePolicyResponse.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)
-
createdDate
UpdatePolicyResponse.Builder createdDate(Instant createdDate)
The date and time that the policy was originally created.
- Parameters:
createdDate- The date and time that the policy was originally created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
UpdatePolicyResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)
The date and time that the policy was most recently updated.
- Parameters:
lastUpdatedDate- The date and time that the policy was most recently updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effect
UpdatePolicyResponse.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
UpdatePolicyResponse.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
-
-