/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DocDBElastic { namespace Model { /** */ class RestoreClusterFromSnapshotRequest : public DocDBElasticRequest { public: AWS_DOCDBELASTIC_API RestoreClusterFromSnapshotRequest(); // 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 "RestoreClusterFromSnapshot"; } AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override; /** *

The name of the Elastic DocumentDB cluster.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the Elastic DocumentDB cluster.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the Elastic DocumentDB cluster.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the Elastic DocumentDB cluster.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the Elastic DocumentDB cluster.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The KMS key identifier to use to encrypt the new Elastic DocumentDB * cluster.

The KMS key identifier is the Amazon Resource Name (ARN) for the * KMS encryption key. If you are creating a cluster using the same Amazon account * that owns this KMS encryption key, you can use the KMS key alias instead of the * ARN as the KMS encryption key.

If an encryption key is not specified * here, Elastic DocumentDB uses the default encryption key that KMS creates for * your account. Your account has a different default encryption key for each * Amazon Region.

*/ inline RestoreClusterFromSnapshotRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The arn of the Elastic DocumentDB snapshot.

*/ inline const Aws::String& GetSnapshotArn() const{ return m_snapshotArn; } /** *

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The arn of the Elastic DocumentDB snapshot.

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

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The Amazon EC2 subnet IDs for the Elastic DocumentDB cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A list of the tag names to be assigned to the restored DB cluster, in the * form of an array of key-value pairs in which the key is the tag name and the * value is the key value.

*/ inline RestoreClusterFromSnapshotRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline const Aws::Vector& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline void SetVpcSecurityGroupIds(const Aws::Vector& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline void SetVpcSecurityGroupIds(Aws::Vector&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithVpcSecurityGroupIds(const Aws::Vector& value) { SetVpcSecurityGroupIds(value); return *this;} /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline RestoreClusterFromSnapshotRequest& WithVpcSecurityGroupIds(Aws::Vector&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;} /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; } /** *

A list of EC2 VPC security groups to associate with the Elastic DocumentDB * cluster.

*/ inline RestoreClusterFromSnapshotRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::String m_snapshotArn; bool m_snapshotArnHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; }; } // namespace Model } // namespace DocDBElastic } // namespace Aws