AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
BasePathMapping.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_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 APIGateway {
20namespace Model {
21
29 public:
30 AWS_APIGATEWAY_API BasePathMapping() = default;
31 AWS_APIGATEWAY_API BasePathMapping(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetBasePath() const { return m_basePath; }
41 inline bool BasePathHasBeenSet() const { return m_basePathHasBeenSet; }
42 template <typename BasePathT = Aws::String>
43 void SetBasePath(BasePathT&& value) {
44 m_basePathHasBeenSet = true;
45 m_basePath = std::forward<BasePathT>(value);
46 }
47 template <typename BasePathT = Aws::String>
48 BasePathMapping& WithBasePath(BasePathT&& value) {
49 SetBasePath(std::forward<BasePathT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
59 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
60 template <typename RestApiIdT = Aws::String>
61 void SetRestApiId(RestApiIdT&& value) {
62 m_restApiIdHasBeenSet = true;
63 m_restApiId = std::forward<RestApiIdT>(value);
64 }
65 template <typename RestApiIdT = Aws::String>
66 BasePathMapping& WithRestApiId(RestApiIdT&& value) {
67 SetRestApiId(std::forward<RestApiIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStage() const { return m_stage; }
77 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
78 template <typename StageT = Aws::String>
79 void SetStage(StageT&& value) {
80 m_stageHasBeenSet = true;
81 m_stage = std::forward<StageT>(value);
82 }
83 template <typename StageT = Aws::String>
84 BasePathMapping& WithStage(StageT&& value) {
85 SetStage(std::forward<StageT>(value));
86 return *this;
87 }
89
91
92 inline const Aws::String& GetRequestId() const { return m_requestId; }
93 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 BasePathMapping& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_basePath;
107
108 Aws::String m_restApiId;
109
110 Aws::String m_stage;
111
112 Aws::String m_requestId;
113 bool m_basePathHasBeenSet = false;
114 bool m_restApiIdHasBeenSet = false;
115 bool m_stageHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace APIGateway
121} // namespace Aws
const Aws::String & GetRestApiId() const
BasePathMapping & WithStage(StageT &&value)
AWS_APIGATEWAY_API BasePathMapping()=default
BasePathMapping & WithRestApiId(RestApiIdT &&value)
const Aws::String & GetRequestId() const
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
BasePathMapping & WithRequestId(RequestIdT &&value)
BasePathMapping & WithBasePath(BasePathT &&value)
const Aws::String & GetStage() const
const Aws::String & GetBasePath() const
AWS_APIGATEWAY_API BasePathMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAY_API BasePathMapping(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue