AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
UpgradeHistory.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/es/ElasticsearchService_EXPORTS.h>
11#include <aws/es/model/UpgradeStatus.h>
12#include <aws/es/model/UpgradeStepItem.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElasticsearchService {
24namespace Model {
25
33 public:
34 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory() = default;
35 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetUpgradeName() const { return m_upgradeName; }
44 inline bool UpgradeNameHasBeenSet() const { return m_upgradeNameHasBeenSet; }
45 template <typename UpgradeNameT = Aws::String>
46 void SetUpgradeName(UpgradeNameT&& value) {
47 m_upgradeNameHasBeenSet = true;
48 m_upgradeName = std::forward<UpgradeNameT>(value);
49 }
50 template <typename UpgradeNameT = Aws::String>
51 UpgradeHistory& WithUpgradeName(UpgradeNameT&& value) {
52 SetUpgradeName(std::forward<UpgradeNameT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Utils::DateTime& GetStartTimestamp() const { return m_startTimestamp; }
63 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
64 template <typename StartTimestampT = Aws::Utils::DateTime>
65 void SetStartTimestamp(StartTimestampT&& value) {
66 m_startTimestampHasBeenSet = true;
67 m_startTimestamp = std::forward<StartTimestampT>(value);
68 }
69 template <typename StartTimestampT = Aws::Utils::DateTime>
70 UpgradeHistory& WithStartTimestamp(StartTimestampT&& value) {
71 SetStartTimestamp(std::forward<StartTimestampT>(value));
72 return *this;
73 }
75
77
82 inline UpgradeStatus GetUpgradeStatus() const { return m_upgradeStatus; }
83 inline bool UpgradeStatusHasBeenSet() const { return m_upgradeStatusHasBeenSet; }
84 inline void SetUpgradeStatus(UpgradeStatus value) {
85 m_upgradeStatusHasBeenSet = true;
86 m_upgradeStatus = value;
87 }
89 SetUpgradeStatus(value);
90 return *this;
91 }
93
95
100 inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const { return m_stepsList; }
101 inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
102 template <typename StepsListT = Aws::Vector<UpgradeStepItem>>
103 void SetStepsList(StepsListT&& value) {
104 m_stepsListHasBeenSet = true;
105 m_stepsList = std::forward<StepsListT>(value);
106 }
107 template <typename StepsListT = Aws::Vector<UpgradeStepItem>>
108 UpgradeHistory& WithStepsList(StepsListT&& value) {
109 SetStepsList(std::forward<StepsListT>(value));
110 return *this;
111 }
112 template <typename StepsListT = UpgradeStepItem>
113 UpgradeHistory& AddStepsList(StepsListT&& value) {
114 m_stepsListHasBeenSet = true;
115 m_stepsList.emplace_back(std::forward<StepsListT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_upgradeName;
121
122 Aws::Utils::DateTime m_startTimestamp{};
123
124 UpgradeStatus m_upgradeStatus{UpgradeStatus::NOT_SET};
125
127 bool m_upgradeNameHasBeenSet = false;
128 bool m_startTimestampHasBeenSet = false;
129 bool m_upgradeStatusHasBeenSet = false;
130 bool m_stepsListHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace ElasticsearchService
135} // namespace Aws
const Aws::Vector< UpgradeStepItem > & GetStepsList() const
UpgradeHistory & WithStepsList(StepsListT &&value)
void SetStartTimestamp(StartTimestampT &&value)
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue)
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory()=default
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
UpgradeHistory & WithUpgradeStatus(UpgradeStatus value)
UpgradeHistory & AddStepsList(StepsListT &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
UpgradeHistory & WithUpgradeName(UpgradeNameT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UpgradeHistory & WithStartTimestamp(StartTimestampT &&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