AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpgradeHistory.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/opensearch/model/UpgradeStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opensearch/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 OpenSearchService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API UpgradeHistory() = default;
40 AWS_OPENSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API UpgradeHistory& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_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
87 inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const { return m_stepsList; }
88 inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
89 template<typename StepsListT = Aws::Vector<UpgradeStepItem>>
90 void SetStepsList(StepsListT&& value) { m_stepsListHasBeenSet = true; m_stepsList = std::forward<StepsListT>(value); }
91 template<typename StepsListT = Aws::Vector<UpgradeStepItem>>
92 UpgradeHistory& WithStepsList(StepsListT&& value) { SetStepsList(std::forward<StepsListT>(value)); return *this;}
93 template<typename StepsListT = UpgradeStepItem>
94 UpgradeHistory& AddStepsList(StepsListT&& value) { m_stepsListHasBeenSet = true; m_stepsList.emplace_back(std::forward<StepsListT>(value)); return *this; }
96 private:
97
98 Aws::String m_upgradeName;
99 bool m_upgradeNameHasBeenSet = false;
100
101 Aws::Utils::DateTime m_startTimestamp{};
102 bool m_startTimestampHasBeenSet = false;
103
104 UpgradeStatus m_upgradeStatus{UpgradeStatus::NOT_SET};
105 bool m_upgradeStatusHasBeenSet = false;
106
108 bool m_stepsListHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace OpenSearchService
113} // namespace Aws
AWS_OPENSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue)
UpgradeHistory & WithUpgradeStatus(UpgradeStatus value)
const Aws::Utils::DateTime & GetStartTimestamp() const
const Aws::Vector< UpgradeStepItem > & GetStepsList() const
UpgradeHistory & AddStepsList(StepsListT &&value)
UpgradeHistory & WithStartTimestamp(StartTimestampT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
UpgradeHistory & WithUpgradeName(UpgradeNameT &&value)
void SetStartTimestamp(StartTimestampT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeHistory()=default
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UpgradeHistory & WithStepsList(StepsListT &&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