Interface GetPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetPolicyResponse.Builder,
,GetPolicyResponse> SdkBuilder<GetPolicyResponse.Builder,
,GetPolicyResponse> SdkPojo
,SdkResponse.Builder
,VerifiedPermissionsResponse.Builder
- Enclosing class:
GetPolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreatedDate
(Instant createdDate) The date and time that the policy was originally created.default GetPolicyResponse.Builder
definition
(Consumer<PolicyDefinitionDetail.Builder> definition) The definition of the requested policy.definition
(PolicyDefinitionDetail definition) The definition of the requested policy.lastUpdatedDate
(Instant lastUpdatedDate) The date and time that the policy was last updated.The unique ID of the policy that you want information about.policyStoreId
(String policyStoreId) The ID of the policy store that contains the policy that you want information about.policyType
(String policyType) The type of the policy.policyType
(PolicyType policyType) The type of the policy.default GetPolicyResponse.Builder
principal
(Consumer<EntityIdentifier.Builder> principal) The principal specified in the policy's scope.principal
(EntityIdentifier principal) The principal specified in the policy's scope.default GetPolicyResponse.Builder
resource
(Consumer<EntityIdentifier.Builder> resource) The resource specified in the policy's scope.resource
(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 Details
-
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
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
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
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:
-
principal
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.- Parameters:
principal
- The principal specified in the policy's scope. This element isn't included in the response whenPrincipal
isn't present in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 thePrincipal
isn't present in the policy content.EntityIdentifier.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 specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.- Parameters:
resource
- The resource specified in the policy's scope. This element isn't included in the response whenResource
isn't present in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 theResource
isn't present in the policy content.EntityIdentifier.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:
-
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
The definition of the requested policy.
This is a convenience method that creates an instance of thePolicyDefinitionDetail.Builder
avoiding the need to create one manually viaPolicyDefinitionDetail.builder()
.When the
Consumer
completes,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:
-
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
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.
-