AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ApiMapping.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApiGatewayV2 {
20namespace Model {
21
28 public:
29 AWS_APIGATEWAYV2_API ApiMapping() = default;
30 AWS_APIGATEWAYV2_API ApiMapping(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APIGATEWAYV2_API ApiMapping& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
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>
46 ApiMapping& WithApiId(ApiIdT&& value) {
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 ApiMapping& 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 ApiMapping& WithApiMappingKey(ApiMappingKeyT&& value) {
83 SetApiMappingKey(std::forward<ApiMappingKeyT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetStage() const { return m_stage; }
93 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
94 template <typename StageT = Aws::String>
95 void SetStage(StageT&& value) {
96 m_stageHasBeenSet = true;
97 m_stage = std::forward<StageT>(value);
98 }
99 template <typename StageT = Aws::String>
100 ApiMapping& WithStage(StageT&& value) {
101 SetStage(std::forward<StageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_apiId;
107
108 Aws::String m_apiMappingId;
109
110 Aws::String m_apiMappingKey;
111
112 Aws::String m_stage;
113 bool m_apiIdHasBeenSet = false;
114 bool m_apiMappingIdHasBeenSet = false;
115 bool m_apiMappingKeyHasBeenSet = false;
116 bool m_stageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ApiGatewayV2
121} // namespace Aws
ApiMapping & WithStage(StageT &&value)
Definition ApiMapping.h:100
ApiMapping & WithApiMappingId(ApiMappingIdT &&value)
Definition ApiMapping.h:64
ApiMapping & WithApiMappingKey(ApiMappingKeyT &&value)
Definition ApiMapping.h:82
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAYV2_API ApiMapping(Aws::Utils::Json::JsonView jsonValue)
void SetApiMappingKey(ApiMappingKeyT &&value)
Definition ApiMapping.h:77
ApiMapping & WithApiId(ApiIdT &&value)
Definition ApiMapping.h:46
const Aws::String & GetApiMappingId() const
Definition ApiMapping.h:56
const Aws::String & GetStage() const
Definition ApiMapping.h:92
const Aws::String & GetApiMappingKey() const
Definition ApiMapping.h:74
void SetApiMappingId(ApiMappingIdT &&value)
Definition ApiMapping.h:59
AWS_APIGATEWAYV2_API ApiMapping()=default
const Aws::String & GetApiId() const
Definition ApiMapping.h:38
AWS_APIGATEWAYV2_API ApiMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue