AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
GetUpgradeStatusResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/es/ElasticsearchService_EXPORTS.h>
9#include <aws/es/model/UpgradeStatus.h>
10#include <aws/es/model/UpgradeStep.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ElasticsearchService {
24namespace Model {
32 public:
33 AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult() = default;
36
38
43 inline UpgradeStep GetUpgradeStep() const { return m_upgradeStep; }
44 inline void SetUpgradeStep(UpgradeStep value) {
45 m_upgradeStepHasBeenSet = true;
46 m_upgradeStep = value;
47 }
49 SetUpgradeStep(value);
50 return *this;
51 }
53
55
61 inline UpgradeStatus GetStepStatus() const { return m_stepStatus; }
62 inline void SetStepStatus(UpgradeStatus value) {
63 m_stepStatusHasBeenSet = true;
64 m_stepStatus = value;
65 }
67 SetStepStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetUpgradeName() const { return m_upgradeName; }
77 template <typename UpgradeNameT = Aws::String>
78 void SetUpgradeName(UpgradeNameT&& value) {
79 m_upgradeNameHasBeenSet = true;
80 m_upgradeName = std::forward<UpgradeNameT>(value);
81 }
82 template <typename UpgradeNameT = Aws::String>
83 GetUpgradeStatusResult& WithUpgradeName(UpgradeNameT&& value) {
84 SetUpgradeName(std::forward<UpgradeNameT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 private:
104 UpgradeStep m_upgradeStep{UpgradeStep::NOT_SET};
105
107
108 Aws::String m_upgradeName;
109
110 Aws::String m_requestId;
111 bool m_upgradeStepHasBeenSet = false;
112 bool m_stepStatusHasBeenSet = false;
113 bool m_upgradeNameHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace ElasticsearchService
119} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult()=default
GetUpgradeStatusResult & WithUpgradeStep(UpgradeStep value)
AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUpgradeStatusResult & WithStepStatus(UpgradeStatus value)
AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUpgradeStatusResult & WithUpgradeName(UpgradeNameT &&value)
GetUpgradeStatusResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue