AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateApiMappingRequest.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
23 public:
24 AWS_APIGATEWAYV2_API UpdateApiMappingRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApiMapping"; }
31
32 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApiId() const { return m_apiId; }
39 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
40 template <typename ApiIdT = Aws::String>
41 void SetApiId(ApiIdT&& value) {
42 m_apiIdHasBeenSet = true;
43 m_apiId = std::forward<ApiIdT>(value);
44 }
45 template <typename ApiIdT = Aws::String>
47 SetApiId(std::forward<ApiIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetApiMappingId() const { return m_apiMappingId; }
57 inline bool ApiMappingIdHasBeenSet() const { return m_apiMappingIdHasBeenSet; }
58 template <typename ApiMappingIdT = Aws::String>
59 void SetApiMappingId(ApiMappingIdT&& value) {
60 m_apiMappingIdHasBeenSet = true;
61 m_apiMappingId = std::forward<ApiMappingIdT>(value);
62 }
63 template <typename ApiMappingIdT = Aws::String>
64 UpdateApiMappingRequest& WithApiMappingId(ApiMappingIdT&& value) {
65 SetApiMappingId(std::forward<ApiMappingIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetApiMappingKey() const { return m_apiMappingKey; }
75 inline bool ApiMappingKeyHasBeenSet() const { return m_apiMappingKeyHasBeenSet; }
76 template <typename ApiMappingKeyT = Aws::String>
77 void SetApiMappingKey(ApiMappingKeyT&& value) {
78 m_apiMappingKeyHasBeenSet = true;
79 m_apiMappingKey = std::forward<ApiMappingKeyT>(value);
80 }
81 template <typename ApiMappingKeyT = Aws::String>
82 UpdateApiMappingRequest& WithApiMappingKey(ApiMappingKeyT&& value) {
83 SetApiMappingKey(std::forward<ApiMappingKeyT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDomainName() const { return m_domainName; }
93 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
94 template <typename DomainNameT = Aws::String>
95 void SetDomainName(DomainNameT&& value) {
96 m_domainNameHasBeenSet = true;
97 m_domainName = std::forward<DomainNameT>(value);
98 }
99 template <typename DomainNameT = Aws::String>
101 SetDomainName(std::forward<DomainNameT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetStage() const { return m_stage; }
111 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
112 template <typename StageT = Aws::String>
113 void SetStage(StageT&& value) {
114 m_stageHasBeenSet = true;
115 m_stage = std::forward<StageT>(value);
116 }
117 template <typename StageT = Aws::String>
119 SetStage(std::forward<StageT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_apiId;
125
126 Aws::String m_apiMappingId;
127
128 Aws::String m_apiMappingKey;
129
130 Aws::String m_domainName;
131
132 Aws::String m_stage;
133 bool m_apiIdHasBeenSet = false;
134 bool m_apiMappingIdHasBeenSet = false;
135 bool m_apiMappingKeyHasBeenSet = false;
136 bool m_domainNameHasBeenSet = false;
137 bool m_stageHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace ApiGatewayV2
142} // namespace Aws
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateApiMappingRequest & WithApiMappingId(ApiMappingIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateApiMappingRequest & WithDomainName(DomainNameT &&value)
UpdateApiMappingRequest & WithStage(StageT &&value)
UpdateApiMappingRequest & WithApiId(ApiIdT &&value)
UpdateApiMappingRequest & WithApiMappingKey(ApiMappingKeyT &&value)
AWS_APIGATEWAYV2_API UpdateApiMappingRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String