@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SearchPrincipalType extends Object implements Serializable, Cloneable, StructuredPojo
Filter based on UserIds or GroupIds.
Constructor and Description |
---|
SearchPrincipalType() |
Modifier and Type | Method and Description |
---|---|
SearchPrincipalType |
clone() |
boolean |
equals(Object obj) |
String |
getId()
UserIds or GroupIds.
|
List<String> |
getRoles()
The Role of a User or Group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
UserIds or GroupIds.
|
void |
setRoles(Collection<String> roles)
The Role of a User or Group.
|
String |
toString()
Returns a string representation of this object.
|
SearchPrincipalType |
withId(String id)
UserIds or GroupIds.
|
SearchPrincipalType |
withRoles(Collection<String> roles)
The Role of a User or Group.
|
SearchPrincipalType |
withRoles(PrincipalRoleType... roles)
The Role of a User or Group.
|
SearchPrincipalType |
withRoles(String... roles)
The Role of a User or Group.
|
public void setId(String id)
UserIds or GroupIds.
id
- UserIds or GroupIds.public String getId()
UserIds or GroupIds.
public SearchPrincipalType withId(String id)
UserIds or GroupIds.
id
- UserIds or GroupIds.public List<String> getRoles()
The Role of a User or Group.
PrincipalRoleType
public void setRoles(Collection<String> roles)
The Role of a User or Group.
roles
- The Role of a User or Group.PrincipalRoleType
public SearchPrincipalType withRoles(String... roles)
The Role of a User or Group.
NOTE: This method appends the values to the existing list (if any). Use
setRoles(java.util.Collection)
or withRoles(java.util.Collection)
if you want to override the
existing values.
roles
- The Role of a User or Group.PrincipalRoleType
public SearchPrincipalType withRoles(Collection<String> roles)
The Role of a User or Group.
roles
- The Role of a User or Group.PrincipalRoleType
public SearchPrincipalType withRoles(PrincipalRoleType... roles)
The Role of a User or Group.
roles
- The Role of a User or Group.PrincipalRoleType
public String toString()
toString
in class Object
Object.toString()
public SearchPrincipalType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.