AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
GetManagedApiResult.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/ApiSignature.h>
9#include <aws/apiportal/model/ManagedApiFinding.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace APIPortal {
28namespace Model {
30 public:
31 AWS_APIPORTAL_API GetManagedApiResult() = default;
34
36
39 inline const Aws::String& GetManagedApiId() const { return m_managedApiId; }
40 template <typename ManagedApiIdT = Aws::String>
41 void SetManagedApiId(ManagedApiIdT&& value) {
42 m_managedApiIdHasBeenSet = true;
43 m_managedApiId = std::forward<ManagedApiIdT>(value);
44 }
45 template <typename ManagedApiIdT = Aws::String>
46 GetManagedApiResult& WithManagedApiId(ManagedApiIdT&& value) {
47 SetManagedApiId(std::forward<ManagedApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetManagedApiArn() const { return m_managedApiArn; }
57 template <typename ManagedApiArnT = Aws::String>
58 void SetManagedApiArn(ManagedApiArnT&& value) {
59 m_managedApiArnHasBeenSet = true;
60 m_managedApiArn = std::forward<ManagedApiArnT>(value);
61 }
62 template <typename ManagedApiArnT = Aws::String>
63 GetManagedApiResult& WithManagedApiArn(ManagedApiArnT&& value) {
64 SetManagedApiArn(std::forward<ManagedApiArnT>(value));
65 return *this;
66 }
68
70
73 inline const ApiSignature& GetApiSignature() const { return m_apiSignature; }
74 template <typename ApiSignatureT = ApiSignature>
75 void SetApiSignature(ApiSignatureT&& value) {
76 m_apiSignatureHasBeenSet = true;
77 m_apiSignature = std::forward<ApiSignatureT>(value);
78 }
79 template <typename ApiSignatureT = ApiSignature>
80 GetManagedApiResult& WithApiSignature(ApiSignatureT&& value) {
81 SetApiSignature(std::forward<ApiSignatureT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 template <typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) {
93 m_createdAtHasBeenSet = true;
94 m_createdAt = std::forward<CreatedAtT>(value);
95 }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 GetManagedApiResult& WithCreatedAt(CreatedAtT&& value) {
98 SetCreatedAt(std::forward<CreatedAtT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
108 template <typename UpdatedAtT = Aws::Utils::DateTime>
109 void SetUpdatedAt(UpdatedAtT&& value) {
110 m_updatedAtHasBeenSet = true;
111 m_updatedAt = std::forward<UpdatedAtT>(value);
112 }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 GetManagedApiResult& WithUpdatedAt(UpdatedAtT&& value) {
115 SetUpdatedAt(std::forward<UpdatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Vector<ManagedApiFinding>& GetFindings() const { return m_findings; }
125 template <typename FindingsT = Aws::Vector<ManagedApiFinding>>
126 void SetFindings(FindingsT&& value) {
127 m_findingsHasBeenSet = true;
128 m_findings = std::forward<FindingsT>(value);
129 }
130 template <typename FindingsT = Aws::Vector<ManagedApiFinding>>
131 GetManagedApiResult& WithFindings(FindingsT&& value) {
132 SetFindings(std::forward<FindingsT>(value));
133 return *this;
134 }
135 template <typename FindingsT = ManagedApiFinding>
136 GetManagedApiResult& AddFindings(FindingsT&& value) {
137 m_findingsHasBeenSet = true;
138 m_findings.emplace_back(std::forward<FindingsT>(value));
139 return *this;
140 }
142
144
145 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
157 GetManagedApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
160 return *this;
161 }
163
165
166 inline const Aws::String& GetRequestId() const { return m_requestId; }
167 template <typename RequestIdT = Aws::String>
168 void SetRequestId(RequestIdT&& value) {
169 m_requestIdHasBeenSet = true;
170 m_requestId = std::forward<RequestIdT>(value);
171 }
172 template <typename RequestIdT = Aws::String>
173 GetManagedApiResult& WithRequestId(RequestIdT&& value) {
174 SetRequestId(std::forward<RequestIdT>(value));
175 return *this;
176 }
178 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
179
180 private:
181 Aws::String m_managedApiId;
182
183 Aws::String m_managedApiArn;
184
185 ApiSignature m_apiSignature;
186
187 Aws::Utils::DateTime m_createdAt{};
188
189 Aws::Utils::DateTime m_updatedAt{};
190
192
194
195 Aws::String m_requestId;
196 Aws::Http::HttpResponseCode m_HttpResponseCode;
197 bool m_managedApiIdHasBeenSet = false;
198 bool m_managedApiArnHasBeenSet = false;
199 bool m_apiSignatureHasBeenSet = false;
200 bool m_createdAtHasBeenSet = false;
201 bool m_updatedAtHasBeenSet = false;
202 bool m_findingsHasBeenSet = false;
203 bool m_tagsHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace APIPortal
209} // namespace Aws
GetManagedApiResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetManagedApiResult & WithApiSignature(ApiSignatureT &&value)
void SetManagedApiArn(ManagedApiArnT &&value)
GetManagedApiResult & WithCreatedAt(CreatedAtT &&value)
AWS_APIPORTAL_API GetManagedApiResult()=default
GetManagedApiResult & WithFindings(FindingsT &&value)
const Aws::Vector< ManagedApiFinding > & GetFindings() const
AWS_APIPORTAL_API GetManagedApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
GetManagedApiResult & WithRequestId(RequestIdT &&value)
GetManagedApiResult & WithManagedApiArn(ManagedApiArnT &&value)
GetManagedApiResult & WithUpdatedAt(UpdatedAtT &&value)
GetManagedApiResult & WithManagedApiId(ManagedApiIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetUpdatedAt() const
GetManagedApiResult & AddFindings(FindingsT &&value)
AWS_APIPORTAL_API GetManagedApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetManagedApiResult & WithTags(TagsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue