AWS SDK for C++  1.9.97
AWS SDK for C++
UpgradeStepItem.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
49  inline const UpgradeStep& GetUpgradeStep() const{ return m_upgradeStep; }
50 
56  inline bool UpgradeStepHasBeenSet() const { return m_upgradeStepHasBeenSet; }
57 
63  inline void SetUpgradeStep(const UpgradeStep& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = value; }
64 
70  inline void SetUpgradeStep(UpgradeStep&& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = std::move(value); }
71 
77  inline UpgradeStepItem& WithUpgradeStep(const UpgradeStep& value) { SetUpgradeStep(value); return *this;}
78 
84  inline UpgradeStepItem& WithUpgradeStep(UpgradeStep&& value) { SetUpgradeStep(std::move(value)); return *this;}
85 
86 
92  inline const UpgradeStatus& GetUpgradeStepStatus() const{ return m_upgradeStepStatus; }
93 
99  inline bool UpgradeStepStatusHasBeenSet() const { return m_upgradeStepStatusHasBeenSet; }
100 
106  inline void SetUpgradeStepStatus(const UpgradeStatus& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = value; }
107 
113  inline void SetUpgradeStepStatus(UpgradeStatus&& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = std::move(value); }
114 
120  inline UpgradeStepItem& WithUpgradeStepStatus(const UpgradeStatus& value) { SetUpgradeStepStatus(value); return *this;}
121 
127  inline UpgradeStepItem& WithUpgradeStepStatus(UpgradeStatus&& value) { SetUpgradeStepStatus(std::move(value)); return *this;}
128 
129 
134  inline const Aws::Vector<Aws::String>& GetIssues() const{ return m_issues; }
135 
140  inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; }
141 
146  inline void SetIssues(const Aws::Vector<Aws::String>& value) { m_issuesHasBeenSet = true; m_issues = value; }
147 
152  inline void SetIssues(Aws::Vector<Aws::String>&& value) { m_issuesHasBeenSet = true; m_issues = std::move(value); }
153 
158  inline UpgradeStepItem& WithIssues(const Aws::Vector<Aws::String>& value) { SetIssues(value); return *this;}
159 
164  inline UpgradeStepItem& WithIssues(Aws::Vector<Aws::String>&& value) { SetIssues(std::move(value)); return *this;}
165 
170  inline UpgradeStepItem& AddIssues(const Aws::String& value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; }
171 
176  inline UpgradeStepItem& AddIssues(Aws::String&& value) { m_issuesHasBeenSet = true; m_issues.push_back(std::move(value)); return *this; }
177 
182  inline UpgradeStepItem& AddIssues(const char* value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; }
183 
184 
189  inline double GetProgressPercent() const{ return m_progressPercent; }
190 
195  inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; }
196 
201  inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; }
202 
207  inline UpgradeStepItem& WithProgressPercent(double value) { SetProgressPercent(value); return *this;}
208 
209  private:
210 
211  UpgradeStep m_upgradeStep;
212  bool m_upgradeStepHasBeenSet;
213 
214  UpgradeStatus m_upgradeStepStatus;
215  bool m_upgradeStepStatusHasBeenSet;
216 
217  Aws::Vector<Aws::String> m_issues;
218  bool m_issuesHasBeenSet;
219 
220  double m_progressPercent;
221  bool m_progressPercentHasBeenSet;
222  };
223 
224 } // namespace Model
225 } // namespace ElasticsearchService
226 } // namespace Aws
Aws::ElasticsearchService::Model::UpgradeStepItem::SetUpgradeStep
void SetUpgradeStep(const UpgradeStep &value)
Definition: UpgradeStepItem.h:63
Aws::ElasticsearchService::Model::UpgradeStepItem::WithUpgradeStep
UpgradeStepItem & WithUpgradeStep(UpgradeStep &&value)
Definition: UpgradeStepItem.h:84
UpgradeStatus.h
Aws::ElasticsearchService::Model::UpgradeStepItem::UpgradeStepItem
UpgradeStepItem()
Aws::ElasticsearchService::Model::UpgradeStepItem::WithIssues
UpgradeStepItem & WithIssues(Aws::Vector< Aws::String > &&value)
Definition: UpgradeStepItem.h:164
Aws::ElasticsearchService::Model::UpgradeStepItem::UpgradeStepStatusHasBeenSet
bool UpgradeStepStatusHasBeenSet() const
Definition: UpgradeStepItem.h:99
Aws::ElasticsearchService::Model::UpgradeStepItem::AddIssues
UpgradeStepItem & AddIssues(Aws::String &&value)
Definition: UpgradeStepItem.h:176
Aws::ElasticsearchService::Model::UpgradeStepItem::SetUpgradeStepStatus
void SetUpgradeStepStatus(UpgradeStatus &&value)
Definition: UpgradeStepItem.h:113
Aws::ElasticsearchService::Model::UpgradeStatus
UpgradeStatus
Definition: UpgradeStatus.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::UpgradeStepItem::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::UpgradeStepItem::WithUpgradeStep
UpgradeStepItem & WithUpgradeStep(const UpgradeStep &value)
Definition: UpgradeStepItem.h:77
AWSVector.h
UpgradeStep.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::UpgradeStepItem::WithProgressPercent
UpgradeStepItem & WithProgressPercent(double value)
Definition: UpgradeStepItem.h:207
Aws::ElasticsearchService::Model::UpgradeStepItem::SetIssues
void SetIssues(const Aws::Vector< Aws::String > &value)
Definition: UpgradeStepItem.h:146
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::UpgradeStepItem::WithIssues
UpgradeStepItem & WithIssues(const Aws::Vector< Aws::String > &value)
Definition: UpgradeStepItem.h:158
Aws::ElasticsearchService::Model::UpgradeStepItem::AddIssues
UpgradeStepItem & AddIssues(const char *value)
Definition: UpgradeStepItem.h:182
Aws::ElasticsearchService::Model::UpgradeStepItem::ProgressPercentHasBeenSet
bool ProgressPercentHasBeenSet() const
Definition: UpgradeStepItem.h:195
Aws::ElasticsearchService::Model::UpgradeStepItem::UpgradeStepHasBeenSet
bool UpgradeStepHasBeenSet() const
Definition: UpgradeStepItem.h:56
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ElasticsearchService::Model::UpgradeStepItem::GetProgressPercent
double GetProgressPercent() const
Definition: UpgradeStepItem.h:189
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::UpgradeStepItem::WithUpgradeStepStatus
UpgradeStepItem & WithUpgradeStepStatus(const UpgradeStatus &value)
Definition: UpgradeStepItem.h:120
Aws::ElasticsearchService::Model::UpgradeStepItem::GetUpgradeStep
const UpgradeStep & GetUpgradeStep() const
Definition: UpgradeStepItem.h:49
Aws::ElasticsearchService::Model::UpgradeStepItem::SetIssues
void SetIssues(Aws::Vector< Aws::String > &&value)
Definition: UpgradeStepItem.h:152
Aws::ElasticsearchService::Model::UpgradeStepItem::SetUpgradeStep
void SetUpgradeStep(UpgradeStep &&value)
Definition: UpgradeStepItem.h:70
Aws::ElasticsearchService::Model::UpgradeStepItem::GetUpgradeStepStatus
const UpgradeStatus & GetUpgradeStepStatus() const
Definition: UpgradeStepItem.h:92
Aws::ElasticsearchService::Model::UpgradeStepItem::operator=
UpgradeStepItem & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::UpgradeStepItem::IssuesHasBeenSet
bool IssuesHasBeenSet() const
Definition: UpgradeStepItem.h:140
Aws::ElasticsearchService::Model::UpgradeStepItem::SetUpgradeStepStatus
void SetUpgradeStepStatus(const UpgradeStatus &value)
Definition: UpgradeStepItem.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::UpgradeStepItem::GetIssues
const Aws::Vector< Aws::String > & GetIssues() const
Definition: UpgradeStepItem.h:134
Aws::ElasticsearchService::Model::UpgradeStepItem::SetProgressPercent
void SetProgressPercent(double value)
Definition: UpgradeStepItem.h:201
Aws::ElasticsearchService::Model::UpgradeStep
UpgradeStep
Definition: UpgradeStep.h:17
Aws::ElasticsearchService::Model::UpgradeStepItem
Definition: UpgradeStepItem.h:36
Aws::ElasticsearchService::Model::UpgradeStepItem::WithUpgradeStepStatus
UpgradeStepItem & WithUpgradeStepStatus(UpgradeStatus &&value)
Definition: UpgradeStepItem.h:127
Aws::ElasticsearchService::Model::UpgradeStepItem::UpgradeStepItem
UpgradeStepItem(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::UpgradeStepItem::AddIssues
UpgradeStepItem & AddIssues(const Aws::String &value)
Definition: UpgradeStepItem.h:170