@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)
Marshalls this structured data using the given
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). This field allows for an ARN with no accountID
if the PrincipalType
is an IAM_PATTERN
.
principalARN
- The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no
accountID
if the PrincipalType
is an IAM_PATTERN
.public String getPrincipalARN()
The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no accountID
if the PrincipalType
is an IAM_PATTERN
.
accountID
if the PrincipalType
is an IAM_PATTERN
.public Principal withPrincipalARN(String principalARN)
The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no accountID
if the PrincipalType
is an IAM_PATTERN
.
principalARN
- The ARN of the principal (IAM user, role, or group). This field allows for an ARN with no
accountID
if the PrincipalType
is an IAM_PATTERN
.public void setPrincipalType(String principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public String getPrincipalType()
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public Principal withPrincipalType(String principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public void setPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.PrincipalType
public Principal withPrincipalType(PrincipalType principalType)
The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.
principalType
- The principal type. The supported value is IAM
if you use a fully defined ARN, or
IAM_PATTERN
if you use an ARN with no accountID
.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.