Class CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment.MappingRuleProperty>
- Enclosing interface:
- CfnIdentityPoolRoleAttachment.MappingRuleProperty
@Stability(Stable)
public static final class CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment.MappingRuleProperty>
A builder for
CfnIdentityPoolRoleAttachment.MappingRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getClaim()
Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getMatchType()
Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getRoleArn()
Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
claim
@Stability(Stable) public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder claim(String claim) Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getClaim()
- Parameters:
claim
- The claim name that must be present in the token. This parameter is required. For example: "isAdmin" or "paid".- Returns:
this
-
matchType
@Stability(Stable) public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder matchType(String matchType) Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getMatchType()
- Parameters:
matchType
- The match condition that specifies how closely the claim value in the IdP token must matchValue
. This parameter is required. Valid values are:Equals
,Contains
,StartsWith
, andNotEqual
.- Returns:
this
-
roleArn
@Stability(Stable) public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder roleArn(String roleArn) Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the role. This parameter is required.- Returns:
this
-
value
@Stability(Stable) public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder value(String value) Sets the value ofCfnIdentityPoolRoleAttachment.MappingRuleProperty.getValue()
- Parameters:
value
- A brief string that the claim must match. This parameter is required. For example, "paid" or "yes".- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment.MappingRuleProperty>
- Returns:
- a new instance of
CfnIdentityPoolRoleAttachment.MappingRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-