@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePermissionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreatePermissionRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePermissionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getActions()
The actions that the specified Amazon Web Services service principal can use.
|
String |
getCertificateAuthorityArn()
The Amazon Resource Name (ARN) of the CA that grants the permissions.
|
String |
getPrincipal()
The Amazon Web Services service or identity that receives the permission.
|
String |
getSourceAccount()
The ID of the calling account.
|
int |
hashCode() |
void |
setActions(Collection<String> actions)
The actions that the specified Amazon Web Services service principal can use.
|
void |
setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) of the CA that grants the permissions.
|
void |
setPrincipal(String principal)
The Amazon Web Services service or identity that receives the permission.
|
void |
setSourceAccount(String sourceAccount)
The ID of the calling account.
|
String |
toString()
Returns a string representation of this object.
|
CreatePermissionRequest |
withActions(ActionType... actions)
The actions that the specified Amazon Web Services service principal can use.
|
CreatePermissionRequest |
withActions(Collection<String> actions)
The actions that the specified Amazon Web Services service principal can use.
|
CreatePermissionRequest |
withActions(String... actions)
The actions that the specified Amazon Web Services service principal can use.
|
CreatePermissionRequest |
withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) of the CA that grants the permissions.
|
CreatePermissionRequest |
withPrincipal(String principal)
The Amazon Web Services service or identity that receives the permission.
|
CreatePermissionRequest |
withSourceAccount(String sourceAccount)
The ID of the calling account.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the ListCertificateAuthorities action. This must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
.
certificateAuthorityArn - The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the
ListCertificateAuthorities action. This must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 .
public String getCertificateAuthorityArn()
The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the ListCertificateAuthorities action. This must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
.
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 .
public CreatePermissionRequest withCertificateAuthorityArn(String certificateAuthorityArn)
The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the ListCertificateAuthorities action. This must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
.
certificateAuthorityArn - The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find the ARN by calling the
ListCertificateAuthorities action. This must have the following form:
arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 .
public void setPrincipal(String principal)
The Amazon Web Services service or identity that receives the permission. At this time, the only valid principal
is acm.amazonaws.com.
principal - The Amazon Web Services service or identity that receives the permission. At this time, the only valid
principal is acm.amazonaws.com.public String getPrincipal()
The Amazon Web Services service or identity that receives the permission. At this time, the only valid principal
is acm.amazonaws.com.
acm.amazonaws.com.public CreatePermissionRequest withPrincipal(String principal)
The Amazon Web Services service or identity that receives the permission. At this time, the only valid principal
is acm.amazonaws.com.
principal - The Amazon Web Services service or identity that receives the permission. At this time, the only valid
principal is acm.amazonaws.com.public void setSourceAccount(String sourceAccount)
The ID of the calling account.
sourceAccount - The ID of the calling account.public String getSourceAccount()
The ID of the calling account.
public CreatePermissionRequest withSourceAccount(String sourceAccount)
The ID of the calling account.
sourceAccount - The ID of the calling account.public List<String> getActions()
The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.
IssueCertificate, GetCertificate, and ListPermissions.ActionTypepublic void setActions(Collection<String> actions)
The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.
actions - The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.ActionTypepublic CreatePermissionRequest withActions(String... actions)
The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.
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 actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.ActionTypepublic CreatePermissionRequest withActions(Collection<String> actions)
The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.
actions - The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.ActionTypepublic CreatePermissionRequest withActions(ActionType... actions)
The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.
actions - The actions that the specified Amazon Web Services service principal can use. These include
IssueCertificate, GetCertificate, and ListPermissions.ActionTypepublic String toString()
toString in class ObjectObject.toString()public CreatePermissionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()