public static final class CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder
extends java.lang.Object
CfnIdentityPoolRoleAttachment.MappingRuleProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnIdentityPoolRoleAttachment.MappingRuleProperty |
build()
Builds the configured instance.
|
CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder |
claim(java.lang.String claim)
Sets the value of
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getClaim() |
CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder |
matchType(java.lang.String matchType)
Sets the value of
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getMatchType() |
CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder |
roleArn(java.lang.String roleArn)
Sets the value of
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getRoleArn() |
CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder |
value(java.lang.String value)
Sets the value of
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getValue() |
public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder claim(java.lang.String claim)
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getClaim()
claim
- The claim name that must be present in the token. This parameter is required.
For example: "isAdmin" or "paid".this
public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder matchType(java.lang.String matchType)
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getMatchType()
matchType
- The match condition that specifies how closely the claim value in the IdP token must match `Value` . This parameter is required.
Valid values are: Equals
, Contains
, StartsWith
, and NotEqual
.this
public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder roleArn(java.lang.String roleArn)
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getRoleArn()
roleArn
- The Amazon Resource Name (ARN) of the role. This parameter is required.this
public CfnIdentityPoolRoleAttachment.MappingRuleProperty.Builder value(java.lang.String value)
CfnIdentityPoolRoleAttachment.MappingRuleProperty.getValue()
value
- A brief string that the claim must match. This parameter is required.
For example, "paid" or "yes".this
public CfnIdentityPoolRoleAttachment.MappingRuleProperty build()
CfnIdentityPoolRoleAttachment.MappingRuleProperty
java.lang.NullPointerException
- if any required attribute was not provided