@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGrantResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
CreateGrantResult() |
Modifier and Type | Method and Description |
---|---|
CreateGrantResult |
clone() |
boolean |
equals(Object obj) |
String |
getGrantId()
The unique identifier for the grant.
|
String |
getGrantToken()
The grant token.
|
int |
hashCode() |
void |
setGrantId(String grantId)
The unique identifier for the grant.
|
void |
setGrantToken(String grantToken)
The grant token.
|
String |
toString()
Returns a string representation of this object.
|
CreateGrantResult |
withGrantId(String grantId)
The unique identifier for the grant.
|
CreateGrantResult |
withGrantToken(String grantToken)
The grant token.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setGrantToken(String grantToken)
The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
grantToken
- The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
public String getGrantToken()
The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
public CreateGrantResult withGrantToken(String grantToken)
The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
grantToken
- The grant token.
Use a grant token when your permission to call this operation comes from a new grant that has not yet achieved eventual consistency. For more information, see Grant token in the AWS Key Management Service Developer Guide.
public void setGrantId(String grantId)
The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant operation.
grantId
- The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant
operation.
public String getGrantId()
The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant operation.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant
operation.
public CreateGrantResult withGrantId(String grantId)
The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant operation.
grantId
- The unique identifier for the grant.
You can use the GrantId
in a ListGrants, RetireGrant, or RevokeGrant
operation.
public String toString()
toString
in class Object
Object.toString()
public CreateGrantResult clone()