@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.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
, 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.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
, 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.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
, 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.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
, 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.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.