@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 (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 (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 (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 (user, role, or group). This field allows for an ARN with no accountID,
with or without wildcard characters if the PrincipalType is an IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
principalARN - The ARN of the principal (user, role, or group). This field allows for an ARN with no
accountID, with or without wildcard characters if the PrincipalType is an
IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
public String getPrincipalARN()
The ARN of the principal (user, role, or group). This field allows for an ARN with no accountID,
with or without wildcard characters if the PrincipalType is an IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
accountID, with or without wildcard characters if the PrincipalType is an
IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
public Principal withPrincipalARN(String principalARN)
The ARN of the principal (user, role, or group). This field allows for an ARN with no accountID,
with or without wildcard characters if the PrincipalType is an IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
principalARN - The ARN of the principal (user, role, or group). This field allows for an ARN with no
accountID, with or without wildcard characters if the PrincipalType is an
IAM_PATTERN.
For more information, review associate-principal-with-portfolio in the Amazon Web Services CLI Command Reference.
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, with or without wildcard characters.
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, with or without wildcard
characters.PrincipalTypepublic 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, with or without wildcard characters.
IAM if you use a fully defined ARN, or
IAM_PATTERN if you use an ARN with no accountID, with or without wildcard
characters.PrincipalTypepublic 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, with or without wildcard characters.
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, with or without wildcard
characters.PrincipalTypepublic 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, with or without wildcard characters.
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, with or without wildcard
characters.PrincipalTypepublic 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, with or without wildcard characters.
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, with or without wildcard
characters.PrincipalTypepublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.