@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RestoreFromSnapshotRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
RestoreFromSnapshotRequest() |
Modifier and Type | Method and Description |
---|---|
RestoreFromSnapshotRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getNamespaceName()
The name of the namespace to restore the snapshot to.
|
String |
getOwnerAccount()
The Amazon Web Services account that owns the snapshot.
|
String |
getSnapshotArn()
The Amazon Resource Name (ARN) of the snapshot to restore from.
|
String |
getSnapshotName()
The name of the snapshot to restore from.
|
String |
getWorkgroupName()
The name of the workgroup used to restore the snapshot.
|
int |
hashCode() |
void |
setNamespaceName(String namespaceName)
The name of the namespace to restore the snapshot to.
|
void |
setOwnerAccount(String ownerAccount)
The Amazon Web Services account that owns the snapshot.
|
void |
setSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to restore from.
|
void |
setSnapshotName(String snapshotName)
The name of the snapshot to restore from.
|
void |
setWorkgroupName(String workgroupName)
The name of the workgroup used to restore the snapshot.
|
String |
toString()
Returns a string representation of this object.
|
RestoreFromSnapshotRequest |
withNamespaceName(String namespaceName)
The name of the namespace to restore the snapshot to.
|
RestoreFromSnapshotRequest |
withOwnerAccount(String ownerAccount)
The Amazon Web Services account that owns the snapshot.
|
RestoreFromSnapshotRequest |
withSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to restore from.
|
RestoreFromSnapshotRequest |
withSnapshotName(String snapshotName)
The name of the snapshot to restore from.
|
RestoreFromSnapshotRequest |
withWorkgroupName(String workgroupName)
The name of the workgroup used to restore the snapshot.
|
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 setNamespaceName(String namespaceName)
The name of the namespace to restore the snapshot to.
namespaceName
- The name of the namespace to restore the snapshot to.public String getNamespaceName()
The name of the namespace to restore the snapshot to.
public RestoreFromSnapshotRequest withNamespaceName(String namespaceName)
The name of the namespace to restore the snapshot to.
namespaceName
- The name of the namespace to restore the snapshot to.public void setOwnerAccount(String ownerAccount)
The Amazon Web Services account that owns the snapshot.
ownerAccount
- The Amazon Web Services account that owns the snapshot.public String getOwnerAccount()
The Amazon Web Services account that owns the snapshot.
public RestoreFromSnapshotRequest withOwnerAccount(String ownerAccount)
The Amazon Web Services account that owns the snapshot.
ownerAccount
- The Amazon Web Services account that owns the snapshot.public void setSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift
Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/< ;snapshot_identifier>.
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift
Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier >/<snapshot_identifier>.
public String getSnapshotArn()
The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift
Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/< ;snapshot_identifier>.
snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier >/<snapshot_identifier>.
public RestoreFromSnapshotRequest withSnapshotArn(String snapshotArn)
The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift
Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier>/< ;snapshot_identifier>.
snapshotArn
- The Amazon Resource Name (ARN) of the snapshot to restore from. Required if restoring from Amazon Redshift
Serverless to a provisioned cluster. Must not be specified at the same time as snapshotName
.
The format of the ARN is arn:aws:redshift:<region>:<account_id>:snapshot:<cluster_identifier >/<snapshot_identifier>.
public void setSnapshotName(String snapshotName)
The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn
.
snapshotName
- The name of the snapshot to restore from. Must not be specified at the same time as
snapshotArn
.public String getSnapshotName()
The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn
.
snapshotArn
.public RestoreFromSnapshotRequest withSnapshotName(String snapshotName)
The name of the snapshot to restore from. Must not be specified at the same time as snapshotArn
.
snapshotName
- The name of the snapshot to restore from. Must not be specified at the same time as
snapshotArn
.public void setWorkgroupName(String workgroupName)
The name of the workgroup used to restore the snapshot.
workgroupName
- The name of the workgroup used to restore the snapshot.public String getWorkgroupName()
The name of the workgroup used to restore the snapshot.
public RestoreFromSnapshotRequest withWorkgroupName(String workgroupName)
The name of the workgroup used to restore the snapshot.
workgroupName
- The name of the workgroup used to restore the snapshot.public String toString()
toString
in class Object
Object.toString()
public RestoreFromSnapshotRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()