AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateDomainNameResult.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/model/DomainNameConfiguration.h>
9#include <aws/apigatewayv2/model/MutualTlsAuthentication.h>
10#include <aws/apigatewayv2/model/RoutingMode.h>
11#include <aws/core/http/HttpResponse.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 ApiGatewayV2 {
28namespace Model {
30 public:
31 AWS_APIGATEWAYV2_API CreateDomainNameResult() = default;
34
36
39 inline const Aws::String& GetApiMappingSelectionExpression() const { return m_apiMappingSelectionExpression; }
40 template <typename ApiMappingSelectionExpressionT = Aws::String>
41 void SetApiMappingSelectionExpression(ApiMappingSelectionExpressionT&& value) {
42 m_apiMappingSelectionExpressionHasBeenSet = true;
43 m_apiMappingSelectionExpression = std::forward<ApiMappingSelectionExpressionT>(value);
44 }
45 template <typename ApiMappingSelectionExpressionT = Aws::String>
46 CreateDomainNameResult& WithApiMappingSelectionExpression(ApiMappingSelectionExpressionT&& value) {
47 SetApiMappingSelectionExpression(std::forward<ApiMappingSelectionExpressionT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDomainName() const { return m_domainName; }
57 template <typename DomainNameT = Aws::String>
58 void SetDomainName(DomainNameT&& value) {
59 m_domainNameHasBeenSet = true;
60 m_domainName = std::forward<DomainNameT>(value);
61 }
62 template <typename DomainNameT = Aws::String>
63 CreateDomainNameResult& WithDomainName(DomainNameT&& value) {
64 SetDomainName(std::forward<DomainNameT>(value));
65 return *this;
66 }
68
70
71 inline const Aws::String& GetDomainNameArn() const { return m_domainNameArn; }
72 template <typename DomainNameArnT = Aws::String>
73 void SetDomainNameArn(DomainNameArnT&& value) {
74 m_domainNameArnHasBeenSet = true;
75 m_domainNameArn = std::forward<DomainNameArnT>(value);
76 }
77 template <typename DomainNameArnT = Aws::String>
78 CreateDomainNameResult& WithDomainNameArn(DomainNameArnT&& value) {
79 SetDomainNameArn(std::forward<DomainNameArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<DomainNameConfiguration>& GetDomainNameConfigurations() const { return m_domainNameConfigurations; }
89 template <typename DomainNameConfigurationsT = Aws::Vector<DomainNameConfiguration>>
90 void SetDomainNameConfigurations(DomainNameConfigurationsT&& value) {
91 m_domainNameConfigurationsHasBeenSet = true;
92 m_domainNameConfigurations = std::forward<DomainNameConfigurationsT>(value);
93 }
94 template <typename DomainNameConfigurationsT = Aws::Vector<DomainNameConfiguration>>
95 CreateDomainNameResult& WithDomainNameConfigurations(DomainNameConfigurationsT&& value) {
96 SetDomainNameConfigurations(std::forward<DomainNameConfigurationsT>(value));
97 return *this;
98 }
99 template <typename DomainNameConfigurationsT = DomainNameConfiguration>
100 CreateDomainNameResult& AddDomainNameConfigurations(DomainNameConfigurationsT&& value) {
101 m_domainNameConfigurationsHasBeenSet = true;
102 m_domainNameConfigurations.emplace_back(std::forward<DomainNameConfigurationsT>(value));
103 return *this;
104 }
106
108
111 inline const MutualTlsAuthentication& GetMutualTlsAuthentication() const { return m_mutualTlsAuthentication; }
112 template <typename MutualTlsAuthenticationT = MutualTlsAuthentication>
113 void SetMutualTlsAuthentication(MutualTlsAuthenticationT&& value) {
114 m_mutualTlsAuthenticationHasBeenSet = true;
115 m_mutualTlsAuthentication = std::forward<MutualTlsAuthenticationT>(value);
116 }
117 template <typename MutualTlsAuthenticationT = MutualTlsAuthentication>
118 CreateDomainNameResult& WithMutualTlsAuthentication(MutualTlsAuthenticationT&& value) {
119 SetMutualTlsAuthentication(std::forward<MutualTlsAuthenticationT>(value));
120 return *this;
121 }
123
125
128 inline RoutingMode GetRoutingMode() const { return m_routingMode; }
129 inline void SetRoutingMode(RoutingMode value) {
130 m_routingModeHasBeenSet = true;
131 m_routingMode = value;
132 }
134 SetRoutingMode(value);
135 return *this;
136 }
138
140
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 void SetTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags = std::forward<TagsT>(value);
148 }
149 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 SetTags(std::forward<TagsT>(value));
152 return *this;
153 }
154 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
155 CreateDomainNameResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
158 return *this;
159 }
161
163
164 inline const Aws::String& GetRequestId() const { return m_requestId; }
165 template <typename RequestIdT = Aws::String>
166 void SetRequestId(RequestIdT&& value) {
167 m_requestIdHasBeenSet = true;
168 m_requestId = std::forward<RequestIdT>(value);
169 }
170 template <typename RequestIdT = Aws::String>
172 SetRequestId(std::forward<RequestIdT>(value));
173 return *this;
174 }
176 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
177
178 private:
179 Aws::String m_apiMappingSelectionExpression;
180
181 Aws::String m_domainName;
182
183 Aws::String m_domainNameArn;
184
185 Aws::Vector<DomainNameConfiguration> m_domainNameConfigurations;
186
187 MutualTlsAuthentication m_mutualTlsAuthentication;
188
189 RoutingMode m_routingMode{RoutingMode::NOT_SET};
190
192
193 Aws::String m_requestId;
194 Aws::Http::HttpResponseCode m_HttpResponseCode;
195 bool m_apiMappingSelectionExpressionHasBeenSet = false;
196 bool m_domainNameHasBeenSet = false;
197 bool m_domainNameArnHasBeenSet = false;
198 bool m_domainNameConfigurationsHasBeenSet = false;
199 bool m_mutualTlsAuthenticationHasBeenSet = false;
200 bool m_routingModeHasBeenSet = false;
201 bool m_tagsHasBeenSet = false;
202 bool m_requestIdHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace ApiGatewayV2
207} // namespace Aws
void SetDomainNameConfigurations(DomainNameConfigurationsT &&value)
CreateDomainNameResult & WithTags(TagsT &&value)
void SetMutualTlsAuthentication(MutualTlsAuthenticationT &&value)
CreateDomainNameResult & WithMutualTlsAuthentication(MutualTlsAuthenticationT &&value)
CreateDomainNameResult & WithDomainNameArn(DomainNameArnT &&value)
const MutualTlsAuthentication & GetMutualTlsAuthentication() const
AWS_APIGATEWAYV2_API CreateDomainNameResult()=default
CreateDomainNameResult & AddDomainNameConfigurations(DomainNameConfigurationsT &&value)
CreateDomainNameResult & WithRoutingMode(RoutingMode value)
CreateDomainNameResult & WithDomainNameConfigurations(DomainNameConfigurationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDomainNameResult & WithApiMappingSelectionExpression(ApiMappingSelectionExpressionT &&value)
CreateDomainNameResult & WithDomainName(DomainNameT &&value)
CreateDomainNameResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDomainNameResult & WithRequestId(RequestIdT &&value)
void SetApiMappingSelectionExpression(ApiMappingSelectionExpressionT &&value)
AWS_APIGATEWAYV2_API CreateDomainNameResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAYV2_API CreateDomainNameResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DomainNameConfiguration > & GetDomainNameConfigurations() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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