AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/DbInstanceType.h>
11#include <aws/timestream-influxdb/model/DbStorageType.h>
12#include <aws/timestream-influxdb/model/DeploymentType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace TimestreamInfluxDB
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary();
39 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline DbInstanceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline DbInstanceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline DbInstanceSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline DbInstanceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline DbInstanceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline DbInstanceSummary& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetArn() const{ return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
81 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
82 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
83 inline DbInstanceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
84 inline DbInstanceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
85 inline DbInstanceSummary& WithArn(const char* value) { SetArn(value); return *this;}
87
89
92 inline const Status& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline DbInstanceSummary& WithStatus(const Status& value) { SetStatus(value); return *this;}
97 inline DbInstanceSummary& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
99
101
105 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
106 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
107 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
108 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
109 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
110 inline DbInstanceSummary& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
111 inline DbInstanceSummary& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
112 inline DbInstanceSummary& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
114
116
119 inline int GetPort() const{ return m_port; }
120 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
121 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
122 inline DbInstanceSummary& WithPort(int value) { SetPort(value); return *this;}
124
126
129 inline const DbInstanceType& GetDbInstanceType() const{ return m_dbInstanceType; }
130 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
131 inline void SetDbInstanceType(const DbInstanceType& value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
132 inline void SetDbInstanceType(DbInstanceType&& value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = std::move(value); }
133 inline DbInstanceSummary& WithDbInstanceType(const DbInstanceType& value) { SetDbInstanceType(value); return *this;}
134 inline DbInstanceSummary& WithDbInstanceType(DbInstanceType&& value) { SetDbInstanceType(std::move(value)); return *this;}
136
138
141 inline const DbStorageType& GetDbStorageType() const{ return m_dbStorageType; }
142 inline bool DbStorageTypeHasBeenSet() const { return m_dbStorageTypeHasBeenSet; }
143 inline void SetDbStorageType(const DbStorageType& value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = value; }
144 inline void SetDbStorageType(DbStorageType&& value) { m_dbStorageTypeHasBeenSet = true; m_dbStorageType = std::move(value); }
145 inline DbInstanceSummary& WithDbStorageType(const DbStorageType& value) { SetDbStorageType(value); return *this;}
146 inline DbInstanceSummary& WithDbStorageType(DbStorageType&& value) { SetDbStorageType(std::move(value)); return *this;}
148
150
154 inline int GetAllocatedStorage() const{ return m_allocatedStorage; }
155 inline bool AllocatedStorageHasBeenSet() const { return m_allocatedStorageHasBeenSet; }
156 inline void SetAllocatedStorage(int value) { m_allocatedStorageHasBeenSet = true; m_allocatedStorage = value; }
157 inline DbInstanceSummary& WithAllocatedStorage(int value) { SetAllocatedStorage(value); return *this;}
159
161
164 inline const DeploymentType& GetDeploymentType() const{ return m_deploymentType; }
165 inline bool DeploymentTypeHasBeenSet() const { return m_deploymentTypeHasBeenSet; }
166 inline void SetDeploymentType(const DeploymentType& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = value; }
167 inline void SetDeploymentType(DeploymentType&& value) { m_deploymentTypeHasBeenSet = true; m_deploymentType = std::move(value); }
168 inline DbInstanceSummary& WithDeploymentType(const DeploymentType& value) { SetDeploymentType(value); return *this;}
169 inline DbInstanceSummary& WithDeploymentType(DeploymentType&& value) { SetDeploymentType(std::move(value)); return *this;}
171 private:
172
173 Aws::String m_id;
174 bool m_idHasBeenSet = false;
175
176 Aws::String m_name;
177 bool m_nameHasBeenSet = false;
178
179 Aws::String m_arn;
180 bool m_arnHasBeenSet = false;
181
182 Status m_status;
183 bool m_statusHasBeenSet = false;
184
185 Aws::String m_endpoint;
186 bool m_endpointHasBeenSet = false;
187
188 int m_port;
189 bool m_portHasBeenSet = false;
190
191 DbInstanceType m_dbInstanceType;
192 bool m_dbInstanceTypeHasBeenSet = false;
193
194 DbStorageType m_dbStorageType;
195 bool m_dbStorageTypeHasBeenSet = false;
196
197 int m_allocatedStorage;
198 bool m_allocatedStorageHasBeenSet = false;
199
200 DeploymentType m_deploymentType;
201 bool m_deploymentTypeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace TimestreamInfluxDB
206} // namespace Aws
DbInstanceSummary & WithEndpoint(Aws::String &&value)
DbInstanceSummary & WithStatus(const Status &value)
void SetDbStorageType(const DbStorageType &value)
DbInstanceSummary & WithId(const Aws::String &value)
DbInstanceSummary & WithArn(Aws::String &&value)
DbInstanceSummary & WithId(const char *value)
DbInstanceSummary & WithName(const char *value)
AWS_TIMESTREAMINFLUXDB_API Aws::Utils::Json::JsonValue Jsonize() const
DbInstanceSummary & WithEndpoint(const char *value)
DbInstanceSummary & WithArn(const char *value)
DbInstanceSummary & WithName(const Aws::String &value)
DbInstanceSummary & WithDbStorageType(const DbStorageType &value)
DbInstanceSummary & WithId(Aws::String &&value)
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DbInstanceSummary & WithStatus(Status &&value)
void SetDeploymentType(const DeploymentType &value)
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary(Aws::Utils::Json::JsonView jsonValue)
void SetDbInstanceType(const DbInstanceType &value)
DbInstanceSummary & WithDeploymentType(const DeploymentType &value)
DbInstanceSummary & WithDbStorageType(DbStorageType &&value)
DbInstanceSummary & WithEndpoint(const Aws::String &value)
DbInstanceSummary & WithDbInstanceType(const DbInstanceType &value)
DbInstanceSummary & WithArn(const Aws::String &value)
DbInstanceSummary & WithName(Aws::String &&value)
AWS_TIMESTREAMINFLUXDB_API DbInstanceSummary()
DbInstanceSummary & WithDbInstanceType(DbInstanceType &&value)
DbInstanceSummary & WithDeploymentType(DeploymentType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue