@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AllowedPrincipal extends Object implements Serializable, Cloneable
Describes a principal.
Constructor and Description |
---|
AllowedPrincipal() |
Modifier and Type | Method and Description |
---|---|
AllowedPrincipal |
clone() |
boolean |
equals(Object obj) |
String |
getPrincipal()
The Amazon Resource Name (ARN) of the principal.
|
String |
getPrincipalType()
The type of principal.
|
int |
hashCode() |
void |
setPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
void |
setPrincipalType(String principalType)
The type of principal.
|
String |
toString()
Returns a string representation of this object.
|
AllowedPrincipal |
withPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
AllowedPrincipal |
withPrincipalType(PrincipalType principalType)
The type of principal.
|
AllowedPrincipal |
withPrincipalType(String principalType)
The type of principal.
|
public void setPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public String getPrincipalType()
The type of principal.
PrincipalType
public AllowedPrincipal withPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public AllowedPrincipal withPrincipalType(PrincipalType principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public void setPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
principal
- The Amazon Resource Name (ARN) of the principal.public String getPrincipal()
The Amazon Resource Name (ARN) of the principal.
public AllowedPrincipal withPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
principal
- The Amazon Resource Name (ARN) of the principal.public String toString()
toString
in class Object
Object.toString()
public AllowedPrincipal clone()