public class AuthorizeSnapshotAccessRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AuthorizeSnapshotAccess operation.
Authorizes the specified AWS customer account to restore the specified snapshot.
For more information about working with snapshots, go to Amazon Redshift Snapshots in the Amazon Redshift Cluster Management Guide .
NOOP| Constructor and Description |
|---|
AuthorizeSnapshotAccessRequest() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizeSnapshotAccessRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountWithRestoreAccess()
The identifier of the AWS customer account authorized to restore the
specified snapshot.
|
String |
getSnapshotClusterIdentifier()
The identifier of the cluster the snapshot was created from.
|
String |
getSnapshotIdentifier()
The identifier of the snapshot the account is authorized to restore.
|
int |
hashCode() |
void |
setAccountWithRestoreAccess(String accountWithRestoreAccess)
The identifier of the AWS customer account authorized to restore the
specified snapshot.
|
void |
setSnapshotClusterIdentifier(String snapshotClusterIdentifier)
The identifier of the cluster the snapshot was created from.
|
void |
setSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot the account is authorized to restore.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthorizeSnapshotAccessRequest |
withAccountWithRestoreAccess(String accountWithRestoreAccess)
The identifier of the AWS customer account authorized to restore the
specified snapshot.
|
AuthorizeSnapshotAccessRequest |
withSnapshotClusterIdentifier(String snapshotClusterIdentifier)
The identifier of the cluster the snapshot was created from.
|
AuthorizeSnapshotAccessRequest |
withSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot the account is authorized to restore.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic String getSnapshotIdentifier()
public void setSnapshotIdentifier(String snapshotIdentifier)
snapshotIdentifier - The identifier of the snapshot the account is authorized to restore.public AuthorizeSnapshotAccessRequest withSnapshotIdentifier(String snapshotIdentifier)
Returns a reference to this object so that method calls can be chained together.
snapshotIdentifier - The identifier of the snapshot the account is authorized to restore.public String getSnapshotClusterIdentifier()
public void setSnapshotClusterIdentifier(String snapshotClusterIdentifier)
snapshotClusterIdentifier - The identifier of the cluster the snapshot was created from. This
parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name.public AuthorizeSnapshotAccessRequest withSnapshotClusterIdentifier(String snapshotClusterIdentifier)
Returns a reference to this object so that method calls can be chained together.
snapshotClusterIdentifier - The identifier of the cluster the snapshot was created from. This
parameter is required if your IAM user has a policy containing a
snapshot resource element that specifies anything other than * for the
cluster name.public String getAccountWithRestoreAccess()
public void setAccountWithRestoreAccess(String accountWithRestoreAccess)
accountWithRestoreAccess - The identifier of the AWS customer account authorized to restore the
specified snapshot.public AuthorizeSnapshotAccessRequest withAccountWithRestoreAccess(String accountWithRestoreAccess)
Returns a reference to this object so that method calls can be chained together.
accountWithRestoreAccess - The identifier of the AWS customer account authorized to restore the
specified snapshot.public String toString()
toString in class ObjectObject.toString()public AuthorizeSnapshotAccessRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.