@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGrantRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateGrantRequest() |
Modifier and Type | Method and Description |
---|---|
CreateGrantRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<String> |
getAllowedOperations()
Allowed operations for the grant.
|
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getGrantName()
Grant name.
|
String |
getHomeRegion()
Home Region of the grant.
|
String |
getLicenseArn()
Amazon Resource Name (ARN) of the license.
|
List<String> |
getPrincipals()
The grant principals.
|
int |
hashCode() |
void |
setAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
|
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setGrantName(String grantName)
Grant name.
|
void |
setHomeRegion(String homeRegion)
Home Region of the grant.
|
void |
setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
void |
setPrincipals(Collection<String> principals)
The grant principals.
|
String |
toString()
Returns a string representation of this object.
|
CreateGrantRequest |
withAllowedOperations(AllowedOperation... allowedOperations)
Allowed operations for the grant.
|
CreateGrantRequest |
withAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
|
CreateGrantRequest |
withAllowedOperations(String... allowedOperations)
Allowed operations for the grant.
|
CreateGrantRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateGrantRequest |
withGrantName(String grantName)
Grant name.
|
CreateGrantRequest |
withHomeRegion(String homeRegion)
Home Region of the grant.
|
CreateGrantRequest |
withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
|
CreateGrantRequest |
withPrincipals(Collection<String> principals)
The grant principals.
|
CreateGrantRequest |
withPrincipals(String... principals)
The grant principals.
|
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, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
public CreateGrantRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.public void setGrantName(String grantName)
Grant name.
grantName
- Grant name.public String getGrantName()
Grant name.
public CreateGrantRequest withGrantName(String grantName)
Grant name.
grantName
- Grant name.public void setLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public String getLicenseArn()
Amazon Resource Name (ARN) of the license.
public CreateGrantRequest withLicenseArn(String licenseArn)
Amazon Resource Name (ARN) of the license.
licenseArn
- Amazon Resource Name (ARN) of the license.public List<String> getPrincipals()
The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
public void setPrincipals(Collection<String> principals)
The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
principals
- The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
public CreateGrantRequest withPrincipals(String... principals)
The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
NOTE: This method appends the values to the existing list (if any). Use
setPrincipals(java.util.Collection)
or withPrincipals(java.util.Collection)
if you want to
override the existing values.
principals
- The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
public CreateGrantRequest withPrincipals(Collection<String> principals)
The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
principals
- The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):
An Amazon Web Services account, which includes only the account specified.
An organizational unit (OU), which includes all accounts in the OU.
An organization, which will include all accounts across your organization.
public void setHomeRegion(String homeRegion)
Home Region of the grant.
homeRegion
- Home Region of the grant.public String getHomeRegion()
Home Region of the grant.
public CreateGrantRequest withHomeRegion(String homeRegion)
Home Region of the grant.
homeRegion
- Home Region of the grant.public List<String> getAllowedOperations()
Allowed operations for the grant.
AllowedOperation
public void setAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public CreateGrantRequest withAllowedOperations(String... allowedOperations)
Allowed operations for the grant.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedOperations(java.util.Collection)
or withAllowedOperations(java.util.Collection)
if
you want to override the existing values.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public CreateGrantRequest withAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public CreateGrantRequest withAllowedOperations(AllowedOperation... allowedOperations)
Allowed operations for the grant.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public String toString()
toString
in class Object
Object.toString()
public CreateGrantRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()