554 lines
26 KiB
C++
554 lines
26 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/docdb/DocDB_EXPORTS.h>
|
|
#include <aws/docdb/DocDBRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/docdb/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace DocDB
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the input to <a>CreateDBInstance</a>.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/CreateDBInstanceMessage">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_DOCDB_API CreateDBInstanceRequest : public DocDBRequest
|
|
{
|
|
public:
|
|
CreateDBInstanceRequest();
|
|
|
|
// 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 "CreateDBInstance"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline const Aws::String& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The instance identifier. This parameter is stored as a lowercase string.</p>
|
|
* <p>Constraints:</p> <ul> <li> <p>Must contain from 1 to 63 letters, numbers, or
|
|
* hyphens.</p> </li> <li> <p>The first character must be a letter.</p> </li> <li>
|
|
* <p>Cannot end with a hyphen or contain two consecutive hyphens.</p> </li> </ul>
|
|
* <p>Example: <code>mydbinstance</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The compute and memory capacity of the instance; for example,
|
|
* <code>db.r5.large</code>. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline const Aws::String& GetEngine() const{ return m_engine; }
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database engine to be used for this instance.</p> <p>Valid
|
|
* value: <code>docdb</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithEngine(const char* value) { SetEngine(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The Amazon EC2 Availability Zone that the instance is created in.</p>
|
|
* <p>Default: A random, system-chosen Availability Zone in the endpoint's AWS
|
|
* Region.</p> <p> Example: <code>us-east-1d</code> </p> <p> Constraint: The
|
|
* <code>AvailabilityZone</code> parameter can't be specified if the
|
|
* <code>MultiAZ</code> parameter is set to <code>true</code>. The specified
|
|
* Availability Zone must be in the same AWS Region as the current endpoint. </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;}
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The time range each week during which system maintenance can occur, in
|
|
* Universal Coordinated Time (UTC).</p> <p> Format:
|
|
* <code>ddd:hh24:mi-ddd:hh24:mi</code> </p> <p>The default is a 30-minute window
|
|
* selected at random from an 8-hour block of time for each AWS Region, occurring
|
|
* on a random day of the week. </p> <p>Valid days: Mon, Tue, Wed, Thu, Fri, Sat,
|
|
* Sun</p> <p>Constraints: Minimum 30-minute window.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates that minor engine upgrades are applied automatically to the
|
|
* instance during the maintenance window.</p> <p>Default: <code>true</code> </p>
|
|
*/
|
|
inline bool GetAutoMinorVersionUpgrade() const{ return m_autoMinorVersionUpgrade; }
|
|
|
|
/**
|
|
* <p>Indicates that minor engine upgrades are applied automatically to the
|
|
* instance during the maintenance window.</p> <p>Default: <code>true</code> </p>
|
|
*/
|
|
inline bool AutoMinorVersionUpgradeHasBeenSet() const { return m_autoMinorVersionUpgradeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates that minor engine upgrades are applied automatically to the
|
|
* instance during the maintenance window.</p> <p>Default: <code>true</code> </p>
|
|
*/
|
|
inline void SetAutoMinorVersionUpgrade(bool value) { m_autoMinorVersionUpgradeHasBeenSet = true; m_autoMinorVersionUpgrade = value; }
|
|
|
|
/**
|
|
* <p>Indicates that minor engine upgrades are applied automatically to the
|
|
* instance during the maintenance window.</p> <p>Default: <code>true</code> </p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithAutoMinorVersionUpgrade(bool value) { SetAutoMinorVersionUpgrade(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The tags to be assigned to the instance. You can assign up to 10 tags to an
|
|
* instance.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the cluster that the instance will belong to.</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance.</p> <p>Default: 1</p> <p>Valid values: 0-15</p>
|
|
*/
|
|
inline int GetPromotionTier() const{ return m_promotionTier; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance.</p> <p>Default: 1</p> <p>Valid values: 0-15</p>
|
|
*/
|
|
inline bool PromotionTierHasBeenSet() const { return m_promotionTierHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance.</p> <p>Default: 1</p> <p>Valid values: 0-15</p>
|
|
*/
|
|
inline void SetPromotionTier(int value) { m_promotionTierHasBeenSet = true; m_promotionTier = value; }
|
|
|
|
/**
|
|
* <p>A value that specifies the order in which an Amazon DocumentDB replica is
|
|
* promoted to the primary instance after a failure of the existing primary
|
|
* instance.</p> <p>Default: 1</p> <p>Valid values: 0-15</p>
|
|
*/
|
|
inline CreateDBInstanceRequest& WithPromotionTier(int value) { SetPromotionTier(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_dBInstanceIdentifier;
|
|
bool m_dBInstanceIdentifierHasBeenSet;
|
|
|
|
Aws::String m_dBInstanceClass;
|
|
bool m_dBInstanceClassHasBeenSet;
|
|
|
|
Aws::String m_engine;
|
|
bool m_engineHasBeenSet;
|
|
|
|
Aws::String m_availabilityZone;
|
|
bool m_availabilityZoneHasBeenSet;
|
|
|
|
Aws::String m_preferredMaintenanceWindow;
|
|
bool m_preferredMaintenanceWindowHasBeenSet;
|
|
|
|
bool m_autoMinorVersionUpgrade;
|
|
bool m_autoMinorVersionUpgradeHasBeenSet;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
|
|
Aws::String m_dBClusterIdentifier;
|
|
bool m_dBClusterIdentifierHasBeenSet;
|
|
|
|
int m_promotionTier;
|
|
bool m_promotionTierHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DocDB
|
|
} // namespace Aws
|