AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpgradeHistory.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/es/model/UpgradeStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/es/model/UpgradeStepItem.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ElasticsearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory() = default;
40 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API UpgradeHistory& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetUpgradeName() const { return m_upgradeName; }
50 inline bool UpgradeNameHasBeenSet() const { return m_upgradeNameHasBeenSet; }
51 template<typename UpgradeNameT = Aws::String>
52 void SetUpgradeName(UpgradeNameT&& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = std::forward<UpgradeNameT>(value); }
53 template<typename UpgradeNameT = Aws::String>
54 UpgradeHistory& WithUpgradeName(UpgradeNameT&& value) { SetUpgradeName(std::forward<UpgradeNameT>(value)); return *this;}
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) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::forward<StartTimestampT>(value); }
66 template<typename StartTimestampT = Aws::Utils::DateTime>
67 UpgradeHistory& WithStartTimestamp(StartTimestampT&& value) { SetStartTimestamp(std::forward<StartTimestampT>(value)); return *this;}
69
71
76 inline UpgradeStatus GetUpgradeStatus() const { return m_upgradeStatus; }
77 inline bool UpgradeStatusHasBeenSet() const { return m_upgradeStatusHasBeenSet; }
78 inline void SetUpgradeStatus(UpgradeStatus value) { m_upgradeStatusHasBeenSet = true; m_upgradeStatus = value; }
79 inline UpgradeHistory& WithUpgradeStatus(UpgradeStatus value) { SetUpgradeStatus(value); return *this;}
81
83
88 inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const { return m_stepsList; }
89 inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
90 template<typename StepsListT = Aws::Vector<UpgradeStepItem>>
91 void SetStepsList(StepsListT&& value) { m_stepsListHasBeenSet = true; m_stepsList = std::forward<StepsListT>(value); }
92 template<typename StepsListT = Aws::Vector<UpgradeStepItem>>
93 UpgradeHistory& WithStepsList(StepsListT&& value) { SetStepsList(std::forward<StepsListT>(value)); return *this;}
94 template<typename StepsListT = UpgradeStepItem>
95 UpgradeHistory& AddStepsList(StepsListT&& value) { m_stepsListHasBeenSet = true; m_stepsList.emplace_back(std::forward<StepsListT>(value)); return *this; }
97 private:
98
99 Aws::String m_upgradeName;
100 bool m_upgradeNameHasBeenSet = false;
101
102 Aws::Utils::DateTime m_startTimestamp{};
103 bool m_startTimestampHasBeenSet = false;
104
105 UpgradeStatus m_upgradeStatus{UpgradeStatus::NOT_SET};
106 bool m_upgradeStatusHasBeenSet = false;
107
109 bool m_stepsListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ElasticsearchService
114} // 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