AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ChangeProgressDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/ConfigChangeStatus.h>
11#include <aws/opensearch/model/InitiatedBy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService {
23namespace Model {
24
32 public:
33 AWS_OPENSEARCHSERVICE_API ChangeProgressDetails() = default;
34 AWS_OPENSEARCHSERVICE_API ChangeProgressDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API ChangeProgressDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetChangeId() const { return m_changeId; }
43 inline bool ChangeIdHasBeenSet() const { return m_changeIdHasBeenSet; }
44 template <typename ChangeIdT = Aws::String>
45 void SetChangeId(ChangeIdT&& value) {
46 m_changeIdHasBeenSet = true;
47 m_changeId = std::forward<ChangeIdT>(value);
48 }
49 template <typename ChangeIdT = Aws::String>
50 ChangeProgressDetails& WithChangeId(ChangeIdT&& value) {
51 SetChangeId(std::forward<ChangeIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetMessage() const { return m_message; }
61 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
62 template <typename MessageT = Aws::String>
63 void SetMessage(MessageT&& value) {
64 m_messageHasBeenSet = true;
65 m_message = std::forward<MessageT>(value);
66 }
67 template <typename MessageT = Aws::String>
69 SetMessage(std::forward<MessageT>(value));
70 return *this;
71 }
73
75
78 inline ConfigChangeStatus GetConfigChangeStatus() const { return m_configChangeStatus; }
79 inline bool ConfigChangeStatusHasBeenSet() const { return m_configChangeStatusHasBeenSet; }
81 m_configChangeStatusHasBeenSet = true;
82 m_configChangeStatus = value;
83 }
86 return *this;
87 }
89
91
94 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
95 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
96 inline void SetInitiatedBy(InitiatedBy value) {
97 m_initiatedByHasBeenSet = true;
98 m_initiatedBy = value;
99 }
101 SetInitiatedBy(value);
102 return *this;
103 }
105
107
111 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
112 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
113 template <typename StartTimeT = Aws::Utils::DateTime>
114 void SetStartTime(StartTimeT&& value) {
115 m_startTimeHasBeenSet = true;
116 m_startTime = std::forward<StartTimeT>(value);
117 }
118 template <typename StartTimeT = Aws::Utils::DateTime>
120 SetStartTime(std::forward<StartTimeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
130 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
131 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
132 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
133 m_lastUpdatedTimeHasBeenSet = true;
134 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
135 }
136 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
137 ChangeProgressDetails& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
138 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_changeId;
144
145 Aws::String m_message;
146
148
149 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
150
151 Aws::Utils::DateTime m_startTime{};
152
153 Aws::Utils::DateTime m_lastUpdatedTime{};
154 bool m_changeIdHasBeenSet = false;
155 bool m_messageHasBeenSet = false;
156 bool m_configChangeStatusHasBeenSet = false;
157 bool m_initiatedByHasBeenSet = false;
158 bool m_startTimeHasBeenSet = false;
159 bool m_lastUpdatedTimeHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace OpenSearchService
164} // namespace Aws
ChangeProgressDetails & WithChangeId(ChangeIdT &&value)
ChangeProgressDetails & WithInitiatedBy(InitiatedBy value)
ChangeProgressDetails & WithStartTime(StartTimeT &&value)
ChangeProgressDetails & WithLastUpdatedTime(LastUpdatedTimeT &&value)
ChangeProgressDetails & WithMessage(MessageT &&value)
ChangeProgressDetails & WithConfigChangeStatus(ConfigChangeStatus value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API ChangeProgressDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_OPENSEARCHSERVICE_API ChangeProgressDetails()=default
AWS_OPENSEARCHSERVICE_API ChangeProgressDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue