/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Neptune { namespace Model { /** */ class RestoreDBClusterToPointInTimeRequest : public NeptuneRequest { public: AWS_NEPTUNE_API RestoreDBClusterToPointInTimeRequest(); // 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 "RestoreDBClusterToPointInTime"; } AWS_NEPTUNE_API Aws::String SerializePayload() const override; protected: AWS_NEPTUNE_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

The name of the new DB cluster to be created.

Constraints:

    *
  • Must contain from 1 to 63 letters, numbers, or hyphens

  • *

    First character must be a letter

  • Cannot end with a hyphen * or contain two consecutive hyphens

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline const Aws::String& GetRestoreType() const{ return m_restoreType; } /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline bool RestoreTypeHasBeenSet() const { return m_restoreTypeHasBeenSet; } /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline void SetRestoreType(const Aws::String& value) { m_restoreTypeHasBeenSet = true; m_restoreType = value; } /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline void SetRestoreType(Aws::String&& value) { m_restoreTypeHasBeenSet = true; m_restoreType = std::move(value); } /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline void SetRestoreType(const char* value) { m_restoreTypeHasBeenSet = true; m_restoreType.assign(value); } /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithRestoreType(const Aws::String& value) { SetRestoreType(value); return *this;} /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithRestoreType(Aws::String&& value) { SetRestoreType(std::move(value)); return *this;} /** *

The type of restore to be performed. You can specify one of the following * values:

  • full-copy - The new DB cluster is * restored as a full copy of the source DB cluster.

  • * copy-on-write - The new DB cluster is restored as a clone of the * source DB cluster.

If you don't specify a * RestoreType value, then the new DB cluster is restored as a full * copy of the source DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithRestoreType(const char* value) { SetRestoreType(value); return *this;} /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline const Aws::String& GetSourceDBClusterIdentifier() const{ return m_sourceDBClusterIdentifier; } /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline bool SourceDBClusterIdentifierHasBeenSet() const { return m_sourceDBClusterIdentifierHasBeenSet; } /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline void SetSourceDBClusterIdentifier(const Aws::String& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = value; } /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline void SetSourceDBClusterIdentifier(Aws::String&& value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier = std::move(value); } /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline void SetSourceDBClusterIdentifier(const char* value) { m_sourceDBClusterIdentifierHasBeenSet = true; m_sourceDBClusterIdentifier.assign(value); } /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithSourceDBClusterIdentifier(const Aws::String& value) { SetSourceDBClusterIdentifier(value); return *this;} /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithSourceDBClusterIdentifier(Aws::String&& value) { SetSourceDBClusterIdentifier(std::move(value)); return *this;} /** *

The identifier of the source DB cluster from which to restore.

*

Constraints:

  • Must match the identifier of an existing * DBCluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithSourceDBClusterIdentifier(const char* value) { SetSourceDBClusterIdentifier(value); return *this;} /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline const Aws::Utils::DateTime& GetRestoreToTime() const{ return m_restoreToTime; } /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline bool RestoreToTimeHasBeenSet() const { return m_restoreToTimeHasBeenSet; } /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline void SetRestoreToTime(const Aws::Utils::DateTime& value) { m_restoreToTimeHasBeenSet = true; m_restoreToTime = value; } /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline void SetRestoreToTime(Aws::Utils::DateTime&& value) { m_restoreToTimeHasBeenSet = true; m_restoreToTime = std::move(value); } /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline RestoreDBClusterToPointInTimeRequest& WithRestoreToTime(const Aws::Utils::DateTime& value) { SetRestoreToTime(value); return *this;} /** *

The date and time to restore the DB cluster to.

Valid Values: Value * must be a time in Universal Coordinated Time (UTC) format

*

Constraints:

  • Must be before the latest restorable time for * the DB instance

  • Must be specified if * UseLatestRestorableTime parameter is not provided

  • *

    Cannot be specified if UseLatestRestorableTime parameter is * true

  • Cannot be specified if RestoreType parameter * is copy-on-write

Example: * 2015-03-07T23:45:00Z

*/ inline RestoreDBClusterToPointInTimeRequest& WithRestoreToTime(Aws::Utils::DateTime&& value) { SetRestoreToTime(std::move(value)); return *this;} /** *

A value that is set to true to restore the DB cluster to the * latest restorable backup time, and false otherwise.

Default: * false

Constraints: Cannot be specified if * RestoreToTime parameter is provided.

*/ inline bool GetUseLatestRestorableTime() const{ return m_useLatestRestorableTime; } /** *

A value that is set to true to restore the DB cluster to the * latest restorable backup time, and false otherwise.

Default: * false

Constraints: Cannot be specified if * RestoreToTime parameter is provided.

*/ inline bool UseLatestRestorableTimeHasBeenSet() const { return m_useLatestRestorableTimeHasBeenSet; } /** *

A value that is set to true to restore the DB cluster to the * latest restorable backup time, and false otherwise.

Default: * false

Constraints: Cannot be specified if * RestoreToTime parameter is provided.

*/ inline void SetUseLatestRestorableTime(bool value) { m_useLatestRestorableTimeHasBeenSet = true; m_useLatestRestorableTime = value; } /** *

A value that is set to true to restore the DB cluster to the * latest restorable backup time, and false otherwise.

Default: * false

Constraints: Cannot be specified if * RestoreToTime parameter is provided.

*/ inline RestoreDBClusterToPointInTimeRequest& WithUseLatestRestorableTime(bool value) { SetUseLatestRestorableTime(value); return *this;} /** *

The port number on which the new DB cluster accepts connections.

*

Constraints: Value must be 1150-65535

Default: The same * port as the original DB cluster.

*/ inline int GetPort() const{ return m_port; } /** *

The port number on which the new DB cluster accepts connections.

*

Constraints: Value must be 1150-65535

Default: The same * port as the original DB cluster.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port number on which the new DB cluster accepts connections.

*

Constraints: Value must be 1150-65535

Default: The same * port as the original DB cluster.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port number on which the new DB cluster accepts connections.

*

Constraints: Value must be 1150-65535

Default: The same * port as the original DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& WithPort(int value) { SetPort(value); return *this;} /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline const Aws::String& GetDBSubnetGroupName() const{ return m_dBSubnetGroupName; } /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline bool DBSubnetGroupNameHasBeenSet() const { return m_dBSubnetGroupNameHasBeenSet; } /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(const Aws::String& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = value; } /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(Aws::String&& value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName = std::move(value); } /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline void SetDBSubnetGroupName(const char* value) { m_dBSubnetGroupNameHasBeenSet = true; m_dBSubnetGroupName.assign(value); } /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBSubnetGroupName(const Aws::String& value) { SetDBSubnetGroupName(value); return *this;} /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBSubnetGroupName(Aws::String&& value) { SetDBSubnetGroupName(std::move(value)); return *this;} /** *

The DB subnet group name to use for the new DB cluster.

Constraints: * If supplied, must match the name of an existing DBSubnetGroup.

Example: * mySubnetgroup

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBSubnetGroupName(const char* value) { SetDBSubnetGroupName(value); return *this;} /** *

(Not supported by Neptune)

*/ inline const Aws::String& GetOptionGroupName() const{ return m_optionGroupName; } /** *

(Not supported by Neptune)

*/ inline bool OptionGroupNameHasBeenSet() const { return m_optionGroupNameHasBeenSet; } /** *

(Not supported by Neptune)

*/ inline void SetOptionGroupName(const Aws::String& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = value; } /** *

(Not supported by Neptune)

*/ inline void SetOptionGroupName(Aws::String&& value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName = std::move(value); } /** *

(Not supported by Neptune)

*/ inline void SetOptionGroupName(const char* value) { m_optionGroupNameHasBeenSet = true; m_optionGroupName.assign(value); } /** *

(Not supported by Neptune)

*/ inline RestoreDBClusterToPointInTimeRequest& WithOptionGroupName(const Aws::String& value) { SetOptionGroupName(value); return *this;} /** *

(Not supported by Neptune)

*/ inline RestoreDBClusterToPointInTimeRequest& WithOptionGroupName(Aws::String&& value) { SetOptionGroupName(std::move(value)); return *this;} /** *

(Not supported by Neptune)

*/ inline RestoreDBClusterToPointInTimeRequest& WithOptionGroupName(const char* value) { SetOptionGroupName(value); return *this;} /** *

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

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

A list of VPC security groups that the new DB cluster belongs to.

*/ inline RestoreDBClusterToPointInTimeRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

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

The tags to be applied to the restored DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to be applied to the restored DB cluster.

*/ inline RestoreDBClusterToPointInTimeRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

The Amazon KMS key identifier to use when restoring an encrypted DB cluster * from an encrypted DB cluster.

The KMS key identifier is the Amazon * Resource Name (ARN) for the KMS encryption key. If you are restoring a DB * cluster with the same Amazon account that owns the KMS encryption key used to * encrypt the new DB cluster, then you can use the KMS key alias instead of the * ARN for the KMS encryption key.

You can restore to a new DB cluster and * encrypt the new DB cluster with a KMS key that is different than the KMS key * used to encrypt the source DB cluster. The new DB cluster is encrypted with the * KMS key identified by the KmsKeyId parameter.

If you do not * specify a value for the KmsKeyId parameter, then the following will * occur:

  • If the DB cluster is encrypted, then the restored DB * cluster is encrypted using the KMS key that was used to encrypt the source DB * cluster.

  • If the DB cluster is not encrypted, then the restored * DB cluster is not encrypted.

If * DBClusterIdentifier refers to a DB cluster that is not encrypted, * then the restore request is rejected.

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

True to enable mapping of Amazon Identity and Access Management (IAM) * accounts to database accounts, and otherwise false.

Default: * false

*/ inline bool GetEnableIAMDatabaseAuthentication() const{ return m_enableIAMDatabaseAuthentication; } /** *

True to enable mapping of Amazon Identity and Access Management (IAM) * accounts to database accounts, and otherwise false.

Default: * false

*/ inline bool EnableIAMDatabaseAuthenticationHasBeenSet() const { return m_enableIAMDatabaseAuthenticationHasBeenSet; } /** *

True to enable mapping of Amazon Identity and Access Management (IAM) * accounts to database accounts, and otherwise false.

Default: * false

*/ inline void SetEnableIAMDatabaseAuthentication(bool value) { m_enableIAMDatabaseAuthenticationHasBeenSet = true; m_enableIAMDatabaseAuthentication = value; } /** *

True to enable mapping of Amazon Identity and Access Management (IAM) * accounts to database accounts, and otherwise false.

Default: * false

*/ inline RestoreDBClusterToPointInTimeRequest& WithEnableIAMDatabaseAuthentication(bool value) { SetEnableIAMDatabaseAuthentication(value); return *this;} /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline const Aws::Vector& GetEnableCloudwatchLogsExports() const{ return m_enableCloudwatchLogsExports; } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline bool EnableCloudwatchLogsExportsHasBeenSet() const { return m_enableCloudwatchLogsExportsHasBeenSet; } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline void SetEnableCloudwatchLogsExports(const Aws::Vector& value) { m_enableCloudwatchLogsExportsHasBeenSet = true; m_enableCloudwatchLogsExports = value; } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline void SetEnableCloudwatchLogsExports(Aws::Vector&& value) { m_enableCloudwatchLogsExportsHasBeenSet = true; m_enableCloudwatchLogsExports = std::move(value); } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline RestoreDBClusterToPointInTimeRequest& WithEnableCloudwatchLogsExports(const Aws::Vector& value) { SetEnableCloudwatchLogsExports(value); return *this;} /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline RestoreDBClusterToPointInTimeRequest& WithEnableCloudwatchLogsExports(Aws::Vector&& value) { SetEnableCloudwatchLogsExports(std::move(value)); return *this;} /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline RestoreDBClusterToPointInTimeRequest& AddEnableCloudwatchLogsExports(const Aws::String& value) { m_enableCloudwatchLogsExportsHasBeenSet = true; m_enableCloudwatchLogsExports.push_back(value); return *this; } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline RestoreDBClusterToPointInTimeRequest& AddEnableCloudwatchLogsExports(Aws::String&& value) { m_enableCloudwatchLogsExportsHasBeenSet = true; m_enableCloudwatchLogsExports.push_back(std::move(value)); return *this; } /** *

The list of logs that the restored DB cluster is to export to CloudWatch * Logs.

*/ inline RestoreDBClusterToPointInTimeRequest& AddEnableCloudwatchLogsExports(const char* value) { m_enableCloudwatchLogsExportsHasBeenSet = true; m_enableCloudwatchLogsExports.push_back(value); return *this; } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline const Aws::String& GetDBClusterParameterGroupName() const{ return m_dBClusterParameterGroupName; } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline bool DBClusterParameterGroupNameHasBeenSet() const { return m_dBClusterParameterGroupNameHasBeenSet; } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline void SetDBClusterParameterGroupName(const Aws::String& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = value; } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline void SetDBClusterParameterGroupName(Aws::String&& value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName = std::move(value); } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline void SetDBClusterParameterGroupName(const char* value) { m_dBClusterParameterGroupNameHasBeenSet = true; m_dBClusterParameterGroupName.assign(value); } /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterParameterGroupName(const Aws::String& value) { SetDBClusterParameterGroupName(value); return *this;} /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterParameterGroupName(Aws::String&& value) { SetDBClusterParameterGroupName(std::move(value)); return *this;} /** *

The name of the DB cluster parameter group to associate with the new DB * cluster.

Constraints:

  • If supplied, must match the name * of an existing DBClusterParameterGroup.

*/ inline RestoreDBClusterToPointInTimeRequest& WithDBClusterParameterGroupName(const char* value) { SetDBClusterParameterGroupName(value); return *this;} /** *

A value that indicates whether the DB cluster has deletion protection * enabled. The database can't be deleted when deletion protection is enabled. By * default, deletion protection is disabled.

*/ inline bool GetDeletionProtection() const{ return m_deletionProtection; } /** *

A value that indicates whether the DB cluster has deletion protection * enabled. The database can't be deleted when deletion protection is enabled. By * default, deletion protection is disabled.

*/ inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; } /** *

A value that indicates whether the DB cluster has deletion protection * enabled. The database can't be deleted when deletion protection is enabled. By * default, deletion protection is disabled.

*/ inline void SetDeletionProtection(bool value) { m_deletionProtectionHasBeenSet = true; m_deletionProtection = value; } /** *

A value that indicates whether the DB cluster has deletion protection * enabled. The database can't be deleted when deletion protection is enabled. By * default, deletion protection is disabled.

*/ inline RestoreDBClusterToPointInTimeRequest& WithDeletionProtection(bool value) { SetDeletionProtection(value); return *this;} inline const ServerlessV2ScalingConfiguration& GetServerlessV2ScalingConfiguration() const{ return m_serverlessV2ScalingConfiguration; } inline bool ServerlessV2ScalingConfigurationHasBeenSet() const { return m_serverlessV2ScalingConfigurationHasBeenSet; } inline void SetServerlessV2ScalingConfiguration(const ServerlessV2ScalingConfiguration& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = value; } inline void SetServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration&& value) { m_serverlessV2ScalingConfigurationHasBeenSet = true; m_serverlessV2ScalingConfiguration = std::move(value); } inline RestoreDBClusterToPointInTimeRequest& WithServerlessV2ScalingConfiguration(const ServerlessV2ScalingConfiguration& value) { SetServerlessV2ScalingConfiguration(value); return *this;} inline RestoreDBClusterToPointInTimeRequest& WithServerlessV2ScalingConfiguration(ServerlessV2ScalingConfiguration&& value) { SetServerlessV2ScalingConfiguration(std::move(value)); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::String m_restoreType; bool m_restoreTypeHasBeenSet = false; Aws::String m_sourceDBClusterIdentifier; bool m_sourceDBClusterIdentifierHasBeenSet = false; Aws::Utils::DateTime m_restoreToTime; bool m_restoreToTimeHasBeenSet = false; bool m_useLatestRestorableTime; bool m_useLatestRestorableTimeHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; Aws::String m_dBSubnetGroupName; bool m_dBSubnetGroupNameHasBeenSet = false; Aws::String m_optionGroupName; bool m_optionGroupNameHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; bool m_enableIAMDatabaseAuthentication; bool m_enableIAMDatabaseAuthenticationHasBeenSet = false; Aws::Vector m_enableCloudwatchLogsExports; bool m_enableCloudwatchLogsExportsHasBeenSet = false; Aws::String m_dBClusterParameterGroupName; bool m_dBClusterParameterGroupNameHasBeenSet = false; bool m_deletionProtection; bool m_deletionProtectionHasBeenSet = false; ServerlessV2ScalingConfiguration m_serverlessV2ScalingConfiguration; bool m_serverlessV2ScalingConfigurationHasBeenSet = false; }; } // namespace Model } // namespace Neptune } // namespace Aws