AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ApiGatewayApiAsset.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchange_EXPORTS.h>
10#include <aws/dataexchange/model/ProtocolType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataExchange {
22namespace Model {
23
30 public:
31 AWS_DATAEXCHANGE_API ApiGatewayApiAsset() = default;
32 AWS_DATAEXCHANGE_API ApiGatewayApiAsset(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetApiDescription() const { return m_apiDescription; }
41 inline bool ApiDescriptionHasBeenSet() const { return m_apiDescriptionHasBeenSet; }
42 template <typename ApiDescriptionT = Aws::String>
43 void SetApiDescription(ApiDescriptionT&& value) {
44 m_apiDescriptionHasBeenSet = true;
45 m_apiDescription = std::forward<ApiDescriptionT>(value);
46 }
47 template <typename ApiDescriptionT = Aws::String>
48 ApiGatewayApiAsset& WithApiDescription(ApiDescriptionT&& value) {
49 SetApiDescription(std::forward<ApiDescriptionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApiEndpoint() const { return m_apiEndpoint; }
59 inline bool ApiEndpointHasBeenSet() const { return m_apiEndpointHasBeenSet; }
60 template <typename ApiEndpointT = Aws::String>
61 void SetApiEndpoint(ApiEndpointT&& value) {
62 m_apiEndpointHasBeenSet = true;
63 m_apiEndpoint = std::forward<ApiEndpointT>(value);
64 }
65 template <typename ApiEndpointT = Aws::String>
66 ApiGatewayApiAsset& WithApiEndpoint(ApiEndpointT&& value) {
67 SetApiEndpoint(std::forward<ApiEndpointT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetApiId() const { return m_apiId; }
77 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
78 template <typename ApiIdT = Aws::String>
79 void SetApiId(ApiIdT&& value) {
80 m_apiIdHasBeenSet = true;
81 m_apiId = std::forward<ApiIdT>(value);
82 }
83 template <typename ApiIdT = Aws::String>
84 ApiGatewayApiAsset& WithApiId(ApiIdT&& value) {
85 SetApiId(std::forward<ApiIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetApiKey() const { return m_apiKey; }
95 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
96 template <typename ApiKeyT = Aws::String>
97 void SetApiKey(ApiKeyT&& value) {
98 m_apiKeyHasBeenSet = true;
99 m_apiKey = std::forward<ApiKeyT>(value);
100 }
101 template <typename ApiKeyT = Aws::String>
102 ApiGatewayApiAsset& WithApiKey(ApiKeyT&& value) {
103 SetApiKey(std::forward<ApiKeyT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetApiName() const { return m_apiName; }
113 inline bool ApiNameHasBeenSet() const { return m_apiNameHasBeenSet; }
114 template <typename ApiNameT = Aws::String>
115 void SetApiName(ApiNameT&& value) {
116 m_apiNameHasBeenSet = true;
117 m_apiName = std::forward<ApiNameT>(value);
118 }
119 template <typename ApiNameT = Aws::String>
120 ApiGatewayApiAsset& WithApiName(ApiNameT&& value) {
121 SetApiName(std::forward<ApiNameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetApiSpecificationDownloadUrl() const { return m_apiSpecificationDownloadUrl; }
131 inline bool ApiSpecificationDownloadUrlHasBeenSet() const { return m_apiSpecificationDownloadUrlHasBeenSet; }
132 template <typename ApiSpecificationDownloadUrlT = Aws::String>
133 void SetApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT&& value) {
134 m_apiSpecificationDownloadUrlHasBeenSet = true;
135 m_apiSpecificationDownloadUrl = std::forward<ApiSpecificationDownloadUrlT>(value);
136 }
137 template <typename ApiSpecificationDownloadUrlT = Aws::String>
138 ApiGatewayApiAsset& WithApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT&& value) {
139 SetApiSpecificationDownloadUrl(std::forward<ApiSpecificationDownloadUrlT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetApiSpecificationDownloadUrlExpiresAt() const { return m_apiSpecificationDownloadUrlExpiresAt; }
149 inline bool ApiSpecificationDownloadUrlExpiresAtHasBeenSet() const { return m_apiSpecificationDownloadUrlExpiresAtHasBeenSet; }
150 template <typename ApiSpecificationDownloadUrlExpiresAtT = Aws::Utils::DateTime>
151 void SetApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT&& value) {
152 m_apiSpecificationDownloadUrlExpiresAtHasBeenSet = true;
153 m_apiSpecificationDownloadUrlExpiresAt = std::forward<ApiSpecificationDownloadUrlExpiresAtT>(value);
154 }
155 template <typename ApiSpecificationDownloadUrlExpiresAtT = Aws::Utils::DateTime>
156 ApiGatewayApiAsset& WithApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT&& value) {
157 SetApiSpecificationDownloadUrlExpiresAt(std::forward<ApiSpecificationDownloadUrlExpiresAtT>(value));
158 return *this;
159 }
161
163
166 inline ProtocolType GetProtocolType() const { return m_protocolType; }
167 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
168 inline void SetProtocolType(ProtocolType value) {
169 m_protocolTypeHasBeenSet = true;
170 m_protocolType = value;
171 }
173 SetProtocolType(value);
174 return *this;
175 }
177
179
182 inline const Aws::String& GetStage() const { return m_stage; }
183 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
184 template <typename StageT = Aws::String>
185 void SetStage(StageT&& value) {
186 m_stageHasBeenSet = true;
187 m_stage = std::forward<StageT>(value);
188 }
189 template <typename StageT = Aws::String>
190 ApiGatewayApiAsset& WithStage(StageT&& value) {
191 SetStage(std::forward<StageT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_apiDescription;
197
198 Aws::String m_apiEndpoint;
199
200 Aws::String m_apiId;
201
202 Aws::String m_apiKey;
203
204 Aws::String m_apiName;
205
206 Aws::String m_apiSpecificationDownloadUrl;
207
208 Aws::Utils::DateTime m_apiSpecificationDownloadUrlExpiresAt{};
209
210 ProtocolType m_protocolType{ProtocolType::NOT_SET};
211
212 Aws::String m_stage;
213 bool m_apiDescriptionHasBeenSet = false;
214 bool m_apiEndpointHasBeenSet = false;
215 bool m_apiIdHasBeenSet = false;
216 bool m_apiKeyHasBeenSet = false;
217 bool m_apiNameHasBeenSet = false;
218 bool m_apiSpecificationDownloadUrlHasBeenSet = false;
219 bool m_apiSpecificationDownloadUrlExpiresAtHasBeenSet = false;
220 bool m_protocolTypeHasBeenSet = false;
221 bool m_stageHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace DataExchange
226} // namespace Aws
void SetApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT &&value)
AWS_DATAEXCHANGE_API ApiGatewayApiAsset()=default
const Aws::String & GetApiSpecificationDownloadUrl() const
ApiGatewayApiAsset & WithApiEndpoint(ApiEndpointT &&value)
ApiGatewayApiAsset & WithApiKey(ApiKeyT &&value)
void SetApiDescription(ApiDescriptionT &&value)
ApiGatewayApiAsset & WithApiDescription(ApiDescriptionT &&value)
const Aws::Utils::DateTime & GetApiSpecificationDownloadUrlExpiresAt() const
AWS_DATAEXCHANGE_API ApiGatewayApiAsset(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAEXCHANGE_API ApiGatewayApiAsset & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiGatewayApiAsset & WithApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT &&value)
void SetApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT &&value)
ApiGatewayApiAsset & WithApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT &&value)
ApiGatewayApiAsset & WithApiId(ApiIdT &&value)
ApiGatewayApiAsset & WithProtocolType(ProtocolType value)
ApiGatewayApiAsset & WithStage(StageT &&value)
ApiGatewayApiAsset & WithApiName(ApiNameT &&value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue