@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGrantVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateGrantVersionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateGrantVersionRequest |
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 |
getGrantArn()
Amazon Resource Name (ARN) of the grant.
|
String |
getGrantName()
Grant name.
|
String |
getSourceVersion()
Current version of the grant.
|
String |
getStatus()
Grant status.
|
String |
getStatusReason()
Grant status reason.
|
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 |
setGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
|
void |
setGrantName(String grantName)
Grant name.
|
void |
setSourceVersion(String sourceVersion)
Current version of the grant.
|
void |
setStatus(String status)
Grant status.
|
void |
setStatusReason(String statusReason)
Grant status reason.
|
String |
toString()
Returns a string representation of this object.
|
CreateGrantVersionRequest |
withAllowedOperations(AllowedOperation... allowedOperations)
Allowed operations for the grant.
|
CreateGrantVersionRequest |
withAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
|
CreateGrantVersionRequest |
withAllowedOperations(String... allowedOperations)
Allowed operations for the grant.
|
CreateGrantVersionRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateGrantVersionRequest |
withGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
|
CreateGrantVersionRequest |
withGrantName(String grantName)
Grant name.
|
CreateGrantVersionRequest |
withSourceVersion(String sourceVersion)
Current version of the grant.
|
CreateGrantVersionRequest |
withStatus(GrantStatus status)
Grant status.
|
CreateGrantVersionRequest |
withStatus(String status)
Grant status.
|
CreateGrantVersionRequest |
withStatusReason(String statusReason)
Grant status reason.
|
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 CreateGrantVersionRequest 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 setGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
grantArn
- Amazon Resource Name (ARN) of the grant.public String getGrantArn()
Amazon Resource Name (ARN) of the grant.
public CreateGrantVersionRequest withGrantArn(String grantArn)
Amazon Resource Name (ARN) of the grant.
grantArn
- Amazon Resource Name (ARN) of the grant.public void setGrantName(String grantName)
Grant name.
grantName
- Grant name.public String getGrantName()
Grant name.
public CreateGrantVersionRequest withGrantName(String grantName)
Grant name.
grantName
- Grant name.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 CreateGrantVersionRequest 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 CreateGrantVersionRequest withAllowedOperations(Collection<String> allowedOperations)
Allowed operations for the grant.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public CreateGrantVersionRequest withAllowedOperations(AllowedOperation... allowedOperations)
Allowed operations for the grant.
allowedOperations
- Allowed operations for the grant.AllowedOperation
public void setStatus(String status)
Grant status.
status
- Grant status.GrantStatus
public String getStatus()
Grant status.
GrantStatus
public CreateGrantVersionRequest withStatus(String status)
Grant status.
status
- Grant status.GrantStatus
public CreateGrantVersionRequest withStatus(GrantStatus status)
Grant status.
status
- Grant status.GrantStatus
public void setStatusReason(String statusReason)
Grant status reason.
statusReason
- Grant status reason.public String getStatusReason()
Grant status reason.
public CreateGrantVersionRequest withStatusReason(String statusReason)
Grant status reason.
statusReason
- Grant status reason.public void setSourceVersion(String sourceVersion)
Current version of the grant.
sourceVersion
- Current version of the grant.public String getSourceVersion()
Current version of the grant.
public CreateGrantVersionRequest withSourceVersion(String sourceVersion)
Current version of the grant.
sourceVersion
- Current version of the grant.public String toString()
toString
in class Object
Object.toString()
public CreateGrantVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()