@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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
A brief string that the claim must match, for example, "paid" or "yes".
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String claim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
public final 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.MappingRuleMatchTypepublic final 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.MappingRuleMatchTypepublic final String value()
A brief string that the claim must match, for example, "paid" or "yes".
public final String roleARN()
The role ARN.
public MappingRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MappingRule.Builder,MappingRule>public static MappingRule.Builder builder()
public static Class<? extends MappingRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.