@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RoleMapping extends Object implements Serializable, Cloneable, StructuredPojo
A role mapping.
| Constructor and Description |
|---|
RoleMapping() |
| Modifier and Type | Method and Description |
|---|---|
RoleMapping |
clone() |
boolean |
equals(Object obj) |
String |
getAmbiguousRoleResolution()
If you specify Token or Rules as the
Type, AmbiguousRoleResolution is required. |
RulesConfigurationType |
getRulesConfiguration()
The rules to be used for mapping users to roles.
|
String |
getType()
The role mapping type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the
Type, AmbiguousRoleResolution is required. |
void |
setAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the
Type, AmbiguousRoleResolution is required. |
void |
setRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
|
void |
setType(RoleMappingType type)
The role mapping type.
|
void |
setType(String type)
The role mapping type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RoleMapping |
withAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the
Type, AmbiguousRoleResolution is required. |
RoleMapping |
withAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the
Type, AmbiguousRoleResolution is required. |
RoleMapping |
withRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
|
RoleMapping |
withType(RoleMappingType type)
The role mapping type.
|
RoleMapping |
withType(String type)
The role mapping type.
|
public void setType(String type)
The role mapping type. Token will use cognito:roles and cognito:preferred_role claims
from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
type - The role mapping type. Token will use cognito:roles and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims
from the token to map to a role.RoleMappingTypepublic String getType()
The role mapping type. Token will use cognito:roles and cognito:preferred_role claims
from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
cognito:roles and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match
claims from the token to map to a role.RoleMappingTypepublic RoleMapping withType(String type)
The role mapping type. Token will use cognito:roles and cognito:preferred_role claims
from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
type - The role mapping type. Token will use cognito:roles and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims
from the token to map to a role.RoleMappingTypepublic void setType(RoleMappingType type)
The role mapping type. Token will use cognito:roles and cognito:preferred_role claims
from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
type - The role mapping type. Token will use cognito:roles and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims
from the token to map to a role.RoleMappingTypepublic RoleMapping withType(RoleMappingType type)
The role mapping type. Token will use cognito:roles and cognito:preferred_role claims
from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the
token to map to a role.
type - The role mapping type. Token will use cognito:roles and cognito:preferred_role
claims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims
from the token to map to a role.RoleMappingTypepublic void setAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Specifies the action to be taken if either no rules match the claim value for the Rules type, or
there is no cognito:preferred_role claim and there are multiple cognito:roles matches
for the Token type.
ambiguousRoleResolution - If you specify Token or Rules as the Type, AmbiguousRoleResolution is
required.
Specifies the action to be taken if either no rules match the claim value for the Rules type,
or there is no cognito:preferred_role claim and there are multiple cognito:roles
matches for the Token type.
AmbiguousRoleResolutionTypepublic String getAmbiguousRoleResolution()
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Specifies the action to be taken if either no rules match the claim value for the Rules type, or
there is no cognito:preferred_role claim and there are multiple cognito:roles matches
for the Token type.
Type, AmbiguousRoleResolution is
required.
Specifies the action to be taken if either no rules match the claim value for the Rules
type, or there is no cognito:preferred_role claim and there are multiple
cognito:roles matches for the Token type.
AmbiguousRoleResolutionTypepublic RoleMapping withAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Specifies the action to be taken if either no rules match the claim value for the Rules type, or
there is no cognito:preferred_role claim and there are multiple cognito:roles matches
for the Token type.
ambiguousRoleResolution - If you specify Token or Rules as the Type, AmbiguousRoleResolution is
required.
Specifies the action to be taken if either no rules match the claim value for the Rules type,
or there is no cognito:preferred_role claim and there are multiple cognito:roles
matches for the Token type.
AmbiguousRoleResolutionTypepublic void setAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Specifies the action to be taken if either no rules match the claim value for the Rules type, or
there is no cognito:preferred_role claim and there are multiple cognito:roles matches
for the Token type.
ambiguousRoleResolution - If you specify Token or Rules as the Type, AmbiguousRoleResolution is
required.
Specifies the action to be taken if either no rules match the claim value for the Rules type,
or there is no cognito:preferred_role claim and there are multiple cognito:roles
matches for the Token type.
AmbiguousRoleResolutionTypepublic RoleMapping withAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Specifies the action to be taken if either no rules match the claim value for the Rules type, or
there is no cognito:preferred_role claim and there are multiple cognito:roles matches
for the Token type.
ambiguousRoleResolution - If you specify Token or Rules as the Type, AmbiguousRoleResolution is
required.
Specifies the action to be taken if either no rules match the claim value for the Rules type,
or there is no cognito:preferred_role claim and there are multiple cognito:roles
matches for the Token type.
AmbiguousRoleResolutionTypepublic void setRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is required.
rulesConfiguration - The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is required.
public RulesConfigurationType getRulesConfiguration()
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is required.
If you specify Rules as the role mapping type, RulesConfiguration is required.
public RoleMapping withRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is required.
rulesConfiguration - The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration is required.
public String toString()
toString in class ObjectObject.toString()public RoleMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.