AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpgradeStepItem.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/UpgradeStep.h>
9#include <aws/opensearch/model/UpgradeStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchService
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API UpgradeStepItem();
39 AWS_OPENSEARCHSERVICE_API UpgradeStepItem(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API UpgradeStepItem& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const UpgradeStep& GetUpgradeStep() const{ return m_upgradeStep; }
51 inline bool UpgradeStepHasBeenSet() const { return m_upgradeStepHasBeenSet; }
52 inline void SetUpgradeStep(const UpgradeStep& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = value; }
53 inline void SetUpgradeStep(UpgradeStep&& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = std::move(value); }
54 inline UpgradeStepItem& WithUpgradeStep(const UpgradeStep& value) { SetUpgradeStep(value); return *this;}
55 inline UpgradeStepItem& WithUpgradeStep(UpgradeStep&& value) { SetUpgradeStep(std::move(value)); return *this;}
57
59
64 inline const UpgradeStatus& GetUpgradeStepStatus() const{ return m_upgradeStepStatus; }
65 inline bool UpgradeStepStatusHasBeenSet() const { return m_upgradeStepStatusHasBeenSet; }
66 inline void SetUpgradeStepStatus(const UpgradeStatus& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = value; }
67 inline void SetUpgradeStepStatus(UpgradeStatus&& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = std::move(value); }
68 inline UpgradeStepItem& WithUpgradeStepStatus(const UpgradeStatus& value) { SetUpgradeStepStatus(value); return *this;}
69 inline UpgradeStepItem& WithUpgradeStepStatus(UpgradeStatus&& value) { SetUpgradeStepStatus(std::move(value)); return *this;}
71
73
77 inline const Aws::Vector<Aws::String>& GetIssues() const{ return m_issues; }
78 inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; }
79 inline void SetIssues(const Aws::Vector<Aws::String>& value) { m_issuesHasBeenSet = true; m_issues = value; }
80 inline void SetIssues(Aws::Vector<Aws::String>&& value) { m_issuesHasBeenSet = true; m_issues = std::move(value); }
81 inline UpgradeStepItem& WithIssues(const Aws::Vector<Aws::String>& value) { SetIssues(value); return *this;}
82 inline UpgradeStepItem& WithIssues(Aws::Vector<Aws::String>&& value) { SetIssues(std::move(value)); return *this;}
83 inline UpgradeStepItem& AddIssues(const Aws::String& value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; }
84 inline UpgradeStepItem& AddIssues(Aws::String&& value) { m_issuesHasBeenSet = true; m_issues.push_back(std::move(value)); return *this; }
85 inline UpgradeStepItem& AddIssues(const char* value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; }
87
89
93 inline double GetProgressPercent() const{ return m_progressPercent; }
94 inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
95 inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
96 inline UpgradeStepItem& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
98 private:
99
100 UpgradeStep m_upgradeStep;
101 bool m_upgradeStepHasBeenSet = false;
102
103 UpgradeStatus m_upgradeStepStatus;
104 bool m_upgradeStepStatusHasBeenSet = false;
105
107 bool m_issuesHasBeenSet = false;
108
109 double m_progressPercent;
110 bool m_progressPercentHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace OpenSearchService
115} // namespace Aws
void SetIssues(const Aws::Vector< Aws::String > &value)
UpgradeStepItem & WithUpgradeStepStatus(const UpgradeStatus &value)
void SetUpgradeStepStatus(UpgradeStatus &&value)
AWS_OPENSEARCHSERVICE_API UpgradeStepItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetIssues() const
void SetUpgradeStepStatus(const UpgradeStatus &value)
AWS_OPENSEARCHSERVICE_API UpgradeStepItem & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUpgradeStep(const UpgradeStep &value)
UpgradeStepItem & WithUpgradeStepStatus(UpgradeStatus &&value)
UpgradeStepItem & WithProgressPercent(double value)
UpgradeStepItem & AddIssues(Aws::String &&value)
UpgradeStepItem & AddIssues(const char *value)
const UpgradeStatus & GetUpgradeStepStatus() const
UpgradeStepItem & WithIssues(const Aws::Vector< Aws::String > &value)
UpgradeStepItem & WithUpgradeStep(const UpgradeStep &value)
void SetIssues(Aws::Vector< Aws::String > &&value)
UpgradeStepItem & WithIssues(Aws::Vector< Aws::String > &&value)
AWS_OPENSEARCHSERVICE_API UpgradeStepItem()
UpgradeStepItem & AddIssues(const Aws::String &value)
UpgradeStepItem & WithUpgradeStep(UpgradeStep &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue