Interface GetPolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>,SdkBuilder<GetPolicyResponse.Builder,GetPolicyResponse>,SdkPojo,SdkResponse.Builder,VerifiedPermissionsResponse.Builder
- Enclosing class:
- GetPolicyResponse
public static interface GetPolicyResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<GetPolicyResponse.Builder,GetPolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetPolicyResponse.Builderactions(Collection<ActionIdentifier> actions)The action that a policy permits or forbids.GetPolicyResponse.Builderactions(Consumer<ActionIdentifier.Builder>... actions)The action that a policy permits or forbids.GetPolicyResponse.Builderactions(ActionIdentifier... actions)The action that a policy permits or forbids.GetPolicyResponse.BuildercreatedDate(Instant createdDate)The date and time that the policy was originally created.default GetPolicyResponse.Builderdefinition(Consumer<PolicyDefinitionDetail.Builder> definition)The definition of the requested policy.GetPolicyResponse.Builderdefinition(PolicyDefinitionDetail definition)The definition of the requested policy.GetPolicyResponse.Buildereffect(String effect)The effect of the decision that a policy returns to an authorization request.GetPolicyResponse.Buildereffect(PolicyEffect effect)The effect of the decision that a policy returns to an authorization request.GetPolicyResponse.BuilderlastUpdatedDate(Instant lastUpdatedDate)The date and time that the policy was last updated.GetPolicyResponse.BuilderpolicyId(String policyId)The unique ID of the policy that you want information about.GetPolicyResponse.BuilderpolicyStoreId(String policyStoreId)The ID of the policy store that contains the policy that you want information about.GetPolicyResponse.BuilderpolicyType(String policyType)The type of the policy.GetPolicyResponse.BuilderpolicyType(PolicyType policyType)The type of the policy.default GetPolicyResponse.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The principal specified in the policy's scope.GetPolicyResponse.Builderprincipal(EntityIdentifier principal)The principal specified in the policy's scope.default GetPolicyResponse.Builderresource(Consumer<EntityIdentifier.Builder> resource)The resource specified in the policy's scope.GetPolicyResponse.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
GetPolicyResponse.Builder policyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
- Parameters:
policyStoreId- The ID of the policy store that contains the policy that you want information about.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
GetPolicyResponse.Builder policyId(String policyId)
The unique ID of the policy that you want information about.
- Parameters:
policyId- The unique ID of the policy that you want information about.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyType
GetPolicyResponse.Builder policyType(String policyType)
The type of the policy.
- Parameters:
policyType- The type of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
policyType
GetPolicyResponse.Builder policyType(PolicyType policyType)
The type of the policy.
- Parameters:
policyType- The type of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
principal
GetPolicyResponse.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 GetPolicyResponse.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
GetPolicyResponse.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 GetPolicyResponse.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
GetPolicyResponse.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
GetPolicyResponse.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
GetPolicyResponse.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
GetPolicyResponse.Builder definition(PolicyDefinitionDetail definition)
The definition of the requested policy.
- Parameters:
definition- The definition of the requested policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
default GetPolicyResponse.Builder definition(Consumer<PolicyDefinitionDetail.Builder> definition)
The definition of the requested policy.
This is a convenience method that creates an instance of thePolicyDefinitionDetail.Builderavoiding the need to create one manually viaPolicyDefinitionDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(PolicyDefinitionDetail).- Parameters:
definition- a consumer that will call methods onPolicyDefinitionDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
definition(PolicyDefinitionDetail)
-
createdDate
GetPolicyResponse.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
GetPolicyResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)
The date and time that the policy was last updated.
- Parameters:
lastUpdatedDate- The date and time that the policy was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effect
GetPolicyResponse.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
GetPolicyResponse.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
-
-