Class IdentityPoolRoleAttachmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.identitypool.alpha.IdentityPoolRoleAttachmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<IdentityPoolRoleAttachmentProps>
- Enclosing interface:
- IdentityPoolRoleAttachmentProps
@Stability(Experimental)
public static final class IdentityPoolRoleAttachmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<IdentityPoolRoleAttachmentProps>
A builder for
IdentityPoolRoleAttachmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticatedRole
(IRole authenticatedRole) Sets the value ofIdentityPoolRoleAttachmentProps.getAuthenticatedRole()
build()
Builds the configured instance.identityPool
(IIdentityPool identityPool) Sets the value ofIdentityPoolRoleAttachmentProps.getIdentityPool()
roleMappings
(List<? extends IdentityPoolRoleMapping> roleMappings) Sets the value ofIdentityPoolRoleAttachmentProps.getRoleMappings()
unauthenticatedRole
(IRole unauthenticatedRole) Sets the value ofIdentityPoolRoleAttachmentProps.getUnauthenticatedRole()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identityPool
@Stability(Experimental) public IdentityPoolRoleAttachmentProps.Builder identityPool(IIdentityPool identityPool) Sets the value ofIdentityPoolRoleAttachmentProps.getIdentityPool()
- Parameters:
identityPool
- ID of the Attachment's underlying Identity Pool. This parameter is required.- Returns:
this
-
authenticatedRole
@Stability(Experimental) public IdentityPoolRoleAttachmentProps.Builder authenticatedRole(IRole authenticatedRole) Sets the value ofIdentityPoolRoleAttachmentProps.getAuthenticatedRole()
- Parameters:
authenticatedRole
- Default authenticated (User) Role.- Returns:
this
-
roleMappings
@Stability(Experimental) public IdentityPoolRoleAttachmentProps.Builder roleMappings(List<? extends IdentityPoolRoleMapping> roleMappings) Sets the value ofIdentityPoolRoleAttachmentProps.getRoleMappings()
- Parameters:
roleMappings
- Rules for mapping roles to users.- Returns:
this
-
unauthenticatedRole
@Stability(Experimental) public IdentityPoolRoleAttachmentProps.Builder unauthenticatedRole(IRole unauthenticatedRole) Sets the value ofIdentityPoolRoleAttachmentProps.getUnauthenticatedRole()
- Parameters:
unauthenticatedRole
- Default unauthenticated (Guest) Role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IdentityPoolRoleAttachmentProps>
- Returns:
- a new instance of
IdentityPoolRoleAttachmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-