@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Permission extends Object implements Serializable, Cloneable, StructuredPojo
Permissions designate which private CA actions can be performed by an Amazon Web Services service or entity. In order
for ACM to automatically renew private certificates, you must give the ACM service principal all available
permissions (IssueCertificate
, GetCertificate
, and ListPermissions
).
Permissions can be assigned with the CreatePermission
action, removed with the DeletePermission
action, and listed with the ListPermissions action.
Constructor and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
Permission |
clone() |
boolean |
equals(Object obj) |
List<String> |
getActions()
The private CA actions that can be performed by the designated Amazon Web Services service.
|
String |
getCertificateAuthorityArn()
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
|
Date |
getCreatedAt()
The time at which the permission was created.
|
String |
getPolicy()
The name of the policy that is associated with the permission.
|
String |
getPrincipal()
The Amazon Web Services service or entity that holds the permission.
|
String |
getSourceAccount()
The ID of the account that assigned the permission.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<String> actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
|
void |
setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
|
void |
setCreatedAt(Date createdAt)
The time at which the permission was created.
|
void |
setPolicy(String policy)
The name of the policy that is associated with the permission.
|
void |
setPrincipal(String principal)
The Amazon Web Services service or entity that holds the permission.
|
void |
setSourceAccount(String sourceAccount)
The ID of the account that assigned the permission.
|
String |
toString()
Returns a string representation of this object.
|
Permission |
withActions(ActionType... actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
|
Permission |
withActions(Collection<String> actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
|
Permission |
withActions(String... actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
|
Permission |
withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
|
Permission |
withCreatedAt(Date createdAt)
The time at which the permission was created.
|
Permission |
withPolicy(String policy)
The name of the policy that is associated with the permission.
|
Permission |
withPrincipal(String principal)
The Amazon Web Services service or entity that holds the permission.
|
Permission |
withSourceAccount(String sourceAccount)
The ID of the account that assigned the permission.
|
public void setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
certificateAuthorityArn
- The Amazon Resource Number (ARN) of the private CA from which the permission was issued.public String getCertificateAuthorityArn()
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
public Permission withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Number (ARN) of the private CA from which the permission was issued.
certificateAuthorityArn
- The Amazon Resource Number (ARN) of the private CA from which the permission was issued.public void setCreatedAt(Date createdAt)
The time at which the permission was created.
createdAt
- The time at which the permission was created.public Date getCreatedAt()
The time at which the permission was created.
public Permission withCreatedAt(Date createdAt)
The time at which the permission was created.
createdAt
- The time at which the permission was created.public void setPrincipal(String principal)
The Amazon Web Services service or entity that holds the permission. At this time, the only valid principal is
acm.amazonaws.com
.
principal
- The Amazon Web Services service or entity that holds the permission. At this time, the only valid
principal is acm.amazonaws.com
.public String getPrincipal()
The Amazon Web Services service or entity that holds the permission. At this time, the only valid principal is
acm.amazonaws.com
.
acm.amazonaws.com
.public Permission withPrincipal(String principal)
The Amazon Web Services service or entity that holds the permission. At this time, the only valid principal is
acm.amazonaws.com
.
principal
- The Amazon Web Services service or entity that holds the permission. At this time, the only valid
principal is acm.amazonaws.com
.public void setSourceAccount(String sourceAccount)
The ID of the account that assigned the permission.
sourceAccount
- The ID of the account that assigned the permission.public String getSourceAccount()
The ID of the account that assigned the permission.
public Permission withSourceAccount(String sourceAccount)
The ID of the account that assigned the permission.
sourceAccount
- The ID of the account that assigned the permission.public List<String> getActions()
The private CA actions that can be performed by the designated Amazon Web Services service.
ActionType
public void setActions(Collection<String> actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
actions
- The private CA actions that can be performed by the designated Amazon Web Services service.ActionType
public Permission withActions(String... actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- The private CA actions that can be performed by the designated Amazon Web Services service.ActionType
public Permission withActions(Collection<String> actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
actions
- The private CA actions that can be performed by the designated Amazon Web Services service.ActionType
public Permission withActions(ActionType... actions)
The private CA actions that can be performed by the designated Amazon Web Services service.
actions
- The private CA actions that can be performed by the designated Amazon Web Services service.ActionType
public void setPolicy(String policy)
The name of the policy that is associated with the permission.
policy
- The name of the policy that is associated with the permission.public String getPolicy()
The name of the policy that is associated with the permission.
public Permission withPolicy(String policy)
The name of the policy that is associated with the permission.
policy
- The name of the policy that is associated with the permission.public String toString()
toString
in class Object
Object.toString()
public Permission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.