AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
BatchGetViewResult.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/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
11#include <aws/resource-explorer-2/model/BatchGetViewError.h>
12#include <aws/resource-explorer-2/model/View.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ResourceExplorer2 {
26namespace Model {
28 public:
29 AWS_RESOURCEEXPLORER2_API BatchGetViewResult() = default;
32
34
38 inline const Aws::Vector<View>& GetViews() const { return m_views; }
39 template <typename ViewsT = Aws::Vector<View>>
40 void SetViews(ViewsT&& value) {
41 m_viewsHasBeenSet = true;
42 m_views = std::forward<ViewsT>(value);
43 }
44 template <typename ViewsT = Aws::Vector<View>>
45 BatchGetViewResult& WithViews(ViewsT&& value) {
46 SetViews(std::forward<ViewsT>(value));
47 return *this;
48 }
49 template <typename ViewsT = View>
50 BatchGetViewResult& AddViews(ViewsT&& value) {
51 m_viewsHasBeenSet = true;
52 m_views.emplace_back(std::forward<ViewsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<BatchGetViewError>& GetErrors() const { return m_errors; }
63 template <typename ErrorsT = Aws::Vector<BatchGetViewError>>
64 void SetErrors(ErrorsT&& value) {
65 m_errorsHasBeenSet = true;
66 m_errors = std::forward<ErrorsT>(value);
67 }
68 template <typename ErrorsT = Aws::Vector<BatchGetViewError>>
69 BatchGetViewResult& WithErrors(ErrorsT&& value) {
70 SetErrors(std::forward<ErrorsT>(value));
71 return *this;
72 }
73 template <typename ErrorsT = BatchGetViewError>
74 BatchGetViewResult& AddErrors(ErrorsT&& value) {
75 m_errorsHasBeenSet = true;
76 m_errors.emplace_back(std::forward<ErrorsT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 BatchGetViewResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::Vector<View> m_views;
99
101
102 Aws::String m_requestId;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_viewsHasBeenSet = false;
105 bool m_errorsHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ResourceExplorer2
111} // namespace Aws
AWS_RESOURCEEXPLORER2_API BatchGetViewResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< View > & GetViews() const
BatchGetViewResult & WithViews(ViewsT &&value)
BatchGetViewResult & WithRequestId(RequestIdT &&value)
AWS_RESOURCEEXPLORER2_API BatchGetViewResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetViewResult & AddViews(ViewsT &&value)
AWS_RESOURCEEXPLORER2_API BatchGetViewResult()=default
BatchGetViewResult & AddErrors(ErrorsT &&value)
BatchGetViewResult & WithErrors(ErrorsT &&value)
const Aws::Vector< BatchGetViewError > & GetErrors() 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