@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MappingRule extends Object implements Serializable, Cloneable, StructuredPojo
A rule that maps a claim name, a claim value, and a match type to a role ARN.
Constructor and Description |
---|
MappingRule() |
Modifier and Type | Method and Description |
---|---|
MappingRule |
clone() |
boolean |
equals(Object obj) |
String |
getClaim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
|
String |
getMatchType()
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
String |
getRoleARN()
The role ARN.
|
String |
getValue()
A brief string that the claim must match, for example, "paid" or "yes".
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
|
void |
setMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
void |
setMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
void |
setRoleARN(String roleARN)
The role ARN.
|
void |
setValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
|
String |
toString()
Returns a string representation of this object.
|
MappingRule |
withClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
|
MappingRule |
withMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
MappingRule |
withMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP token must match
Value . |
MappingRule |
withRoleARN(String roleARN)
The role ARN.
|
MappingRule |
withValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
|
public void setClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
claim
- The claim name that must be present in the token, for example, "isAdmin" or "paid".public String getClaim()
The claim name that must be present in the token, for example, "isAdmin" or "paid".
public MappingRule withClaim(String claim)
The claim name that must be present in the token, for example, "isAdmin" or "paid".
claim
- The claim name that must be present in the token, for example, "isAdmin" or "paid".public void setMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP token must match Value
.
matchType
- The match condition that specifies how closely the claim value in the IdP token must match
Value
.MappingRuleMatchType
public String getMatchType()
The match condition that specifies how closely the claim value in the IdP token must match Value
.
Value
.MappingRuleMatchType
public MappingRule withMatchType(String matchType)
The match condition that specifies how closely the claim value in the IdP token must match Value
.
matchType
- The match condition that specifies how closely the claim value in the IdP token must match
Value
.MappingRuleMatchType
public void setMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP token must match Value
.
matchType
- The match condition that specifies how closely the claim value in the IdP token must match
Value
.MappingRuleMatchType
public MappingRule withMatchType(MappingRuleMatchType matchType)
The match condition that specifies how closely the claim value in the IdP token must match Value
.
matchType
- The match condition that specifies how closely the claim value in the IdP token must match
Value
.MappingRuleMatchType
public void setValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
value
- A brief string that the claim must match, for example, "paid" or "yes".public String getValue()
A brief string that the claim must match, for example, "paid" or "yes".
public MappingRule withValue(String value)
A brief string that the claim must match, for example, "paid" or "yes".
value
- A brief string that the claim must match, for example, "paid" or "yes".public void setRoleARN(String roleARN)
The role ARN.
roleARN
- The role ARN.public String getRoleARN()
The role ARN.
public MappingRule withRoleARN(String roleARN)
The role ARN.
roleARN
- The role ARN.public String toString()
toString
in class Object
Object.toString()
public MappingRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.