AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/es/ElasticsearchService_EXPORTS.h>
10#include <aws/es/model/ConfigChangeStatus.h>
11#include <aws/es/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 ElasticsearchService {
23namespace Model {
24
32 public:
33 AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails() = default;
34 AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetChangeId() const { return m_changeId; }
44 inline bool ChangeIdHasBeenSet() const { return m_changeIdHasBeenSet; }
45 template <typename ChangeIdT = Aws::String>
46 void SetChangeId(ChangeIdT&& value) {
47 m_changeIdHasBeenSet = true;
48 m_changeId = std::forward<ChangeIdT>(value);
49 }
50 template <typename ChangeIdT = Aws::String>
51 ChangeProgressDetails& WithChangeId(ChangeIdT&& value) {
52 SetChangeId(std::forward<ChangeIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetMessage() const { return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 template <typename MessageT = Aws::String>
65 void SetMessage(MessageT&& value) {
66 m_messageHasBeenSet = true;
67 m_message = std::forward<MessageT>(value);
68 }
69 template <typename MessageT = Aws::String>
71 SetMessage(std::forward<MessageT>(value));
72 return *this;
73 }
75
77
80 inline ConfigChangeStatus GetConfigChangeStatus() const { return m_configChangeStatus; }
81 inline bool ConfigChangeStatusHasBeenSet() const { return m_configChangeStatusHasBeenSet; }
83 m_configChangeStatusHasBeenSet = true;
84 m_configChangeStatus = value;
85 }
88 return *this;
89 }
91
93
97 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
98 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
99 template <typename StartTimeT = Aws::Utils::DateTime>
100 void SetStartTime(StartTimeT&& value) {
101 m_startTimeHasBeenSet = true;
102 m_startTime = std::forward<StartTimeT>(value);
103 }
104 template <typename StartTimeT = Aws::Utils::DateTime>
106 SetStartTime(std::forward<StartTimeT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
116 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
117 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
118 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
119 m_lastUpdatedTimeHasBeenSet = true;
120 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
121 }
122 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
123 ChangeProgressDetails& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
124 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
125 return *this;
126 }
128
130
133 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
134 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
135 inline void SetInitiatedBy(InitiatedBy value) {
136 m_initiatedByHasBeenSet = true;
137 m_initiatedBy = value;
138 }
140 SetInitiatedBy(value);
141 return *this;
142 }
144 private:
145 Aws::String m_changeId;
146
147 Aws::String m_message;
148
150
151 Aws::Utils::DateTime m_startTime{};
152
153 Aws::Utils::DateTime m_lastUpdatedTime{};
154
155 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
156 bool m_changeIdHasBeenSet = false;
157 bool m_messageHasBeenSet = false;
158 bool m_configChangeStatusHasBeenSet = false;
159 bool m_startTimeHasBeenSet = false;
160 bool m_lastUpdatedTimeHasBeenSet = false;
161 bool m_initiatedByHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace ElasticsearchService
166} // namespace Aws
ChangeProgressDetails & WithConfigChangeStatus(ConfigChangeStatus value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ChangeProgressDetails & WithStartTime(StartTimeT &&value)
AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails(Aws::Utils::Json::JsonView jsonValue)
ChangeProgressDetails & WithInitiatedBy(InitiatedBy value)
AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ChangeProgressDetails & WithChangeId(ChangeIdT &&value)
ChangeProgressDetails & WithMessage(MessageT &&value)
ChangeProgressDetails & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_ELASTICSEARCHSERVICE_API ChangeProgressDetails()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue