AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApiMappingRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ApiGatewayV2
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_APIGATEWAYV2_API CreateApiMappingRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApiMapping"; }
35
36 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetApiId() const { return m_apiId; }
44 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 template<typename ApiIdT = Aws::String>
46 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
47 template<typename ApiIdT = Aws::String>
48 CreateApiMappingRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetApiMappingKey() const { return m_apiMappingKey; }
56 inline bool ApiMappingKeyHasBeenSet() const { return m_apiMappingKeyHasBeenSet; }
57 template<typename ApiMappingKeyT = Aws::String>
58 void SetApiMappingKey(ApiMappingKeyT&& value) { m_apiMappingKeyHasBeenSet = true; m_apiMappingKey = std::forward<ApiMappingKeyT>(value); }
59 template<typename ApiMappingKeyT = Aws::String>
60 CreateApiMappingRequest& WithApiMappingKey(ApiMappingKeyT&& value) { SetApiMappingKey(std::forward<ApiMappingKeyT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDomainName() const { return m_domainName; }
68 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
69 template<typename DomainNameT = Aws::String>
70 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
71 template<typename DomainNameT = Aws::String>
72 CreateApiMappingRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetStage() const { return m_stage; }
80 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
81 template<typename StageT = Aws::String>
82 void SetStage(StageT&& value) { m_stageHasBeenSet = true; m_stage = std::forward<StageT>(value); }
83 template<typename StageT = Aws::String>
84 CreateApiMappingRequest& WithStage(StageT&& value) { SetStage(std::forward<StageT>(value)); return *this;}
86 private:
87
88 Aws::String m_apiId;
89 bool m_apiIdHasBeenSet = false;
90
91 Aws::String m_apiMappingKey;
92 bool m_apiMappingKeyHasBeenSet = false;
93
94 Aws::String m_domainName;
95 bool m_domainNameHasBeenSet = false;
96
97 Aws::String m_stage;
98 bool m_stageHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ApiGatewayV2
103} // 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