AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
RestoreAnalysisResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/QuickSight_EXPORTS.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 QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API RestoreAnalysisResult() = default;
30
32
35 inline int GetStatus() const { return m_status; }
36 inline void SetStatus(int value) {
37 m_statusHasBeenSet = true;
38 m_status = value;
39 }
40 inline RestoreAnalysisResult& WithStatus(int value) {
41 SetStatus(value);
42 return *this;
43 }
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 template <typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) {
53 m_arnHasBeenSet = true;
54 m_arn = std::forward<ArnT>(value);
55 }
56 template <typename ArnT = Aws::String>
58 SetArn(std::forward<ArnT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetAnalysisId() const { return m_analysisId; }
68 template <typename AnalysisIdT = Aws::String>
69 void SetAnalysisId(AnalysisIdT&& value) {
70 m_analysisIdHasBeenSet = true;
71 m_analysisId = std::forward<AnalysisIdT>(value);
72 }
73 template <typename AnalysisIdT = Aws::String>
74 RestoreAnalysisResult& WithAnalysisId(AnalysisIdT&& value) {
75 SetAnalysisId(std::forward<AnalysisIdT>(value));
76 return *this;
77 }
79
81
82 inline const Aws::String& GetRequestId() const { return m_requestId; }
83 template <typename RequestIdT = Aws::String>
84 void SetRequestId(RequestIdT&& value) {
85 m_requestIdHasBeenSet = true;
86 m_requestId = std::forward<RequestIdT>(value);
87 }
88 template <typename RequestIdT = Aws::String>
89 RestoreAnalysisResult& WithRequestId(RequestIdT&& value) {
90 SetRequestId(std::forward<RequestIdT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::Vector<Aws::String>& GetRestorationFailedFolderArns() const { return m_restorationFailedFolderArns; }
100 template <typename RestorationFailedFolderArnsT = Aws::Vector<Aws::String>>
101 void SetRestorationFailedFolderArns(RestorationFailedFolderArnsT&& value) {
102 m_restorationFailedFolderArnsHasBeenSet = true;
103 m_restorationFailedFolderArns = std::forward<RestorationFailedFolderArnsT>(value);
104 }
105 template <typename RestorationFailedFolderArnsT = Aws::Vector<Aws::String>>
106 RestoreAnalysisResult& WithRestorationFailedFolderArns(RestorationFailedFolderArnsT&& value) {
107 SetRestorationFailedFolderArns(std::forward<RestorationFailedFolderArnsT>(value));
108 return *this;
109 }
110 template <typename RestorationFailedFolderArnsT = Aws::String>
111 RestoreAnalysisResult& AddRestorationFailedFolderArns(RestorationFailedFolderArnsT&& value) {
112 m_restorationFailedFolderArnsHasBeenSet = true;
113 m_restorationFailedFolderArns.emplace_back(std::forward<RestorationFailedFolderArnsT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 int m_status{0};
121
122 Aws::String m_arn;
123
124 Aws::String m_analysisId;
125
126 Aws::String m_requestId;
127
128 Aws::Vector<Aws::String> m_restorationFailedFolderArns;
129 Aws::Http::HttpResponseCode m_HttpResponseCode;
130 bool m_statusHasBeenSet = false;
131 bool m_arnHasBeenSet = false;
132 bool m_analysisIdHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134 bool m_restorationFailedFolderArnsHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace QuickSight
139} // namespace Aws
AWS_QUICKSIGHT_API RestoreAnalysisResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
RestoreAnalysisResult & WithStatus(int value)
RestoreAnalysisResult & AddRestorationFailedFolderArns(RestorationFailedFolderArnsT &&value)
RestoreAnalysisResult & WithRestorationFailedFolderArns(RestorationFailedFolderArnsT &&value)
AWS_QUICKSIGHT_API RestoreAnalysisResult()=default
AWS_QUICKSIGHT_API RestoreAnalysisResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetRestorationFailedFolderArns(RestorationFailedFolderArnsT &&value)
RestoreAnalysisResult & WithAnalysisId(AnalysisIdT &&value)
const Aws::Vector< Aws::String > & GetRestorationFailedFolderArns() const
RestoreAnalysisResult & WithArn(ArnT &&value)
RestoreAnalysisResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue