AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
DryRunProgressStatus.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/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/ValidationFailure.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchService {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVICE_API DryRunProgressStatus() = default;
33 AWS_OPENSEARCHSERVICE_API DryRunProgressStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API DryRunProgressStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetDryRunId() const { return m_dryRunId; }
42 inline bool DryRunIdHasBeenSet() const { return m_dryRunIdHasBeenSet; }
43 template <typename DryRunIdT = Aws::String>
44 void SetDryRunId(DryRunIdT&& value) {
45 m_dryRunIdHasBeenSet = true;
46 m_dryRunId = std::forward<DryRunIdT>(value);
47 }
48 template <typename DryRunIdT = Aws::String>
49 DryRunProgressStatus& WithDryRunId(DryRunIdT&& value) {
50 SetDryRunId(std::forward<DryRunIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDryRunStatus() const { return m_dryRunStatus; }
60 inline bool DryRunStatusHasBeenSet() const { return m_dryRunStatusHasBeenSet; }
61 template <typename DryRunStatusT = Aws::String>
62 void SetDryRunStatus(DryRunStatusT&& value) {
63 m_dryRunStatusHasBeenSet = true;
64 m_dryRunStatus = std::forward<DryRunStatusT>(value);
65 }
66 template <typename DryRunStatusT = Aws::String>
67 DryRunProgressStatus& WithDryRunStatus(DryRunStatusT&& value) {
68 SetDryRunStatus(std::forward<DryRunStatusT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
78 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
79 template <typename CreationDateT = Aws::String>
80 void SetCreationDate(CreationDateT&& value) {
81 m_creationDateHasBeenSet = true;
82 m_creationDate = std::forward<CreationDateT>(value);
83 }
84 template <typename CreationDateT = Aws::String>
85 DryRunProgressStatus& WithCreationDate(CreationDateT&& value) {
86 SetCreationDate(std::forward<CreationDateT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetUpdateDate() const { return m_updateDate; }
96 inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; }
97 template <typename UpdateDateT = Aws::String>
98 void SetUpdateDate(UpdateDateT&& value) {
99 m_updateDateHasBeenSet = true;
100 m_updateDate = std::forward<UpdateDateT>(value);
101 }
102 template <typename UpdateDateT = Aws::String>
103 DryRunProgressStatus& WithUpdateDate(UpdateDateT&& value) {
104 SetUpdateDate(std::forward<UpdateDateT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<ValidationFailure>& GetValidationFailures() const { return m_validationFailures; }
114 inline bool ValidationFailuresHasBeenSet() const { return m_validationFailuresHasBeenSet; }
115 template <typename ValidationFailuresT = Aws::Vector<ValidationFailure>>
116 void SetValidationFailures(ValidationFailuresT&& value) {
117 m_validationFailuresHasBeenSet = true;
118 m_validationFailures = std::forward<ValidationFailuresT>(value);
119 }
120 template <typename ValidationFailuresT = Aws::Vector<ValidationFailure>>
121 DryRunProgressStatus& WithValidationFailures(ValidationFailuresT&& value) {
122 SetValidationFailures(std::forward<ValidationFailuresT>(value));
123 return *this;
124 }
125 template <typename ValidationFailuresT = ValidationFailure>
126 DryRunProgressStatus& AddValidationFailures(ValidationFailuresT&& value) {
127 m_validationFailuresHasBeenSet = true;
128 m_validationFailures.emplace_back(std::forward<ValidationFailuresT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Vector<Aws::String>& GetAcceptedWarnings() const { return m_acceptedWarnings; }
139 inline bool AcceptedWarningsHasBeenSet() const { return m_acceptedWarningsHasBeenSet; }
140 template <typename AcceptedWarningsT = Aws::Vector<Aws::String>>
141 void SetAcceptedWarnings(AcceptedWarningsT&& value) {
142 m_acceptedWarningsHasBeenSet = true;
143 m_acceptedWarnings = std::forward<AcceptedWarningsT>(value);
144 }
145 template <typename AcceptedWarningsT = Aws::Vector<Aws::String>>
146 DryRunProgressStatus& WithAcceptedWarnings(AcceptedWarningsT&& value) {
147 SetAcceptedWarnings(std::forward<AcceptedWarningsT>(value));
148 return *this;
149 }
150 template <typename AcceptedWarningsT = Aws::String>
151 DryRunProgressStatus& AddAcceptedWarnings(AcceptedWarningsT&& value) {
152 m_acceptedWarningsHasBeenSet = true;
153 m_acceptedWarnings.emplace_back(std::forward<AcceptedWarningsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_dryRunId;
159
160 Aws::String m_dryRunStatus;
161
162 Aws::String m_creationDate;
163
164 Aws::String m_updateDate;
165
166 Aws::Vector<ValidationFailure> m_validationFailures;
167
168 Aws::Vector<Aws::String> m_acceptedWarnings;
169 bool m_dryRunIdHasBeenSet = false;
170 bool m_dryRunStatusHasBeenSet = false;
171 bool m_creationDateHasBeenSet = false;
172 bool m_updateDateHasBeenSet = false;
173 bool m_validationFailuresHasBeenSet = false;
174 bool m_acceptedWarningsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace OpenSearchService
179} // namespace Aws
DryRunProgressStatus & AddValidationFailures(ValidationFailuresT &&value)
DryRunProgressStatus & WithDryRunId(DryRunIdT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API DryRunProgressStatus()=default
DryRunProgressStatus & WithAcceptedWarnings(AcceptedWarningsT &&value)
const Aws::Vector< ValidationFailure > & GetValidationFailures() const
DryRunProgressStatus & WithCreationDate(CreationDateT &&value)
DryRunProgressStatus & WithValidationFailures(ValidationFailuresT &&value)
AWS_OPENSEARCHSERVICE_API DryRunProgressStatus(Aws::Utils::Json::JsonView jsonValue)
DryRunProgressStatus & WithUpdateDate(UpdateDateT &&value)
DryRunProgressStatus & WithDryRunStatus(DryRunStatusT &&value)
AWS_OPENSEARCHSERVICE_API DryRunProgressStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAcceptedWarnings() const
DryRunProgressStatus & AddAcceptedWarnings(AcceptedWarningsT &&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