AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUpgradeName(const Aws::String& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = value; }
52 inline void SetUpgradeName(Aws::String&& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = std::move(value); }
53 inline void SetUpgradeName(const char* value) { m_upgradeNameHasBeenSet = true; m_upgradeName.assign(value); }
54 inline UpgradeHistory& WithUpgradeName(const Aws::String& value) { SetUpgradeName(value); return *this;}
55 inline UpgradeHistory& WithUpgradeName(Aws::String&& value) { SetUpgradeName(std::move(value)); return *this;}
56 inline UpgradeHistory& WithUpgradeName(const char* value) { SetUpgradeName(value); return *this;}
58
60
64 inline const Aws::Utils::DateTime& GetStartTimestamp() const{ return m_startTimestamp; }
65 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
66 inline void SetStartTimestamp(const Aws::Utils::DateTime& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
67 inline void SetStartTimestamp(Aws::Utils::DateTime&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
68 inline UpgradeHistory& WithStartTimestamp(const Aws::Utils::DateTime& value) { SetStartTimestamp(value); return *this;}
69 inline UpgradeHistory& WithStartTimestamp(Aws::Utils::DateTime&& value) { SetStartTimestamp(std::move(value)); return *this;}
71
73
78 inline const UpgradeStatus& GetUpgradeStatus() const{ return m_upgradeStatus; }
79 inline bool UpgradeStatusHasBeenSet() const { return m_upgradeStatusHasBeenSet; }
80 inline void SetUpgradeStatus(const UpgradeStatus& value) { m_upgradeStatusHasBeenSet = true; m_upgradeStatus = value; }
81 inline void SetUpgradeStatus(UpgradeStatus&& value) { m_upgradeStatusHasBeenSet = true; m_upgradeStatus = std::move(value); }
82 inline UpgradeHistory& WithUpgradeStatus(const UpgradeStatus& value) { SetUpgradeStatus(value); return *this;}
83 inline UpgradeHistory& WithUpgradeStatus(UpgradeStatus&& value) { SetUpgradeStatus(std::move(value)); return *this;}
85
87
92 inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const{ return m_stepsList; }
93 inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
94 inline void SetStepsList(const Aws::Vector<UpgradeStepItem>& value) { m_stepsListHasBeenSet = true; m_stepsList = value; }
95 inline void SetStepsList(Aws::Vector<UpgradeStepItem>&& value) { m_stepsListHasBeenSet = true; m_stepsList = std::move(value); }
96 inline UpgradeHistory& WithStepsList(const Aws::Vector<UpgradeStepItem>& value) { SetStepsList(value); return *this;}
97 inline UpgradeHistory& WithStepsList(Aws::Vector<UpgradeStepItem>&& value) { SetStepsList(std::move(value)); return *this;}
98 inline UpgradeHistory& AddStepsList(const UpgradeStepItem& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(value); return *this; }
99 inline UpgradeHistory& AddStepsList(UpgradeStepItem&& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_upgradeName;
104 bool m_upgradeNameHasBeenSet = false;
105
106 Aws::Utils::DateTime m_startTimestamp;
107 bool m_startTimestampHasBeenSet = false;
108
109 UpgradeStatus m_upgradeStatus;
110 bool m_upgradeStatusHasBeenSet = false;
111
113 bool m_stepsListHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace ElasticsearchService
118} // namespace Aws
const Aws::Vector< UpgradeStepItem > & GetStepsList() const
UpgradeHistory & WithUpgradeStatus(const UpgradeStatus &value)
void SetStepsList(Aws::Vector< UpgradeStepItem > &&value)
UpgradeHistory & WithStartTimestamp(const Aws::Utils::DateTime &value)
UpgradeHistory & WithUpgradeName(const Aws::String &value)
void SetStartTimestamp(Aws::Utils::DateTime &&value)
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue)
UpgradeHistory & WithUpgradeStatus(UpgradeStatus &&value)
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
AWS_ELASTICSEARCHSERVICE_API UpgradeHistory()
UpgradeHistory & WithStepsList(Aws::Vector< UpgradeStepItem > &&value)
UpgradeHistory & WithStepsList(const Aws::Vector< UpgradeStepItem > &value)
UpgradeHistory & AddStepsList(UpgradeStepItem &&value)
UpgradeHistory & WithUpgradeName(Aws::String &&value)
void SetUpgradeName(const Aws::String &value)
const Aws::Utils::DateTime & GetStartTimestamp() const
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UpgradeHistory & AddStepsList(const UpgradeStepItem &value)
void SetStepsList(const Aws::Vector< UpgradeStepItem > &value)
void SetUpgradeStatus(const UpgradeStatus &value)
UpgradeHistory & WithStartTimestamp(Aws::Utils::DateTime &&value)
const UpgradeStatus & GetUpgradeStatus() const
UpgradeHistory & WithUpgradeName(const char *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