AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateApiMappingRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ApiGatewayV2 {
15namespace Model {
16
24 public:
25 AWS_APIGATEWAYV2_API CreateApiMappingRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateApiMapping"; }
32
33 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetApiId() const { return m_apiId; }
40 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
41 template <typename ApiIdT = Aws::String>
42 void SetApiId(ApiIdT&& value) {
43 m_apiIdHasBeenSet = true;
44 m_apiId = std::forward<ApiIdT>(value);
45 }
46 template <typename ApiIdT = Aws::String>
48 SetApiId(std::forward<ApiIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetApiMappingKey() const { return m_apiMappingKey; }
58 inline bool ApiMappingKeyHasBeenSet() const { return m_apiMappingKeyHasBeenSet; }
59 template <typename ApiMappingKeyT = Aws::String>
60 void SetApiMappingKey(ApiMappingKeyT&& value) {
61 m_apiMappingKeyHasBeenSet = true;
62 m_apiMappingKey = std::forward<ApiMappingKeyT>(value);
63 }
64 template <typename ApiMappingKeyT = Aws::String>
65 CreateApiMappingRequest& WithApiMappingKey(ApiMappingKeyT&& value) {
66 SetApiMappingKey(std::forward<ApiMappingKeyT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDomainName() const { return m_domainName; }
76 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
77 template <typename DomainNameT = Aws::String>
78 void SetDomainName(DomainNameT&& value) {
79 m_domainNameHasBeenSet = true;
80 m_domainName = std::forward<DomainNameT>(value);
81 }
82 template <typename DomainNameT = Aws::String>
84 SetDomainName(std::forward<DomainNameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStage() const { return m_stage; }
94 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
95 template <typename StageT = Aws::String>
96 void SetStage(StageT&& value) {
97 m_stageHasBeenSet = true;
98 m_stage = std::forward<StageT>(value);
99 }
100 template <typename StageT = Aws::String>
102 SetStage(std::forward<StageT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_apiId;
108
109 Aws::String m_apiMappingKey;
110
111 Aws::String m_domainName;
112
113 Aws::String m_stage;
114 bool m_apiIdHasBeenSet = false;
115 bool m_apiMappingKeyHasBeenSet = false;
116 bool m_domainNameHasBeenSet = false;
117 bool m_stageHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ApiGatewayV2
122} // namespace Aws
CreateApiMappingRequest & WithStage(StageT &&value)
virtual const char * GetServiceRequestName() const override
CreateApiMappingRequest & WithDomainName(DomainNameT &&value)
CreateApiMappingRequest & WithApiMappingKey(ApiMappingKeyT &&value)
CreateApiMappingRequest & WithApiId(ApiIdT &&value)
AWS_APIGATEWAYV2_API CreateApiMappingRequest()=default
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String