@Generated(value="software.amazon.awssdk:codegen") public final class MappingRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MappingRule.Builder,MappingRule>
A rule that maps a claim name, a claim value, and a match type to a role ARN.
Modifier and Type | Class and Description |
---|---|
static interface |
MappingRule.Builder |
Modifier and Type | Method and Description |
---|---|
static MappingRule.Builder |
builder() |
String |
claim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
MappingRuleMatchType |
matchType()
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
String |
matchTypeAsString()
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
String |
roleARN()
The role ARN.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MappingRule.Builder> |
serializableBuilderClass() |
MappingRule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
A brief string that the claim must match, for example, "paid" or "yes".
|
copy
public String claim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
public MappingRuleMatchType matchType()
The match condition that specifies how closely the claim value in the IdP token must match Value
.
If the service returns an enum value that is not available in the current SDK version, matchType
will
return MappingRuleMatchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from matchTypeAsString()
.
Value
.MappingRuleMatchType
public String matchTypeAsString()
The match condition that specifies how closely the claim value in the IdP token must match Value
.
If the service returns an enum value that is not available in the current SDK version, matchType
will
return MappingRuleMatchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from matchTypeAsString()
.
Value
.MappingRuleMatchType
public String value()
A brief string that the claim must match, for example, "paid" or "yes".
public String roleARN()
The role ARN.
public MappingRule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MappingRule.Builder,MappingRule>
public static MappingRule.Builder builder()
public static Class<? extends MappingRule.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.