@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddedPrincipal extends Object implements Serializable, Cloneable
Describes a principal.
Constructor and Description |
---|
AddedPrincipal() |
Modifier and Type | Method and Description |
---|---|
AddedPrincipal |
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.
|
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.
|
String |
toString()
Returns a string representation of this object.
|
AddedPrincipal |
withPrincipal(String principal)
The Amazon Resource Name (ARN) of the principal.
|
AddedPrincipal |
withPrincipalType(PrincipalType principalType)
The type of principal.
|
AddedPrincipal |
withPrincipalType(String principalType)
The type of principal.
|
AddedPrincipal |
withServiceId(String serviceId)
The ID of the service.
|
AddedPrincipal |
withServicePermissionId(String servicePermissionId)
The ID of the service permission.
|
public void setPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public String getPrincipalType()
The type of principal.
PrincipalType
public AddedPrincipal withPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public AddedPrincipal 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 AddedPrincipal 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 AddedPrincipal withServicePermissionId(String servicePermissionId)
The ID of the service permission.
servicePermissionId
- The ID of the service permission.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 AddedPrincipal withServiceId(String serviceId)
The ID of the service.
serviceId
- The ID of the service.public String toString()
toString
in class Object
Object.toString()
public AddedPrincipal clone()