AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpgradeStepItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/UpgradeStatus.h>
11#include <aws/opensearch/model/UpgradeStep.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService {
23namespace Model {
24
32 public:
33 AWS_OPENSEARCHSERVICE_API UpgradeStepItem() = default;
34 AWS_OPENSEARCHSERVICE_API UpgradeStepItem(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API UpgradeStepItem& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline UpgradeStep GetUpgradeStep() const { return m_upgradeStep; }
45 inline bool UpgradeStepHasBeenSet() const { return m_upgradeStepHasBeenSet; }
46 inline void SetUpgradeStep(UpgradeStep value) {
47 m_upgradeStepHasBeenSet = true;
48 m_upgradeStep = value;
49 }
51 SetUpgradeStep(value);
52 return *this;
53 }
55
57
62 inline UpgradeStatus GetUpgradeStepStatus() const { return m_upgradeStepStatus; }
63 inline bool UpgradeStepStatusHasBeenSet() const { return m_upgradeStepStatusHasBeenSet; }
65 m_upgradeStepStatusHasBeenSet = true;
66 m_upgradeStepStatus = value;
67 }
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetIssues() const { return m_issues; }
80 inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; }
81 template <typename IssuesT = Aws::Vector<Aws::String>>
82 void SetIssues(IssuesT&& value) {
83 m_issuesHasBeenSet = true;
84 m_issues = std::forward<IssuesT>(value);
85 }
86 template <typename IssuesT = Aws::Vector<Aws::String>>
87 UpgradeStepItem& WithIssues(IssuesT&& value) {
88 SetIssues(std::forward<IssuesT>(value));
89 return *this;
90 }
91 template <typename IssuesT = Aws::String>
92 UpgradeStepItem& AddIssues(IssuesT&& value) {
93 m_issuesHasBeenSet = true;
94 m_issues.emplace_back(std::forward<IssuesT>(value));
95 return *this;
96 }
98
100
104 inline double GetProgressPercent() const { return m_progressPercent; }
105 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
106 inline void SetProgressPercent(double value) {
107 m_progressPercentHasBeenSet = true;
108 m_progressPercent = value;
109 }
110 inline UpgradeStepItem& WithProgressPercent(double value) {
111 SetProgressPercent(value);
112 return *this;
113 }
115 private:
116 UpgradeStep m_upgradeStep{UpgradeStep::NOT_SET};
117
118 UpgradeStatus m_upgradeStepStatus{UpgradeStatus::NOT_SET};
119
121
122 double m_progressPercent{0.0};
123 bool m_upgradeStepHasBeenSet = false;
124 bool m_upgradeStepStatusHasBeenSet = false;
125 bool m_issuesHasBeenSet = false;
126 bool m_progressPercentHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace OpenSearchService
131} // namespace Aws
AWS_OPENSEARCHSERVICE_API UpgradeStepItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIssues() const
AWS_OPENSEARCHSERVICE_API UpgradeStepItem & operator=(Aws::Utils::Json::JsonView jsonValue)
UpgradeStepItem & WithProgressPercent(double value)
UpgradeStepItem & WithUpgradeStep(UpgradeStep value)
UpgradeStepItem & WithIssues(IssuesT &&value)
UpgradeStepItem & WithUpgradeStepStatus(UpgradeStatus value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
UpgradeStepItem & AddIssues(IssuesT &&value)
AWS_OPENSEARCHSERVICE_API UpgradeStepItem()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue