AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateManagedApiResult.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/ApiSignature.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.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 APIPortal {
26namespace Model {
28 public:
29 AWS_APIPORTAL_API CreateManagedApiResult() = default;
32
34
37 inline const Aws::String& GetManagedApiId() const { return m_managedApiId; }
38 template <typename ManagedApiIdT = Aws::String>
39 void SetManagedApiId(ManagedApiIdT&& value) {
40 m_managedApiIdHasBeenSet = true;
41 m_managedApiId = std::forward<ManagedApiIdT>(value);
42 }
43 template <typename ManagedApiIdT = Aws::String>
44 CreateManagedApiResult& WithManagedApiId(ManagedApiIdT&& value) {
45 SetManagedApiId(std::forward<ManagedApiIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetManagedApiArn() const { return m_managedApiArn; }
55 template <typename ManagedApiArnT = Aws::String>
56 void SetManagedApiArn(ManagedApiArnT&& value) {
57 m_managedApiArnHasBeenSet = true;
58 m_managedApiArn = std::forward<ManagedApiArnT>(value);
59 }
60 template <typename ManagedApiArnT = Aws::String>
61 CreateManagedApiResult& WithManagedApiArn(ManagedApiArnT&& value) {
62 SetManagedApiArn(std::forward<ManagedApiArnT>(value));
63 return *this;
64 }
66
68
71 inline const ApiSignature& GetApiSignature() const { return m_apiSignature; }
72 template <typename ApiSignatureT = ApiSignature>
73 void SetApiSignature(ApiSignatureT&& value) {
74 m_apiSignatureHasBeenSet = true;
75 m_apiSignature = std::forward<ApiSignatureT>(value);
76 }
77 template <typename ApiSignatureT = ApiSignature>
78 CreateManagedApiResult& WithApiSignature(ApiSignatureT&& value) {
79 SetApiSignature(std::forward<ApiSignatureT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) {
91 m_createdAtHasBeenSet = true;
92 m_createdAt = std::forward<CreatedAtT>(value);
93 }
94 template <typename CreatedAtT = Aws::Utils::DateTime>
96 SetCreatedAt(std::forward<CreatedAtT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 void SetUpdatedAt(UpdatedAtT&& value) {
108 m_updatedAtHasBeenSet = true;
109 m_updatedAt = std::forward<UpdatedAtT>(value);
110 }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 SetUpdatedAt(std::forward<UpdatedAtT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 CreateManagedApiResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_managedApiId;
157
158 Aws::String m_managedApiArn;
159
160 ApiSignature m_apiSignature;
161
162 Aws::Utils::DateTime m_createdAt{};
163
164 Aws::Utils::DateTime m_updatedAt{};
165
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_managedApiIdHasBeenSet = false;
171 bool m_managedApiArnHasBeenSet = false;
172 bool m_apiSignatureHasBeenSet = false;
173 bool m_createdAtHasBeenSet = false;
174 bool m_updatedAtHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace APIPortal
181} // namespace Aws
CreateManagedApiResult & WithRequestId(RequestIdT &&value)
CreateManagedApiResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_APIPORTAL_API CreateManagedApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateManagedApiResult & WithApiSignature(ApiSignatureT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateManagedApiResult & WithManagedApiId(ManagedApiIdT &&value)
CreateManagedApiResult & WithManagedApiArn(ManagedApiArnT &&value)
CreateManagedApiResult & WithTags(TagsT &&value)
CreateManagedApiResult & WithCreatedAt(CreatedAtT &&value)
CreateManagedApiResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APIPORTAL_API CreateManagedApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIPORTAL_API CreateManagedApiResult()=default
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
Aws::Utils::Json::JsonValue JsonValue