Interface CreatePolicyResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>,SdkBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>,SdkPojo,SdkResponse.Builder,VerifiedPermissionsResponse.Builder
- Enclosing class:
- CreatePolicyResponse
public static interface CreatePolicyResponse.Builder extends VerifiedPermissionsResponse.Builder, SdkPojo, CopyableBuilder<CreatePolicyResponse.Builder,CreatePolicyResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreatePolicyResponse.BuildercreatedDate(Instant createdDate)The date and time the policy was originally created.CreatePolicyResponse.BuilderlastUpdatedDate(Instant lastUpdatedDate)The date and time the policy was last updated.CreatePolicyResponse.BuilderpolicyId(String policyId)The unique ID of the new policy.CreatePolicyResponse.BuilderpolicyStoreId(String policyStoreId)The ID of the policy store that contains the new policy.CreatePolicyResponse.BuilderpolicyType(String policyType)The policy type of the new policy.CreatePolicyResponse.BuilderpolicyType(PolicyType policyType)The policy type of the new policy.default CreatePolicyResponse.Builderprincipal(Consumer<EntityIdentifier.Builder> principal)The principal specified in the new policy's scope.CreatePolicyResponse.Builderprincipal(EntityIdentifier principal)The principal specified in the new policy's scope.default CreatePolicyResponse.Builderresource(Consumer<EntityIdentifier.Builder> resource)The resource specified in the new policy's scope.CreatePolicyResponse.Builderresource(EntityIdentifier resource)The resource specified in the new 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
CreatePolicyResponse.Builder policyStoreId(String policyStoreId)
The ID of the policy store that contains the new policy.
- Parameters:
policyStoreId- The ID of the policy store that contains the new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
CreatePolicyResponse.Builder policyId(String policyId)
The unique ID of the new policy.
- Parameters:
policyId- The unique ID of the new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyType
CreatePolicyResponse.Builder policyType(String policyType)
The policy type of the new policy.
- Parameters:
policyType- The policy type of the new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
policyType
CreatePolicyResponse.Builder policyType(PolicyType policyType)
The policy type of the new policy.
- Parameters:
policyType- The policy type of the new policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyType,PolicyType
-
principal
CreatePolicyResponse.Builder principal(EntityIdentifier principal)
The principal specified in the new policy's scope. This response element isn't present when
principalisn't specified in the policy content.- Parameters:
principal- The principal specified in the new policy's scope. This response element isn't present whenprincipalisn't specified in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
default CreatePolicyResponse.Builder principal(Consumer<EntityIdentifier.Builder> principal)
The principal specified in the new policy's scope. This response element isn't present when
This is a convenience method that creates an instance of theprincipalisn't specified 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
CreatePolicyResponse.Builder resource(EntityIdentifier resource)
The resource specified in the new policy's scope. This response element isn't present when the
resourceisn't specified in the policy content.- Parameters:
resource- The resource specified in the new policy's scope. This response element isn't present when theresourceisn't specified in the policy content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default CreatePolicyResponse.Builder resource(Consumer<EntityIdentifier.Builder> resource)
The resource specified in the new policy's scope. This response element isn't present when the
This is a convenience method that creates an instance of theresourceisn't specified 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)
-
createdDate
CreatePolicyResponse.Builder createdDate(Instant createdDate)
The date and time the policy was originally created.
- Parameters:
createdDate- The date and time the policy was originally created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
CreatePolicyResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)
The date and time the policy was last updated.
- Parameters:
lastUpdatedDate- The date and time the policy was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-