AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OrderableDBInstanceOption.h
1
6#pragma once
7#include <aws/docdb/DocDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/docdb/model/AvailabilityZone.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace DocDB
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetEngine() const{ return m_engine; }
49 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
50 inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; }
51 inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); }
52 inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); }
53 inline OrderableDBInstanceOption& WithEngine(const Aws::String& value) { SetEngine(value); return *this;}
54 inline OrderableDBInstanceOption& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;}
55 inline OrderableDBInstanceOption& WithEngine(const char* value) { SetEngine(value); return *this;}
57
59
62 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
63 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
64 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
65 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
66 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
67 inline OrderableDBInstanceOption& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
68 inline OrderableDBInstanceOption& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
69 inline OrderableDBInstanceOption& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
71
73
76 inline const Aws::String& GetDBInstanceClass() const{ return m_dBInstanceClass; }
77 inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
78 inline void SetDBInstanceClass(const Aws::String& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = value; }
79 inline void SetDBInstanceClass(Aws::String&& value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass = std::move(value); }
80 inline void SetDBInstanceClass(const char* value) { m_dBInstanceClassHasBeenSet = true; m_dBInstanceClass.assign(value); }
81 inline OrderableDBInstanceOption& WithDBInstanceClass(const Aws::String& value) { SetDBInstanceClass(value); return *this;}
82 inline OrderableDBInstanceOption& WithDBInstanceClass(Aws::String&& value) { SetDBInstanceClass(std::move(value)); return *this;}
83 inline OrderableDBInstanceOption& WithDBInstanceClass(const char* value) { SetDBInstanceClass(value); return *this;}
85
87
90 inline const Aws::String& GetLicenseModel() const{ return m_licenseModel; }
91 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
92 inline void SetLicenseModel(const Aws::String& value) { m_licenseModelHasBeenSet = true; m_licenseModel = value; }
93 inline void SetLicenseModel(Aws::String&& value) { m_licenseModelHasBeenSet = true; m_licenseModel = std::move(value); }
94 inline void SetLicenseModel(const char* value) { m_licenseModelHasBeenSet = true; m_licenseModel.assign(value); }
95 inline OrderableDBInstanceOption& WithLicenseModel(const Aws::String& value) { SetLicenseModel(value); return *this;}
96 inline OrderableDBInstanceOption& WithLicenseModel(Aws::String&& value) { SetLicenseModel(std::move(value)); return *this;}
97 inline OrderableDBInstanceOption& WithLicenseModel(const char* value) { SetLicenseModel(value); return *this;}
99
101
104 inline const Aws::Vector<AvailabilityZone>& GetAvailabilityZones() const{ return m_availabilityZones; }
105 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
106 inline void SetAvailabilityZones(const Aws::Vector<AvailabilityZone>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
107 inline void SetAvailabilityZones(Aws::Vector<AvailabilityZone>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
110 inline OrderableDBInstanceOption& AddAvailabilityZones(const AvailabilityZone& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
111 inline OrderableDBInstanceOption& AddAvailabilityZones(AvailabilityZone&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
113
115
118 inline bool GetVpc() const{ return m_vpc; }
119 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
120 inline void SetVpc(bool value) { m_vpcHasBeenSet = true; m_vpc = value; }
121 inline OrderableDBInstanceOption& WithVpc(bool value) { SetVpc(value); return *this;}
123
125
128 inline const Aws::String& GetStorageType() const{ return m_storageType; }
129 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
130 inline void SetStorageType(const Aws::String& value) { m_storageTypeHasBeenSet = true; m_storageType = value; }
131 inline void SetStorageType(Aws::String&& value) { m_storageTypeHasBeenSet = true; m_storageType = std::move(value); }
132 inline void SetStorageType(const char* value) { m_storageTypeHasBeenSet = true; m_storageType.assign(value); }
133 inline OrderableDBInstanceOption& WithStorageType(const Aws::String& value) { SetStorageType(value); return *this;}
134 inline OrderableDBInstanceOption& WithStorageType(Aws::String&& value) { SetStorageType(std::move(value)); return *this;}
135 inline OrderableDBInstanceOption& WithStorageType(const char* value) { SetStorageType(value); return *this;}
137 private:
138
139 Aws::String m_engine;
140 bool m_engineHasBeenSet = false;
141
142 Aws::String m_engineVersion;
143 bool m_engineVersionHasBeenSet = false;
144
145 Aws::String m_dBInstanceClass;
146 bool m_dBInstanceClassHasBeenSet = false;
147
148 Aws::String m_licenseModel;
149 bool m_licenseModelHasBeenSet = false;
150
151 Aws::Vector<AvailabilityZone> m_availabilityZones;
152 bool m_availabilityZonesHasBeenSet = false;
153
154 bool m_vpc;
155 bool m_vpcHasBeenSet = false;
156
157 Aws::String m_storageType;
158 bool m_storageTypeHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace DocDB
163} // namespace Aws
AWS_DOCDB_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OrderableDBInstanceOption & WithLicenseModel(const Aws::String &value)
OrderableDBInstanceOption & WithEngineVersion(const char *value)
OrderableDBInstanceOption & WithLicenseModel(const char *value)
void SetAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
OrderableDBInstanceOption & WithAvailabilityZones(Aws::Vector< AvailabilityZone > &&value)
AWS_DOCDB_API OrderableDBInstanceOption & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
OrderableDBInstanceOption & WithVpc(bool value)
OrderableDBInstanceOption & WithAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
OrderableDBInstanceOption & WithDBInstanceClass(const char *value)
OrderableDBInstanceOption & WithDBInstanceClass(Aws::String &&value)
AWS_DOCDB_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAvailabilityZones(const Aws::Vector< AvailabilityZone > &value)
OrderableDBInstanceOption & WithEngineVersion(Aws::String &&value)
OrderableDBInstanceOption & AddAvailabilityZones(AvailabilityZone &&value)
OrderableDBInstanceOption & WithStorageType(const char *value)
OrderableDBInstanceOption & WithEngine(const char *value)
OrderableDBInstanceOption & WithEngineVersion(const Aws::String &value)
OrderableDBInstanceOption & WithStorageType(Aws::String &&value)
OrderableDBInstanceOption & WithDBInstanceClass(const Aws::String &value)
OrderableDBInstanceOption & WithEngine(Aws::String &&value)
AWS_DOCDB_API OrderableDBInstanceOption(const Aws::Utils::Xml::XmlNode &xmlNode)
OrderableDBInstanceOption & AddAvailabilityZones(const AvailabilityZone &value)
const Aws::Vector< AvailabilityZone > & GetAvailabilityZones() const
OrderableDBInstanceOption & WithLicenseModel(Aws::String &&value)
OrderableDBInstanceOption & WithEngine(const Aws::String &value)
OrderableDBInstanceOption & WithStorageType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream