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/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();
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 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
91 inline const Aws::Vector<UpgradeStepItem>& GetStepsList() const{ return m_stepsList; }
92 inline bool StepsListHasBeenSet() const { return m_stepsListHasBeenSet; }
93 inline void SetStepsList(const Aws::Vector<UpgradeStepItem>& value) { m_stepsListHasBeenSet = true; m_stepsList = value; }
94 inline void SetStepsList(Aws::Vector<UpgradeStepItem>&& value) { m_stepsListHasBeenSet = true; m_stepsList = std::move(value); }
95 inline UpgradeHistory& WithStepsList(const Aws::Vector<UpgradeStepItem>& value) { SetStepsList(value); return *this;}
96 inline UpgradeHistory& WithStepsList(Aws::Vector<UpgradeStepItem>&& value) { SetStepsList(std::move(value)); return *this;}
97 inline UpgradeHistory& AddStepsList(const UpgradeStepItem& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(value); return *this; }
98 inline UpgradeHistory& AddStepsList(UpgradeStepItem&& value) { m_stepsListHasBeenSet = true; m_stepsList.push_back(std::move(value)); return *this; }
100 private:
101
102 Aws::String m_upgradeName;
103 bool m_upgradeNameHasBeenSet = false;
104
105 Aws::Utils::DateTime m_startTimestamp;
106 bool m_startTimestampHasBeenSet = false;
107
108 UpgradeStatus m_upgradeStatus;
109 bool m_upgradeStatusHasBeenSet = false;
110
112 bool m_stepsListHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace OpenSearchService
117} // namespace Aws
void SetStepsList(Aws::Vector< UpgradeStepItem > &&value)
UpgradeHistory & WithUpgradeName(Aws::String &&value)
void SetUpgradeName(const Aws::String &value)
UpgradeHistory & WithStartTimestamp(const Aws::Utils::DateTime &value)
UpgradeHistory & AddStepsList(const UpgradeStepItem &value)
const UpgradeStatus & GetUpgradeStatus() const
UpgradeHistory & WithStepsList(const Aws::Vector< UpgradeStepItem > &value)
AWS_OPENSEARCHSERVICE_API UpgradeHistory(Aws::Utils::Json::JsonView jsonValue)
void SetUpgradeStatus(const UpgradeStatus &value)
AWS_OPENSEARCHSERVICE_API UpgradeHistory()
void SetStartTimestamp(Aws::Utils::DateTime &&value)
UpgradeHistory & WithUpgradeName(const Aws::String &value)
UpgradeHistory & WithStartTimestamp(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetStartTimestamp() const
const Aws::Vector< UpgradeStepItem > & GetStepsList() const
UpgradeHistory & WithUpgradeName(const char *value)
UpgradeHistory & WithStepsList(Aws::Vector< UpgradeStepItem > &&value)
AWS_OPENSEARCHSERVICE_API UpgradeHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
UpgradeHistory & AddStepsList(UpgradeStepItem &&value)
void SetStartTimestamp(const Aws::Utils::DateTime &value)
void SetStepsList(const Aws::Vector< UpgradeStepItem > &value)
UpgradeHistory & WithUpgradeStatus(const UpgradeStatus &value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UpgradeHistory & WithUpgradeStatus(UpgradeStatus &&value)
void SetUpgradeStatus(UpgradeStatus &&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