AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ApiGatewayApiAsset.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/dataexchange/model/ProtocolType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataExchange
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DATAEXCHANGE_API ApiGatewayApiAsset() = default;
37 AWS_DATAEXCHANGE_API ApiGatewayApiAsset(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetApiDescription() const { return m_apiDescription; }
47 inline bool ApiDescriptionHasBeenSet() const { return m_apiDescriptionHasBeenSet; }
48 template<typename ApiDescriptionT = Aws::String>
49 void SetApiDescription(ApiDescriptionT&& value) { m_apiDescriptionHasBeenSet = true; m_apiDescription = std::forward<ApiDescriptionT>(value); }
50 template<typename ApiDescriptionT = Aws::String>
51 ApiGatewayApiAsset& WithApiDescription(ApiDescriptionT&& value) { SetApiDescription(std::forward<ApiDescriptionT>(value)); return *this;}
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) { m_apiEndpointHasBeenSet = true; m_apiEndpoint = std::forward<ApiEndpointT>(value); }
62 template<typename ApiEndpointT = Aws::String>
63 ApiGatewayApiAsset& WithApiEndpoint(ApiEndpointT&& value) { SetApiEndpoint(std::forward<ApiEndpointT>(value)); return *this;}
65
67
70 inline const Aws::String& GetApiId() const { return m_apiId; }
71 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
72 template<typename ApiIdT = Aws::String>
73 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
74 template<typename ApiIdT = Aws::String>
75 ApiGatewayApiAsset& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
77
79
82 inline const Aws::String& GetApiKey() const { return m_apiKey; }
83 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
84 template<typename ApiKeyT = Aws::String>
85 void SetApiKey(ApiKeyT&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::forward<ApiKeyT>(value); }
86 template<typename ApiKeyT = Aws::String>
87 ApiGatewayApiAsset& WithApiKey(ApiKeyT&& value) { SetApiKey(std::forward<ApiKeyT>(value)); return *this;}
89
91
94 inline const Aws::String& GetApiName() const { return m_apiName; }
95 inline bool ApiNameHasBeenSet() const { return m_apiNameHasBeenSet; }
96 template<typename ApiNameT = Aws::String>
97 void SetApiName(ApiNameT&& value) { m_apiNameHasBeenSet = true; m_apiName = std::forward<ApiNameT>(value); }
98 template<typename ApiNameT = Aws::String>
99 ApiGatewayApiAsset& WithApiName(ApiNameT&& value) { SetApiName(std::forward<ApiNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetApiSpecificationDownloadUrl() const { return m_apiSpecificationDownloadUrl; }
107 inline bool ApiSpecificationDownloadUrlHasBeenSet() const { return m_apiSpecificationDownloadUrlHasBeenSet; }
108 template<typename ApiSpecificationDownloadUrlT = Aws::String>
109 void SetApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT&& value) { m_apiSpecificationDownloadUrlHasBeenSet = true; m_apiSpecificationDownloadUrl = std::forward<ApiSpecificationDownloadUrlT>(value); }
110 template<typename ApiSpecificationDownloadUrlT = Aws::String>
111 ApiGatewayApiAsset& WithApiSpecificationDownloadUrl(ApiSpecificationDownloadUrlT&& value) { SetApiSpecificationDownloadUrl(std::forward<ApiSpecificationDownloadUrlT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetApiSpecificationDownloadUrlExpiresAt() const { return m_apiSpecificationDownloadUrlExpiresAt; }
119 inline bool ApiSpecificationDownloadUrlExpiresAtHasBeenSet() const { return m_apiSpecificationDownloadUrlExpiresAtHasBeenSet; }
120 template<typename ApiSpecificationDownloadUrlExpiresAtT = Aws::Utils::DateTime>
121 void SetApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT&& value) { m_apiSpecificationDownloadUrlExpiresAtHasBeenSet = true; m_apiSpecificationDownloadUrlExpiresAt = std::forward<ApiSpecificationDownloadUrlExpiresAtT>(value); }
122 template<typename ApiSpecificationDownloadUrlExpiresAtT = Aws::Utils::DateTime>
123 ApiGatewayApiAsset& WithApiSpecificationDownloadUrlExpiresAt(ApiSpecificationDownloadUrlExpiresAtT&& value) { SetApiSpecificationDownloadUrlExpiresAt(std::forward<ApiSpecificationDownloadUrlExpiresAtT>(value)); return *this;}
125
127
130 inline ProtocolType GetProtocolType() const { return m_protocolType; }
131 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
132 inline void SetProtocolType(ProtocolType value) { m_protocolTypeHasBeenSet = true; m_protocolType = value; }
133 inline ApiGatewayApiAsset& WithProtocolType(ProtocolType value) { SetProtocolType(value); return *this;}
135
137
140 inline const Aws::String& GetStage() const { return m_stage; }
141 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
142 template<typename StageT = Aws::String>
143 void SetStage(StageT&& value) { m_stageHasBeenSet = true; m_stage = std::forward<StageT>(value); }
144 template<typename StageT = Aws::String>
145 ApiGatewayApiAsset& WithStage(StageT&& value) { SetStage(std::forward<StageT>(value)); return *this;}
147 private:
148
149 Aws::String m_apiDescription;
150 bool m_apiDescriptionHasBeenSet = false;
151
152 Aws::String m_apiEndpoint;
153 bool m_apiEndpointHasBeenSet = false;
154
155 Aws::String m_apiId;
156 bool m_apiIdHasBeenSet = false;
157
158 Aws::String m_apiKey;
159 bool m_apiKeyHasBeenSet = false;
160
161 Aws::String m_apiName;
162 bool m_apiNameHasBeenSet = false;
163
164 Aws::String m_apiSpecificationDownloadUrl;
165 bool m_apiSpecificationDownloadUrlHasBeenSet = false;
166
167 Aws::Utils::DateTime m_apiSpecificationDownloadUrlExpiresAt{};
168 bool m_apiSpecificationDownloadUrlExpiresAtHasBeenSet = false;
169
170 ProtocolType m_protocolType{ProtocolType::NOT_SET};
171 bool m_protocolTypeHasBeenSet = false;
172
173 Aws::String m_stage;
174 bool m_stageHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace DataExchange
179} // 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