@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
Information about a principal.
| Constructor and Description |
|---|
Principal() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
String |
getPrincipalARN()
The ARN of the principal (IAM user, role, or group).
|
String |
getPrincipalType()
The principal type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setPrincipalARN(String principalARN)
The ARN of 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.
|
Principal |
withPrincipalARN(String principalARN)
The ARN of 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 of the principal (IAM user, role, or group).
principalARN - The ARN of the principal (IAM user, role, or group).public String getPrincipalARN()
The ARN of the principal (IAM user, role, or group).
public Principal withPrincipalARN(String principalARN)
The ARN of the principal (IAM user, role, or group).
principalARN - The ARN of the principal (IAM user, role, or group).public void setPrincipalType(String principalType)
The principal type. The supported value is IAM.
principalType - The principal type. The supported value is IAM.PrincipalTypepublic String getPrincipalType()
The principal type. The supported value is IAM.
IAM.PrincipalTypepublic Principal withPrincipalType(String principalType)
The principal type. The supported value is IAM.
principalType - The principal type. The supported value is IAM.PrincipalTypepublic void setPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM.
principalType - The principal type. The supported value is IAM.PrincipalTypepublic Principal withPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM.
principalType - The principal type. The supported value is IAM.PrincipalTypepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.