@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.
|
String |
getServiceId()
The ID of the service.
|
String |
getServicePermissionId()
The ID of the service permission.
|
List<Tag> |
getTags()
The tags.
|
int |
hashCode() |
void |
setPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
void |
setPrincipalType(String principalType)
The type of principal.
|
void |
setServiceId(String serviceId)
The ID of the service.
|
void |
setServicePermissionId(String servicePermissionId)
The ID of the service permission.
|
void |
setTags(Collection<Tag> tags)
The tags.
|
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.
|
AllowedPrincipal |
withServiceId(String serviceId)
The ID of the service.
|
AllowedPrincipal |
withServicePermissionId(String servicePermissionId)
The ID of the service permission.
|
AllowedPrincipal |
withTags(Collection<Tag> tags)
The tags.
|
AllowedPrincipal |
withTags(Tag... tags)
The tags.
|
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 void setServicePermissionId(String servicePermissionId)
The ID of the service permission.
servicePermissionId
- The ID of the service permission.public String getServicePermissionId()
The ID of the service permission.
public AllowedPrincipal withServicePermissionId(String servicePermissionId)
The ID of the service permission.
servicePermissionId
- The ID of the service permission.public void setTags(Collection<Tag> tags)
The tags.
tags
- The tags.public AllowedPrincipal withTags(Tag... tags)
The tags.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags.public AllowedPrincipal withTags(Collection<Tag> tags)
The tags.
tags
- The tags.public void setServiceId(String serviceId)
The ID of the service.
serviceId
- The ID of the service.public String getServiceId()
The ID of the service.
public AllowedPrincipal withServiceId(String serviceId)
The ID of the service.
serviceId
- The ID of the service.public String toString()
toString
in class Object
Object.toString()
public AllowedPrincipal clone()