@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
A principal's ARN and type.
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
String |
getPrincipalARN()
The ARN representing the principal (IAM user, role, or group).
|
String |
getPrincipalType()
The principal type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrincipalARN(String principalARN)
The ARN representing the principal (IAM user, role, or group).
|
void |
setPrincipalType(PrincipalType principalType)
The principal type.
|
void |
setPrincipalType(String principalType)
The principal type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Principal |
withPrincipalARN(String principalARN)
The ARN representing the principal (IAM user, role, or group).
|
Principal |
withPrincipalType(PrincipalType principalType)
The principal type.
|
Principal |
withPrincipalType(String principalType)
The principal type.
|
public void setPrincipalARN(String principalARN)
The ARN representing the principal (IAM user, role, or group).
principalARN
- The ARN representing the principal (IAM user, role, or group).public String getPrincipalARN()
The ARN representing the principal (IAM user, role, or group).
public Principal withPrincipalARN(String principalARN)
The ARN representing the principal (IAM user, role, or group).
principalARN
- The ARN representing the principal (IAM user, role, or group).public void setPrincipalType(String principalType)
The principal type. Must be IAM
principalType
- The principal type. Must be IAM
PrincipalType
public String getPrincipalType()
The principal type. Must be IAM
IAM
PrincipalType
public Principal withPrincipalType(String principalType)
The principal type. Must be IAM
principalType
- The principal type. Must be IAM
PrincipalType
public void setPrincipalType(PrincipalType principalType)
The principal type. Must be IAM
principalType
- The principal type. Must be IAM
PrincipalType
public Principal withPrincipalType(PrincipalType principalType)
The principal type. Must be IAM
principalType
- The principal type. Must be IAM
PrincipalType
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.