293 lines
9.6 KiB
C
293 lines
9.6 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/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/docdb/model/AvailabilityZone.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace DocDB
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The options that are available for an instance.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/docdb-2014-10-31/OrderableDBInstanceOption">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_DOCDB_API OrderableDBInstanceOption
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
OrderableDBInstanceOption();
|
|||
|
|
OrderableDBInstanceOption(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
OrderableDBInstanceOption& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
|
|||
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|||
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetEngine() const{ return m_engine; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine type of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngine(const char* value) { SetEngine(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The engine version of an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The instance class for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The license model for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { SetAvailabilityZones(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of Availability Zones for an instance.</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether an instance is in a virtual private cloud (VPC).</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetVpc() const{ return m_vpc; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether an instance is in a virtual private cloud (VPC).</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether an instance is in a virtual private cloud (VPC).</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVpc(bool value) { m_vpcHasBeenSet = true; m_vpc = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Indicates whether an instance is in a virtual private cloud (VPC).</p>
|
|||
|
|
*/
|
|||
|
|
inline OrderableDBInstanceOption& WithVpc(bool value) { SetVpc(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_engine;
|
|||
|
|
bool m_engineHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_engineVersion;
|
|||
|
|
bool m_engineVersionHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_dBInstanceClass;
|
|||
|
|
bool m_dBInstanceClassHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_licenseModel;
|
|||
|
|
bool m_licenseModelHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<AvailabilityZone> m_availabilityZones;
|
|||
|
|
bool m_availabilityZonesHasBeenSet;
|
|||
|
|
|
|||
|
|
bool m_vpc;
|
|||
|
|
bool m_vpcHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace DocDB
|
|||
|
|
} // namespace Aws
|