@Generated(value="software.amazon.awssdk:codegen") public class MappingRule extends Object implements StructuredPojo, 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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
MappingRuleMatchType |
matchType()
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
String |
matchTypeString()
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
String |
roleARN()
The role ARN.
|
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 matchTypeString()
.
Value
.MappingRuleMatchType
public String matchTypeString()
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 matchTypeString()
.
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.