@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizeSnapshotAccessRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
AuthorizeSnapshotAccessRequest() |
Modifier and Type | Method and Description |
---|---|
AuthorizeSnapshotAccessRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAccountWithRestoreAccess()
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
|
String |
getSnapshotArn()
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
|
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 Amazon Web Services account authorized to restore the specified snapshot.
|
void |
setSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
|
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.
|
AuthorizeSnapshotAccessRequest |
withAccountWithRestoreAccess(String accountWithRestoreAccess)
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
|
AuthorizeSnapshotAccessRequest |
withSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
|
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.
|
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 setSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot the account is authorized to restore.
snapshotIdentifier
- The identifier of the snapshot the account is authorized to restore.public String getSnapshotIdentifier()
The identifier of the snapshot the account is authorized to restore.
public AuthorizeSnapshotAccessRequest withSnapshotIdentifier(String snapshotIdentifier)
The identifier of the snapshot the account is authorized to restore.
snapshotIdentifier
- The identifier of the snapshot the account is authorized to restore.public void setSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to authorize access to.public String getSnapshotArn()
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
public AuthorizeSnapshotAccessRequest withSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to authorize access to.
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to authorize access to.public void setSnapshotClusterIdentifier(String 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.
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 getSnapshotClusterIdentifier()
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)
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.
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 void setAccountWithRestoreAccess(String accountWithRestoreAccess)
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
accountWithRestoreAccess
- The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
public String getAccountWithRestoreAccess()
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
public AuthorizeSnapshotAccessRequest withAccountWithRestoreAccess(String accountWithRestoreAccess)
The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
accountWithRestoreAccess
- The identifier of the Amazon Web Services account authorized to restore the specified snapshot.
To share a snapshot with Amazon Web Services Support, specify amazon-redshift-support.
public String toString()
toString
in class Object
Object.toString()
public AuthorizeSnapshotAccessRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()