@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.RoleMappingType
public 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.RoleMappingType
public 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.RoleMappingType
public 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.RoleMappingType
public 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.RoleMappingType
public 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.
AmbiguousRoleResolutionType
public 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.
AmbiguousRoleResolutionType
public 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.
AmbiguousRoleResolutionType
public 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.
AmbiguousRoleResolutionType
public 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.
AmbiguousRoleResolutionType
public 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 Object
Object.toString()
public RoleMapping clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.