public static final class IdentityPoolRoleMapping.Builder
extends java.lang.Object
IdentityPoolRoleMapping
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
IdentityPoolRoleMapping |
build()
Builds the configured instance.
|
IdentityPoolRoleMapping.Builder |
providerUrl(IdentityPoolProviderUrl providerUrl)
Sets the value of
IdentityPoolRoleMapping.getProviderUrl() |
IdentityPoolRoleMapping.Builder |
resolveAmbiguousRoles(java.lang.Boolean resolveAmbiguousRoles)
Sets the value of
IdentityPoolRoleMapping.getResolveAmbiguousRoles() |
IdentityPoolRoleMapping.Builder |
rules(java.util.List<? extends RoleMappingRule> rules)
Sets the value of
IdentityPoolRoleMapping.getRules() |
IdentityPoolRoleMapping.Builder |
useToken(java.lang.Boolean useToken)
Sets the value of
IdentityPoolRoleMapping.getUseToken() |
public IdentityPoolRoleMapping.Builder providerUrl(IdentityPoolProviderUrl providerUrl)
IdentityPoolRoleMapping.getProviderUrl()
providerUrl
- The url of the provider of for which the role is mapped. This parameter is required.this
public IdentityPoolRoleMapping.Builder resolveAmbiguousRoles(java.lang.Boolean resolveAmbiguousRoles)
IdentityPoolRoleMapping.getResolveAmbiguousRoles()
resolveAmbiguousRoles
- Allow for role assumption when results of role mapping are ambiguous.this
public IdentityPoolRoleMapping.Builder rules(java.util.List<? extends RoleMappingRule> rules)
IdentityPoolRoleMapping.getRules()
rules
- The claim and value that must be matched in order to assume the role.
Required if useToken is falsethis
public IdentityPoolRoleMapping.Builder useToken(java.lang.Boolean useToken)
IdentityPoolRoleMapping.getUseToken()
useToken
- If true then mapped roles must be passed through the cognito:roles or cognito:preferred_role claims from identity provider.this
public IdentityPoolRoleMapping build()
IdentityPoolRoleMapping
java.lang.NullPointerException
- if any required attribute was not provided