@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.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
snapshotClusterIdentifier
- The identifier of the cluster the snapshot was created from.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
public String getSnapshotClusterIdentifier()
The identifier of the cluster the snapshot was created from.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
public AuthorizeSnapshotAccessRequest withSnapshotClusterIdentifier(String snapshotClusterIdentifier)
The identifier of the cluster the snapshot was created from.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
snapshotClusterIdentifier
- The identifier of the cluster the snapshot was created from.
If the snapshot to access doesn't exist and the associated IAM policy doesn't allow access to all (*) snapshots - This parameter is required. Otherwise, permissions aren't available to check if the snapshot exists.
If the snapshot to access exists - This parameter isn't required. Redshift can retrieve the cluster identifier and use it to validate snapshot authorization.
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()
Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.