AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
RdsDbInstanceDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/Tag.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API RdsDbInstanceDetails() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetDbInstanceIdentifier() const { return m_dbInstanceIdentifier; }
43 inline bool DbInstanceIdentifierHasBeenSet() const { return m_dbInstanceIdentifierHasBeenSet; }
44 template <typename DbInstanceIdentifierT = Aws::String>
45 void SetDbInstanceIdentifier(DbInstanceIdentifierT&& value) {
46 m_dbInstanceIdentifierHasBeenSet = true;
47 m_dbInstanceIdentifier = std::forward<DbInstanceIdentifierT>(value);
48 }
49 template <typename DbInstanceIdentifierT = Aws::String>
50 RdsDbInstanceDetails& WithDbInstanceIdentifier(DbInstanceIdentifierT&& value) {
51 SetDbInstanceIdentifier(std::forward<DbInstanceIdentifierT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEngine() const { return m_engine; }
61 inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; }
62 template <typename EngineT = Aws::String>
63 void SetEngine(EngineT&& value) {
64 m_engineHasBeenSet = true;
65 m_engine = std::forward<EngineT>(value);
66 }
67 template <typename EngineT = Aws::String>
68 RdsDbInstanceDetails& WithEngine(EngineT&& value) {
69 SetEngine(std::forward<EngineT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetEngineVersion() const { return m_engineVersion; }
79 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
80 template <typename EngineVersionT = Aws::String>
81 void SetEngineVersion(EngineVersionT&& value) {
82 m_engineVersionHasBeenSet = true;
83 m_engineVersion = std::forward<EngineVersionT>(value);
84 }
85 template <typename EngineVersionT = Aws::String>
86 RdsDbInstanceDetails& WithEngineVersion(EngineVersionT&& value) {
87 SetEngineVersion(std::forward<EngineVersionT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDbClusterIdentifier() const { return m_dbClusterIdentifier; }
98 inline bool DbClusterIdentifierHasBeenSet() const { return m_dbClusterIdentifierHasBeenSet; }
99 template <typename DbClusterIdentifierT = Aws::String>
100 void SetDbClusterIdentifier(DbClusterIdentifierT&& value) {
101 m_dbClusterIdentifierHasBeenSet = true;
102 m_dbClusterIdentifier = std::forward<DbClusterIdentifierT>(value);
103 }
104 template <typename DbClusterIdentifierT = Aws::String>
105 RdsDbInstanceDetails& WithDbClusterIdentifier(DbClusterIdentifierT&& value) {
106 SetDbClusterIdentifier(std::forward<DbClusterIdentifierT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetDbInstanceArn() const { return m_dbInstanceArn; }
117 inline bool DbInstanceArnHasBeenSet() const { return m_dbInstanceArnHasBeenSet; }
118 template <typename DbInstanceArnT = Aws::String>
119 void SetDbInstanceArn(DbInstanceArnT&& value) {
120 m_dbInstanceArnHasBeenSet = true;
121 m_dbInstanceArn = std::forward<DbInstanceArnT>(value);
122 }
123 template <typename DbInstanceArnT = Aws::String>
124 RdsDbInstanceDetails& WithDbInstanceArn(DbInstanceArnT&& value) {
125 SetDbInstanceArn(std::forward<DbInstanceArnT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetDbiResourceId() const { return m_dbiResourceId; }
136 inline bool DbiResourceIdHasBeenSet() const { return m_dbiResourceIdHasBeenSet; }
137 template <typename DbiResourceIdT = Aws::String>
138 void SetDbiResourceId(DbiResourceIdT&& value) {
139 m_dbiResourceIdHasBeenSet = true;
140 m_dbiResourceId = std::forward<DbiResourceIdT>(value);
141 }
142 template <typename DbiResourceIdT = Aws::String>
143 RdsDbInstanceDetails& WithDbiResourceId(DbiResourceIdT&& value) {
144 SetDbiResourceId(std::forward<DbiResourceIdT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template <typename TagsT = Aws::Vector<Tag>>
156 void SetTags(TagsT&& value) {
157 m_tagsHasBeenSet = true;
158 m_tags = std::forward<TagsT>(value);
159 }
160 template <typename TagsT = Aws::Vector<Tag>>
162 SetTags(std::forward<TagsT>(value));
163 return *this;
164 }
165 template <typename TagsT = Tag>
167 m_tagsHasBeenSet = true;
168 m_tags.emplace_back(std::forward<TagsT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_dbInstanceIdentifier;
174
175 Aws::String m_engine;
176
177 Aws::String m_engineVersion;
178
179 Aws::String m_dbClusterIdentifier;
180
181 Aws::String m_dbInstanceArn;
182
183 Aws::String m_dbiResourceId;
184
185 Aws::Vector<Tag> m_tags;
186 bool m_dbInstanceIdentifierHasBeenSet = false;
187 bool m_engineHasBeenSet = false;
188 bool m_engineVersionHasBeenSet = false;
189 bool m_dbClusterIdentifierHasBeenSet = false;
190 bool m_dbInstanceArnHasBeenSet = false;
191 bool m_dbiResourceIdHasBeenSet = false;
192 bool m_tagsHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace GuardDuty
197} // namespace Aws
AWS_GUARDDUTY_API RdsDbInstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDbClusterIdentifier(DbClusterIdentifierT &&value)
RdsDbInstanceDetails & WithTags(TagsT &&value)
void SetDbInstanceIdentifier(DbInstanceIdentifierT &&value)
RdsDbInstanceDetails & WithDbInstanceArn(DbInstanceArnT &&value)
RdsDbInstanceDetails & AddTags(TagsT &&value)
RdsDbInstanceDetails & WithDbClusterIdentifier(DbClusterIdentifierT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
RdsDbInstanceDetails & WithEngine(EngineT &&value)
RdsDbInstanceDetails & WithEngineVersion(EngineVersionT &&value)
const Aws::String & GetDbInstanceIdentifier() const
AWS_GUARDDUTY_API RdsDbInstanceDetails()=default
const Aws::Vector< Tag > & GetTags() const
RdsDbInstanceDetails & WithDbiResourceId(DbiResourceIdT &&value)
AWS_GUARDDUTY_API RdsDbInstanceDetails(Aws::Utils::Json::JsonView jsonValue)
RdsDbInstanceDetails & WithDbInstanceIdentifier(DbInstanceIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue