AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
DomainPackageDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11#include <aws/opensearch/model/DomainPackageStatus.h>
12#include <aws/opensearch/model/ErrorDetails.h>
13#include <aws/opensearch/model/PackageAssociationConfiguration.h>
14#include <aws/opensearch/model/PackageType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService {
26namespace Model {
27
37 public:
38 AWS_OPENSEARCHSERVICE_API DomainPackageDetails() = default;
39 AWS_OPENSEARCHSERVICE_API DomainPackageDetails(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API DomainPackageDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetPackageID() const { return m_packageID; }
48 inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; }
49 template <typename PackageIDT = Aws::String>
50 void SetPackageID(PackageIDT&& value) {
51 m_packageIDHasBeenSet = true;
52 m_packageID = std::forward<PackageIDT>(value);
53 }
54 template <typename PackageIDT = Aws::String>
55 DomainPackageDetails& WithPackageID(PackageIDT&& value) {
56 SetPackageID(std::forward<PackageIDT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetPackageName() const { return m_packageName; }
66 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
67 template <typename PackageNameT = Aws::String>
68 void SetPackageName(PackageNameT&& value) {
69 m_packageNameHasBeenSet = true;
70 m_packageName = std::forward<PackageNameT>(value);
71 }
72 template <typename PackageNameT = Aws::String>
73 DomainPackageDetails& WithPackageName(PackageNameT&& value) {
74 SetPackageName(std::forward<PackageNameT>(value));
75 return *this;
76 }
78
80
83 inline PackageType GetPackageType() const { return m_packageType; }
84 inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; }
85 inline void SetPackageType(PackageType value) {
86 m_packageTypeHasBeenSet = true;
87 m_packageType = value;
88 }
90 SetPackageType(value);
91 return *this;
92 }
94
96
99 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
100 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
101 template <typename LastUpdatedT = Aws::Utils::DateTime>
102 void SetLastUpdated(LastUpdatedT&& value) {
103 m_lastUpdatedHasBeenSet = true;
104 m_lastUpdated = std::forward<LastUpdatedT>(value);
105 }
106 template <typename LastUpdatedT = Aws::Utils::DateTime>
107 DomainPackageDetails& WithLastUpdated(LastUpdatedT&& value) {
108 SetLastUpdated(std::forward<LastUpdatedT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetDomainName() const { return m_domainName; }
118 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
119 template <typename DomainNameT = Aws::String>
120 void SetDomainName(DomainNameT&& value) {
121 m_domainNameHasBeenSet = true;
122 m_domainName = std::forward<DomainNameT>(value);
123 }
124 template <typename DomainNameT = Aws::String>
125 DomainPackageDetails& WithDomainName(DomainNameT&& value) {
126 SetDomainName(std::forward<DomainNameT>(value));
127 return *this;
128 }
130
132
135 inline DomainPackageStatus GetDomainPackageStatus() const { return m_domainPackageStatus; }
136 inline bool DomainPackageStatusHasBeenSet() const { return m_domainPackageStatusHasBeenSet; }
138 m_domainPackageStatusHasBeenSet = true;
139 m_domainPackageStatus = value;
140 }
143 return *this;
144 }
146
148
151 inline const Aws::String& GetPackageVersion() const { return m_packageVersion; }
152 inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
153 template <typename PackageVersionT = Aws::String>
154 void SetPackageVersion(PackageVersionT&& value) {
155 m_packageVersionHasBeenSet = true;
156 m_packageVersion = std::forward<PackageVersionT>(value);
157 }
158 template <typename PackageVersionT = Aws::String>
159 DomainPackageDetails& WithPackageVersion(PackageVersionT&& value) {
160 SetPackageVersion(std::forward<PackageVersionT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::Vector<Aws::String>& GetPrerequisitePackageIDList() const { return m_prerequisitePackageIDList; }
171 inline bool PrerequisitePackageIDListHasBeenSet() const { return m_prerequisitePackageIDListHasBeenSet; }
172 template <typename PrerequisitePackageIDListT = Aws::Vector<Aws::String>>
173 void SetPrerequisitePackageIDList(PrerequisitePackageIDListT&& value) {
174 m_prerequisitePackageIDListHasBeenSet = true;
175 m_prerequisitePackageIDList = std::forward<PrerequisitePackageIDListT>(value);
176 }
177 template <typename PrerequisitePackageIDListT = Aws::Vector<Aws::String>>
178 DomainPackageDetails& WithPrerequisitePackageIDList(PrerequisitePackageIDListT&& value) {
179 SetPrerequisitePackageIDList(std::forward<PrerequisitePackageIDListT>(value));
180 return *this;
181 }
182 template <typename PrerequisitePackageIDListT = Aws::String>
183 DomainPackageDetails& AddPrerequisitePackageIDList(PrerequisitePackageIDListT&& value) {
184 m_prerequisitePackageIDListHasBeenSet = true;
185 m_prerequisitePackageIDList.emplace_back(std::forward<PrerequisitePackageIDListT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetReferencePath() const { return m_referencePath; }
196 inline bool ReferencePathHasBeenSet() const { return m_referencePathHasBeenSet; }
197 template <typename ReferencePathT = Aws::String>
198 void SetReferencePath(ReferencePathT&& value) {
199 m_referencePathHasBeenSet = true;
200 m_referencePath = std::forward<ReferencePathT>(value);
201 }
202 template <typename ReferencePathT = Aws::String>
203 DomainPackageDetails& WithReferencePath(ReferencePathT&& value) {
204 SetReferencePath(std::forward<ReferencePathT>(value));
205 return *this;
206 }
208
210
214 inline const ErrorDetails& GetErrorDetails() const { return m_errorDetails; }
215 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
216 template <typename ErrorDetailsT = ErrorDetails>
217 void SetErrorDetails(ErrorDetailsT&& value) {
218 m_errorDetailsHasBeenSet = true;
219 m_errorDetails = std::forward<ErrorDetailsT>(value);
220 }
221 template <typename ErrorDetailsT = ErrorDetails>
222 DomainPackageDetails& WithErrorDetails(ErrorDetailsT&& value) {
223 SetErrorDetails(std::forward<ErrorDetailsT>(value));
224 return *this;
225 }
227
229
233 inline const PackageAssociationConfiguration& GetAssociationConfiguration() const { return m_associationConfiguration; }
234 inline bool AssociationConfigurationHasBeenSet() const { return m_associationConfigurationHasBeenSet; }
235 template <typename AssociationConfigurationT = PackageAssociationConfiguration>
236 void SetAssociationConfiguration(AssociationConfigurationT&& value) {
237 m_associationConfigurationHasBeenSet = true;
238 m_associationConfiguration = std::forward<AssociationConfigurationT>(value);
239 }
240 template <typename AssociationConfigurationT = PackageAssociationConfiguration>
241 DomainPackageDetails& WithAssociationConfiguration(AssociationConfigurationT&& value) {
242 SetAssociationConfiguration(std::forward<AssociationConfigurationT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_packageID;
248
249 Aws::String m_packageName;
250
251 PackageType m_packageType{PackageType::NOT_SET};
252
253 Aws::Utils::DateTime m_lastUpdated{};
254
255 Aws::String m_domainName;
256
258
259 Aws::String m_packageVersion;
260
261 Aws::Vector<Aws::String> m_prerequisitePackageIDList;
262
263 Aws::String m_referencePath;
264
265 ErrorDetails m_errorDetails;
266
267 PackageAssociationConfiguration m_associationConfiguration;
268 bool m_packageIDHasBeenSet = false;
269 bool m_packageNameHasBeenSet = false;
270 bool m_packageTypeHasBeenSet = false;
271 bool m_lastUpdatedHasBeenSet = false;
272 bool m_domainNameHasBeenSet = false;
273 bool m_domainPackageStatusHasBeenSet = false;
274 bool m_packageVersionHasBeenSet = false;
275 bool m_prerequisitePackageIDListHasBeenSet = false;
276 bool m_referencePathHasBeenSet = false;
277 bool m_errorDetailsHasBeenSet = false;
278 bool m_associationConfigurationHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace OpenSearchService
283} // namespace Aws
DomainPackageDetails & AddPrerequisitePackageIDList(PrerequisitePackageIDListT &&value)
AWS_OPENSEARCHSERVICE_API DomainPackageDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API DomainPackageDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
DomainPackageDetails & WithAssociationConfiguration(AssociationConfigurationT &&value)
void SetAssociationConfiguration(AssociationConfigurationT &&value)
const Aws::Utils::DateTime & GetLastUpdated() const
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
DomainPackageDetails & WithDomainPackageStatus(DomainPackageStatus value)
DomainPackageDetails & WithLastUpdated(LastUpdatedT &&value)
void SetPrerequisitePackageIDList(PrerequisitePackageIDListT &&value)
const Aws::Vector< Aws::String > & GetPrerequisitePackageIDList() const
DomainPackageDetails & WithPackageType(PackageType value)
DomainPackageDetails & WithPackageVersion(PackageVersionT &&value)
DomainPackageDetails & WithPackageName(PackageNameT &&value)
DomainPackageDetails & WithReferencePath(ReferencePathT &&value)
AWS_OPENSEARCHSERVICE_API DomainPackageDetails()=default
DomainPackageDetails & WithDomainName(DomainNameT &&value)
DomainPackageDetails & WithPrerequisitePackageIDList(PrerequisitePackageIDListT &&value)
DomainPackageDetails & WithErrorDetails(ErrorDetailsT &&value)
const PackageAssociationConfiguration & GetAssociationConfiguration() const
DomainPackageDetails & WithPackageID(PackageIDT &&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