AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DbInstanceSummary.h
1
6#pragma once
7#include <aws/timestream-influxdb/TimestreamInfluxDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-influxdb/model/Status.h>
10#include <aws/timestream-influxdb/model/NetworkType.h>
11#include <aws/timestream-influxdb/model/DbInstanceType.h>
12#include <aws/timestream-influxdb/model/DbStorageType.h>
13#include <aws/timestream-influxdb/model/DeploymentType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace TimestreamInfluxDB
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary() = default;
40 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const { return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 template<typename IdT = Aws::String>
52 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
53 template<typename IdT = Aws::String>
54 DbInstanceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 DbInstanceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 template<typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
78 template<typename ArnT = Aws::String>
79 DbInstanceSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
81
83
86 inline Status GetStatus() const { return m_status; }
87 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
88 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
89 inline DbInstanceSummary& WithStatus(Status value) { SetStatus(value); return *this;}
91
93
97 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
98 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
99 template<typename EndpointT = Aws::String>
100 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
101 template<typename EndpointT = Aws::String>
102 DbInstanceSummary& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
104
106
109 inline int GetPort() const { return m_port; }
110 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
111 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
112 inline DbInstanceSummary& WithPort(int value) { SetPort(value); return *this;}
114
116
121 inline NetworkType GetNetworkType() const { return m_networkType; }
122 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
123 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
124 inline DbInstanceSummary& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
126
128
131 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
132 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
133 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
136
138
141 inline DbStorageType GetDbStorageType() const { return m_dbStorageType; }
142 inline bool DbStorageTypeHasBeenSet() const { return m_dbStorageTypeHasBeenSet; }
143 inline void SetDbStorageType(DbStorageType value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
146
148
152 inline int GetAllocatedStorage() const { return m_allocatedStorage; }
153 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
154 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
155 inline DbInstanceSummary& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
157
159
162 inline DeploymentType GetDeploymentType() const { return m_deploymentType; }
163 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
164 inline void SetDeploymentType(DeploymentType value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
167 private:
168
169 Aws::String m_id;
170 bool m_idHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_arn;
176 bool m_arnHasBeenSet = false;
177
178 Status m_status{Status::NOT_SET};
179 bool m_statusHasBeenSet = false;
180
181 Aws::String m_endpoint;
182 bool m_endpointHasBeenSet = false;
183
184 int m_port{0};
185 bool m_portHasBeenSet = false;
186
187 NetworkType m_networkType{NetworkType::NOT_SET};
188 bool m_networkTypeHasBeenSet = false;
189
190 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
191 bool m_dbInstanceTypeHasBeenSet = false;
192
193 DbStorageType m_dbStorageType{DbStorageType::NOT_SET};
194 bool m_dbStorageTypeHasBeenSet = false;
195
196 int m_allocatedStorage{0};
197 bool m_allocatedStorageHasBeenSet = false;
198
199 DeploymentType m_deploymentType{DeploymentType::NOT_SET};
200 bool m_deploymentTypeHasBeenSet = false;
201 };
202
203} // namespace Model
204} // namespace TimestreamInfluxDB
205} // namespace Aws
DbInstanceSummary & WithDbInstanceType(DbInstanceType value)
DbInstanceSummary & WithNetworkType(NetworkType value)
AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary()=default
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DbInstanceSummary & WithDbStorageType(DbStorageType value)
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
DbInstanceSummary & WithEndpoint(EndpointT &&value)
DbInstanceSummary & WithName(NameT &&value)
DbInstanceSummary & WithDeploymentType(DeploymentType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue