/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace RedshiftServerless { namespace Model { /** */ class RestoreFromSnapshotRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API RestoreFromSnapshotRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RestoreFromSnapshot"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the namespace to restore the snapshot to.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The name of the namespace to restore the snapshot to.

*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

The name of the namespace to restore the snapshot to.

*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

The name of the namespace to restore the snapshot to.

*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

The name of the namespace to restore the snapshot to.

*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

The name of the namespace to restore the snapshot to.

*/ inline RestoreFromSnapshotRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The name of the namespace to restore the snapshot to.

*/ inline RestoreFromSnapshotRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The name of the namespace to restore the snapshot to.

*/ inline RestoreFromSnapshotRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

The Amazon Web Services account that owns the snapshot.

*/ inline const Aws::String& GetOwnerAccount() const{ return m_ownerAccount; } /** *

The Amazon Web Services account that owns the snapshot.

*/ inline bool OwnerAccountHasBeenSet() const { return m_ownerAccountHasBeenSet; } /** *

The Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerAccount(const Aws::String& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = value; } /** *

The Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerAccount(Aws::String&& value) { m_ownerAccountHasBeenSet = true; m_ownerAccount = std::move(value); } /** *

The Amazon Web Services account that owns the snapshot.

*/ inline void SetOwnerAccount(const char* value) { m_ownerAccountHasBeenSet = true; m_ownerAccount.assign(value); } /** *

The Amazon Web Services account that owns the snapshot.

*/ inline RestoreFromSnapshotRequest& WithOwnerAccount(const Aws::String& value) { SetOwnerAccount(value); return *this;} /** *

The Amazon Web Services account that owns the snapshot.

*/ inline RestoreFromSnapshotRequest& WithOwnerAccount(Aws::String&& value) { SetOwnerAccount(std::move(value)); return *this;} /** *

The Amazon Web Services account that owns the snapshot.

*/ inline RestoreFromSnapshotRequest& WithOwnerAccount(const char* value) { SetOwnerAccount(value); return *this;} /** *

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>.

*/ inline const Aws::String& GetSnapshotArn() const{ return m_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>.

*/ inline bool SnapshotArnHasBeenSet() const { return m_snapshotArnHasBeenSet; } /** *

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>.

*/ inline void SetSnapshotArn(const Aws::String& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = value; } /** *

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>.

*/ inline void SetSnapshotArn(Aws::String&& value) { m_snapshotArnHasBeenSet = true; m_snapshotArn = std::move(value); } /** *

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>.

*/ inline void SetSnapshotArn(const char* value) { m_snapshotArnHasBeenSet = true; m_snapshotArn.assign(value); } /** *

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>.

*/ inline RestoreFromSnapshotRequest& WithSnapshotArn(const Aws::String& value) { SetSnapshotArn(value); return *this;} /** *

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>.

*/ inline RestoreFromSnapshotRequest& WithSnapshotArn(Aws::String&& value) { SetSnapshotArn(std::move(value)); return *this;} /** *

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>.

*/ inline RestoreFromSnapshotRequest& WithSnapshotArn(const char* value) { SetSnapshotArn(value); return *this;} /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; } /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; } /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); } /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); } /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline RestoreFromSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline RestoreFromSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *

The name of the snapshot to restore from. Must not be specified at the same * time as snapshotArn.

*/ inline RestoreFromSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} /** *

The name of the workgroup used to restore the snapshot.

*/ inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; } /** *

The name of the workgroup used to restore the snapshot.

*/ inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; } /** *

The name of the workgroup used to restore the snapshot.

*/ inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; } /** *

The name of the workgroup used to restore the snapshot.

*/ inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); } /** *

The name of the workgroup used to restore the snapshot.

*/ inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); } /** *

The name of the workgroup used to restore the snapshot.

*/ inline RestoreFromSnapshotRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;} /** *

The name of the workgroup used to restore the snapshot.

*/ inline RestoreFromSnapshotRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;} /** *

The name of the workgroup used to restore the snapshot.

*/ inline RestoreFromSnapshotRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;} private: Aws::String m_namespaceName; bool m_namespaceNameHasBeenSet = false; Aws::String m_ownerAccount; bool m_ownerAccountHasBeenSet = false; Aws::String m_snapshotArn; bool m_snapshotArnHasBeenSet = false; Aws::String m_snapshotName; bool m_snapshotNameHasBeenSet = false; Aws::String m_workgroupName; bool m_workgroupNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws