@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 |
getAdminPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
Boolean |
getManageAdminPassword()
If
true , Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials. |
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() |
Boolean |
isManageAdminPassword()
If
true , Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials. |
void |
setAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
void |
setManageAdminPassword(Boolean manageAdminPassword)
If
true , Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials. |
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 |
withAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
RestoreFromSnapshotRequest |
withManageAdminPassword(Boolean manageAdminPassword)
If
true , Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials. |
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 setAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
adminPasswordSecretKmsKeyId
- The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.public String getAdminPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
public RestoreFromSnapshotRequest withAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
adminPasswordSecretKmsKeyId
- The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.public void setManageAdminPassword(Boolean manageAdminPassword)
If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials.
If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin credentials that the
namespace or cluster had at the time the snapshot was taken.
manageAdminPassword
- If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin
credentials. If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin
credentials that the namespace or cluster had at the time the snapshot was taken.public Boolean getManageAdminPassword()
If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials.
If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin credentials that the
namespace or cluster had at the time the snapshot was taken.
true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin
credentials. If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin
credentials that the namespace or cluster had at the time the snapshot was taken.public RestoreFromSnapshotRequest withManageAdminPassword(Boolean manageAdminPassword)
If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials.
If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin credentials that the
namespace or cluster had at the time the snapshot was taken.
manageAdminPassword
- If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin
credentials. If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin
credentials that the namespace or cluster had at the time the snapshot was taken.public Boolean isManageAdminPassword()
If true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin credentials.
If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin credentials that the
namespace or cluster had at the time the snapshot was taken.
true
, Amazon Redshift uses Secrets Manager to manage the restored snapshot's admin
credentials. If MmanageAdminPassword
is false or not set, Amazon Redshift uses the admin
credentials that the namespace or cluster had at the time the snapshot was taken.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()