AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
46 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
47 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
48 inline CreateApiMappingRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
49 inline CreateApiMappingRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
50 inline CreateApiMappingRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
52
54
57 inline const Aws::String& GetApiMappingKey() const{ return m_apiMappingKey; }
58 inline bool ApiMappingKeyHasBeenSet() const { return m_apiMappingKeyHasBeenSet; }
59 inline void SetApiMappingKey(const Aws::String& value) { m_apiMappingKeyHasBeenSet = true; m_apiMappingKey = value; }
60 inline void SetApiMappingKey(Aws::String&& value) { m_apiMappingKeyHasBeenSet = true; m_apiMappingKey = std::move(value); }
61 inline void SetApiMappingKey(const char* value) { m_apiMappingKeyHasBeenSet = true; m_apiMappingKey.assign(value); }
62 inline CreateApiMappingRequest& WithApiMappingKey(const Aws::String& value) { SetApiMappingKey(value); return *this;}
63 inline CreateApiMappingRequest& WithApiMappingKey(Aws::String&& value) { SetApiMappingKey(std::move(value)); return *this;}
64 inline CreateApiMappingRequest& WithApiMappingKey(const char* value) { SetApiMappingKey(value); return *this;}
66
68
71 inline const Aws::String& GetDomainName() const{ return m_domainName; }
72 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
73 inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
74 inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
75 inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
76 inline CreateApiMappingRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
77 inline CreateApiMappingRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
78 inline CreateApiMappingRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
80
82
85 inline const Aws::String& GetStage() const{ return m_stage; }
86 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
87 inline void SetStage(const Aws::String& value) { m_stageHasBeenSet = true; m_stage = value; }
88 inline void SetStage(Aws::String&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
89 inline void SetStage(const char* value) { m_stageHasBeenSet = true; m_stage.assign(value); }
90 inline CreateApiMappingRequest& WithStage(const Aws::String& value) { SetStage(value); return *this;}
91 inline CreateApiMappingRequest& WithStage(Aws::String&& value) { SetStage(std::move(value)); return *this;}
92 inline CreateApiMappingRequest& WithStage(const char* value) { SetStage(value); return *this;}
94 private:
95
96 Aws::String m_apiId;
97 bool m_apiIdHasBeenSet = false;
98
99 Aws::String m_apiMappingKey;
100 bool m_apiMappingKeyHasBeenSet = false;
101
102 Aws::String m_domainName;
103 bool m_domainNameHasBeenSet = false;
104
105 Aws::String m_stage;
106 bool m_stageHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ApiGatewayV2
111} // namespace Aws
CreateApiMappingRequest & WithDomainName(const char *value)
CreateApiMappingRequest & WithDomainName(Aws::String &&value)
CreateApiMappingRequest & WithStage(const Aws::String &value)
CreateApiMappingRequest & WithApiMappingKey(Aws::String &&value)
CreateApiMappingRequest & WithStage(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateApiMappingRequest & WithDomainName(const Aws::String &value)
CreateApiMappingRequest & WithStage(const char *value)
CreateApiMappingRequest & WithApiId(const char *value)
CreateApiMappingRequest & WithApiMappingKey(const Aws::String &value)
CreateApiMappingRequest & WithApiMappingKey(const char *value)
CreateApiMappingRequest & WithApiId(const Aws::String &value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
CreateApiMappingRequest & WithApiId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String