@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
Describes a resource.
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the resource.
|
List<PermissionInfo> |
getRoles()
The permission information for the resource.
|
String |
getType()
The type of resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The ID of the resource.
|
void |
setRoles(Collection<PermissionInfo> roles)
The permission information for the resource.
|
void |
setType(PrincipalType type)
The type of resource.
|
void |
setType(String type)
The type of resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Principal |
withId(String id)
The ID of the resource.
|
Principal |
withRoles(Collection<PermissionInfo> roles)
The permission information for the resource.
|
Principal |
withRoles(PermissionInfo... roles)
The permission information for the resource.
|
Principal |
withType(PrincipalType type)
The type of resource.
|
Principal |
withType(String type)
The type of resource.
|
public void setId(String id)
The ID of the resource.
id
- The ID of the resource.public String getId()
The ID of the resource.
public Principal withId(String id)
The ID of the resource.
id
- The ID of the resource.public void setType(String type)
The type of resource.
type
- The type of resource.PrincipalType
public String getType()
The type of resource.
PrincipalType
public Principal withType(String type)
The type of resource.
type
- The type of resource.PrincipalType
public void setType(PrincipalType type)
The type of resource.
type
- The type of resource.PrincipalType
public Principal withType(PrincipalType type)
The type of resource.
type
- The type of resource.PrincipalType
public List<PermissionInfo> getRoles()
The permission information for the resource.
public void setRoles(Collection<PermissionInfo> roles)
The permission information for the resource.
roles
- The permission information for the resource.public Principal withRoles(PermissionInfo... roles)
The permission information for the resource.
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 permission information for the resource.public Principal withRoles(Collection<PermissionInfo> roles)
The permission information for the resource.
roles
- The permission information for the resource.public String toString()
toString
in class Object
Object.toString()
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.