AWS SDK for C++  1.9.97
AWS SDK for C++
UpgradeHistory.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ElasticsearchService
26 {
27 namespace Model
28 {
29 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetUpgradeName() const{ return m_upgradeName; }
49 
53  inline bool UpgradeNameHasBeenSet() const { return m_upgradeNameHasBeenSet; }
54 
58  inline void SetUpgradeName(const Aws::String& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = value; }
59 
63  inline void SetUpgradeName(Aws::String&& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = std::move(value); }
64 
68  inline void SetUpgradeName(const char* value) { m_upgradeNameHasBeenSet = true; m_upgradeName.assign(value); }
69 
73  inline UpgradeHistory& WithUpgradeName(const Aws::String& value) { SetUpgradeName(value); return *this;}
74 
78  inline UpgradeHistory& WithUpgradeName(Aws::String&& value) { SetUpgradeName(std::move(value)); return *this;}
79 
83  inline UpgradeHistory& WithUpgradeName(const char* value) { SetUpgradeName(value); return *this;}
84 
85 
90  inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
91 
96  inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
97 
102  inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
103 
108  inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
109 
114  inline UpgradeHistory& WithStartTimestamp(const Aws::Utils::DateTime& value) { SetStartTimestamp(value); return *this;}
115 
120  inline UpgradeHistory& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;}
121 
122 
128  inline const UpgradeStatus& GetUpgradeStatus() const{ return m_upgradeStatus; }
129 
135  inline bool UpgradeStatusHasBeenSet() const { return m_upgradeStatusHasBeenSet; }
136 
142  inline void SetUpgradeStatus(const UpgradeStatus& value) { m_upgradeStatusHasBeenSet = true; m_upgradeStatus = value; }
143 
149  inline void SetUpgradeStatus(UpgradeStatus&& value) { m_upgradeStatusHasBeenSet = true; m_upgradeStatus = std::move(value); }
150 
156  inline UpgradeHistory& WithUpgradeStatus(const UpgradeStatus& value) { SetUpgradeStatus(value); return *this;}
157 
163  inline UpgradeHistory& WithUpgradeStatus(UpgradeStatus&& value) { SetUpgradeStatus(std::move(value)); return *this;}
164 
165 
171  inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const{ return m_stepsList; }
172 
178  inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
179 
185  inline void SetStepsList(const Aws::Vector<UpgradeStepItem>& value) { m_stepsListHasBeenSet = true; m_stepsList = value; }
186 
192  inline void SetStepsList(Aws::Vector<UpgradeStepItem>&& value) { m_stepsListHasBeenSet = true; m_stepsList = std::move(value); }
193 
199  inline UpgradeHistory& WithStepsList(const Aws::Vector<UpgradeStepItem>& value) { SetStepsList(value); return *this;}
200 
206  inline UpgradeHistory& WithStepsList(Aws::Vector<UpgradeStepItem>&& value) { SetStepsList(std::move(value)); return *this;}
207 
213  inline UpgradeHistory& AddStepsList(const UpgradeStepItem& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(value); return *this; }
214 
220  inline UpgradeHistory& AddStepsList(UpgradeStepItem&& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(std::move(value)); return *this; }
221 
222  private:
223 
224  Aws::String m_upgradeName;
225  bool m_upgradeNameHasBeenSet;
226 
227  Aws::Utils::DateTime m_startTimestamp;
228  bool m_startTimestampHasBeenSet;
229 
230  UpgradeStatus m_upgradeStatus;
231  bool m_upgradeStatusHasBeenSet;
232 
233  Aws::Vector<UpgradeStepItem> m_stepsList;
234  bool m_stepsListHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace ElasticsearchService
239 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
UpgradeStatus.h
Aws::ElasticsearchService::Model::UpgradeHistory::UpgradeNameHasBeenSet
bool UpgradeNameHasBeenSet() const
Definition: UpgradeHistory.h:53
Aws::ElasticsearchService::Model::UpgradeHistory::SetStartTimestamp
void SetStartTimestamp(const Aws::Utils::DateTime &value)
Definition: UpgradeHistory.h:102
Aws::ElasticsearchService::Model::UpgradeHistory::SetStepsList
void SetStepsList(Aws::Vector< UpgradeStepItem > &&value)
Definition: UpgradeHistory.h:192
Aws::ElasticsearchService::Model::UpgradeHistory::StepsListHasBeenSet
bool StepsListHasBeenSet() const
Definition: UpgradeHistory.h:178
DateTime.h
Aws::ElasticsearchService::Model::UpgradeHistory::SetUpgradeName
void SetUpgradeName(const char *value)
Definition: UpgradeHistory.h:68
Aws::ElasticsearchService::Model::UpgradeHistory
Definition: UpgradeHistory.h:37
Aws::ElasticsearchService::Model::UpgradeStatus
UpgradeStatus
Definition: UpgradeStatus.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::UpgradeHistory::SetUpgradeStatus
void SetUpgradeStatus(const UpgradeStatus &value)
Definition: UpgradeHistory.h:142
Aws::ElasticsearchService::Model::UpgradeHistory::WithUpgradeStatus
UpgradeHistory & WithUpgradeStatus(UpgradeStatus &&value)
Definition: UpgradeHistory.h:163
AWSVector.h
Aws::ElasticsearchService::Model::UpgradeHistory::SetUpgradeName
void SetUpgradeName(Aws::String &&value)
Definition: UpgradeHistory.h:63
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::UpgradeHistory::UpgradeStatusHasBeenSet
bool UpgradeStatusHasBeenSet() const
Definition: UpgradeHistory.h:135
Aws::ElasticsearchService::Model::UpgradeHistory::WithUpgradeName
UpgradeHistory & WithUpgradeName(const char *value)
Definition: UpgradeHistory.h:83
Aws::ElasticsearchService::Model::UpgradeHistory::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::UpgradeHistory::UpgradeHistory
UpgradeHistory(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::UpgradeHistory::WithUpgradeName
UpgradeHistory & WithUpgradeName(const Aws::String &value)
Definition: UpgradeHistory.h:73
Aws::ElasticsearchService::Model::UpgradeHistory::operator=
UpgradeHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::UpgradeHistory::SetStartTimestamp
void SetStartTimestamp(Aws::Utils::DateTime &&value)
Definition: UpgradeHistory.h:108
Aws::ElasticsearchService::Model::UpgradeHistory::AddStepsList
UpgradeHistory & AddStepsList(const UpgradeStepItem &value)
Definition: UpgradeHistory.h:213
Aws::ElasticsearchService::Model::UpgradeHistory::WithStartTimestamp
UpgradeHistory & WithStartTimestamp(const Aws::Utils::DateTime &value)
Definition: UpgradeHistory.h:114
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::UpgradeHistory::WithUpgradeStatus
UpgradeHistory & WithUpgradeStatus(const UpgradeStatus &value)
Definition: UpgradeHistory.h:156
Aws::ElasticsearchService::Model::UpgradeHistory::WithUpgradeName
UpgradeHistory & WithUpgradeName(Aws::String &&value)
Definition: UpgradeHistory.h:78
Aws::ElasticsearchService::Model::UpgradeHistory::GetStepsList
const Aws::Vector< UpgradeStepItem > & GetStepsList() const
Definition: UpgradeHistory.h:171
Aws::ElasticsearchService::Model::UpgradeHistory::WithStartTimestamp
UpgradeHistory & WithStartTimestamp(Aws::Utils::DateTime &&value)
Definition: UpgradeHistory.h:120
Aws::ElasticsearchService::Model::UpgradeHistory::WithStepsList
UpgradeHistory & WithStepsList(Aws::Vector< UpgradeStepItem > &&value)
Definition: UpgradeHistory.h:206
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::UpgradeHistory::SetUpgradeStatus
void SetUpgradeStatus(UpgradeStatus &&value)
Definition: UpgradeHistory.h:149
Aws::ElasticsearchService::Model::UpgradeHistory::GetUpgradeStatus
const UpgradeStatus & GetUpgradeStatus() const
Definition: UpgradeHistory.h:128
Aws::ElasticsearchService::Model::UpgradeHistory::StartTimestampHasBeenSet
bool StartTimestampHasBeenSet() const
Definition: UpgradeHistory.h:96
Aws::ElasticsearchService::Model::UpgradeHistory::AddStepsList
UpgradeHistory & AddStepsList(UpgradeStepItem &&value)
Definition: UpgradeHistory.h:220
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::UpgradeHistory::WithStepsList
UpgradeHistory & WithStepsList(const Aws::Vector< UpgradeStepItem > &value)
Definition: UpgradeHistory.h:199
Aws::ElasticsearchService::Model::UpgradeHistory::GetStartTimestamp
const Aws::Utils::DateTime & GetStartTimestamp() const
Definition: UpgradeHistory.h:90
Aws::ElasticsearchService::Model::UpgradeHistory::GetUpgradeName
const Aws::String & GetUpgradeName() const
Definition: UpgradeHistory.h:48
UpgradeStepItem.h
Aws::ElasticsearchService::Model::UpgradeStepItem
Definition: UpgradeStepItem.h:36
Aws::ElasticsearchService::Model::UpgradeHistory::SetStepsList
void SetStepsList(const Aws::Vector< UpgradeStepItem > &value)
Definition: UpgradeHistory.h:185
Aws::ElasticsearchService::Model::UpgradeHistory::UpgradeHistory
UpgradeHistory()
Aws::ElasticsearchService::Model::UpgradeHistory::SetUpgradeName
void SetUpgradeName(const Aws::String &value)
Definition: UpgradeHistory.h:58