AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetUpgradeStatusResult.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/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchService
26{
27namespace Model
28{
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API GetUpgradeStatusResult() = default;
41
42
44
48 inline UpgradeStep GetUpgradeStep() const { return m_upgradeStep; }
49 inline void SetUpgradeStep(UpgradeStep value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = value; }
50 inline GetUpgradeStatusResult& WithUpgradeStep(UpgradeStep value) { SetUpgradeStep(value); return *this;}
52
54
57 inline UpgradeStatus GetStepStatus() const { return m_stepStatus; }
58 inline void SetStepStatus(UpgradeStatus value) { m_stepStatusHasBeenSet = true; m_stepStatus = value; }
59 inline GetUpgradeStatusResult& WithStepStatus(UpgradeStatus value) { SetStepStatus(value); return *this;}
61
63
66 inline const Aws::String& GetUpgradeName() const { return m_upgradeName; }
67 template<typename UpgradeNameT = Aws::String>
68 void SetUpgradeName(UpgradeNameT&& value) { m_upgradeNameHasBeenSet = true; m_upgradeName = std::forward<UpgradeNameT>(value); }
69 template<typename UpgradeNameT = Aws::String>
70 GetUpgradeStatusResult& WithUpgradeName(UpgradeNameT&& value) { SetUpgradeName(std::forward<UpgradeNameT>(value)); return *this;}
72
74
75 inline const Aws::String& GetRequestId() const { return m_requestId; }
76 template<typename RequestIdT = Aws::String>
77 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
78 template<typename RequestIdT = Aws::String>
79 GetUpgradeStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
81 private:
82
83 UpgradeStep m_upgradeStep{UpgradeStep::NOT_SET};
84 bool m_upgradeStepHasBeenSet = false;
85
87 bool m_stepStatusHasBeenSet = false;
88
89 Aws::String m_upgradeName;
90 bool m_upgradeNameHasBeenSet = false;
91
92 Aws::String m_requestId;
93 bool m_requestIdHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace OpenSearchService
98} // namespace Aws
GetUpgradeStatusResult & WithStepStatus(UpgradeStatus value)
GetUpgradeStatusResult & WithRequestId(RequestIdT &&value)
GetUpgradeStatusResult & WithUpgradeName(UpgradeNameT &&value)
AWS_OPENSEARCHSERVICE_API GetUpgradeStatusResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API GetUpgradeStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUpgradeStatusResult & WithUpgradeStep(UpgradeStep value)
AWS_OPENSEARCHSERVICE_API GetUpgradeStatusResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue