@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImpersonationRule extends Object implements Serializable, Cloneable, StructuredPojo
The rules for the given impersonation role.
Constructor and Description |
---|
ImpersonationRule() |
Modifier and Type | Method and Description |
---|---|
ImpersonationRule |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The rule description.
|
String |
getEffect()
The effect of the rule when it matches the input.
|
String |
getImpersonationRuleId()
The identifier of the rule.
|
String |
getName()
The rule name.
|
List<String> |
getNotTargetUsers()
A list of user IDs that don't match the rule.
|
List<String> |
getTargetUsers()
A list of user IDs that match the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The rule description.
|
void |
setEffect(String effect)
The effect of the rule when it matches the input.
|
void |
setImpersonationRuleId(String impersonationRuleId)
The identifier of the rule.
|
void |
setName(String name)
The rule name.
|
void |
setNotTargetUsers(Collection<String> notTargetUsers)
A list of user IDs that don't match the rule.
|
void |
setTargetUsers(Collection<String> targetUsers)
A list of user IDs that match the rule.
|
String |
toString()
Returns a string representation of this object.
|
ImpersonationRule |
withDescription(String description)
The rule description.
|
ImpersonationRule |
withEffect(AccessEffect effect)
The effect of the rule when it matches the input.
|
ImpersonationRule |
withEffect(String effect)
The effect of the rule when it matches the input.
|
ImpersonationRule |
withImpersonationRuleId(String impersonationRuleId)
The identifier of the rule.
|
ImpersonationRule |
withName(String name)
The rule name.
|
ImpersonationRule |
withNotTargetUsers(Collection<String> notTargetUsers)
A list of user IDs that don't match the rule.
|
ImpersonationRule |
withNotTargetUsers(String... notTargetUsers)
A list of user IDs that don't match the rule.
|
ImpersonationRule |
withTargetUsers(Collection<String> targetUsers)
A list of user IDs that match the rule.
|
ImpersonationRule |
withTargetUsers(String... targetUsers)
A list of user IDs that match the rule.
|
public void setImpersonationRuleId(String impersonationRuleId)
The identifier of the rule.
impersonationRuleId
- The identifier of the rule.public String getImpersonationRuleId()
The identifier of the rule.
public ImpersonationRule withImpersonationRuleId(String impersonationRuleId)
The identifier of the rule.
impersonationRuleId
- The identifier of the rule.public void setName(String name)
The rule name.
name
- The rule name.public String getName()
The rule name.
public ImpersonationRule withName(String name)
The rule name.
name
- The rule name.public void setDescription(String description)
The rule description.
description
- The rule description.public String getDescription()
The rule description.
public ImpersonationRule withDescription(String description)
The rule description.
description
- The rule description.public void setEffect(String effect)
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.
effect
- The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.AccessEffect
public String getEffect()
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.
ALLOW
or
DENY
.AccessEffect
public ImpersonationRule withEffect(String effect)
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.
effect
- The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.AccessEffect
public ImpersonationRule withEffect(AccessEffect effect)
The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.
effect
- The effect of the rule when it matches the input. Allowed effect values are ALLOW
or
DENY
.AccessEffect
public List<String> getTargetUsers()
A list of user IDs that match the rule.
public void setTargetUsers(Collection<String> targetUsers)
A list of user IDs that match the rule.
targetUsers
- A list of user IDs that match the rule.public ImpersonationRule withTargetUsers(String... targetUsers)
A list of user IDs that match the rule.
NOTE: This method appends the values to the existing list (if any). Use
setTargetUsers(java.util.Collection)
or withTargetUsers(java.util.Collection)
if you want to
override the existing values.
targetUsers
- A list of user IDs that match the rule.public ImpersonationRule withTargetUsers(Collection<String> targetUsers)
A list of user IDs that match the rule.
targetUsers
- A list of user IDs that match the rule.public List<String> getNotTargetUsers()
A list of user IDs that don't match the rule.
public void setNotTargetUsers(Collection<String> notTargetUsers)
A list of user IDs that don't match the rule.
notTargetUsers
- A list of user IDs that don't match the rule.public ImpersonationRule withNotTargetUsers(String... notTargetUsers)
A list of user IDs that don't match the rule.
NOTE: This method appends the values to the existing list (if any). Use
setNotTargetUsers(java.util.Collection)
or withNotTargetUsers(java.util.Collection)
if you want
to override the existing values.
notTargetUsers
- A list of user IDs that don't match the rule.public ImpersonationRule withNotTargetUsers(Collection<String> notTargetUsers)
A list of user IDs that don't match the rule.
notTargetUsers
- A list of user IDs that don't match the rule.public String toString()
toString
in class Object
Object.toString()
public ImpersonationRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.