AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
IdentifierParts.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
29 public:
30 AWS_APIGATEWAYV2_API IdentifierParts() = default;
31 AWS_APIGATEWAYV2_API IdentifierParts(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAYV2_API IdentifierParts& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMethod() const { return m_method; }
40 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
41 template <typename MethodT = Aws::String>
42 void SetMethod(MethodT&& value) {
43 m_methodHasBeenSet = true;
44 m_method = std::forward<MethodT>(value);
45 }
46 template <typename MethodT = Aws::String>
47 IdentifierParts& WithMethod(MethodT&& value) {
48 SetMethod(std::forward<MethodT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPath() const { return m_path; }
58 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
59 template <typename PathT = Aws::String>
60 void SetPath(PathT&& value) {
61 m_pathHasBeenSet = true;
62 m_path = std::forward<PathT>(value);
63 }
64 template <typename PathT = Aws::String>
65 IdentifierParts& WithPath(PathT&& value) {
66 SetPath(std::forward<PathT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
76 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
77 template <typename RestApiIdT = Aws::String>
78 void SetRestApiId(RestApiIdT&& value) {
79 m_restApiIdHasBeenSet = true;
80 m_restApiId = std::forward<RestApiIdT>(value);
81 }
82 template <typename RestApiIdT = Aws::String>
83 IdentifierParts& WithRestApiId(RestApiIdT&& value) {
84 SetRestApiId(std::forward<RestApiIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStage() const { return m_stage; }
94 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
95 template <typename StageT = Aws::String>
96 void SetStage(StageT&& value) {
97 m_stageHasBeenSet = true;
98 m_stage = std::forward<StageT>(value);
99 }
100 template <typename StageT = Aws::String>
101 IdentifierParts& WithStage(StageT&& value) {
102 SetStage(std::forward<StageT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_method;
108
109 Aws::String m_path;
110
111 Aws::String m_restApiId;
112
113 Aws::String m_stage;
114 bool m_methodHasBeenSet = false;
115 bool m_pathHasBeenSet = false;
116 bool m_restApiIdHasBeenSet = false;
117 bool m_stageHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace ApiGatewayV2
122} // namespace Aws
IdentifierParts & WithRestApiId(RestApiIdT &&value)
IdentifierParts & WithPath(PathT &&value)
AWS_APIGATEWAYV2_API IdentifierParts(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API IdentifierParts()=default
IdentifierParts & WithMethod(MethodT &&value)
IdentifierParts & WithStage(StageT &&value)
AWS_APIGATEWAYV2_API IdentifierParts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRestApiId() const
const Aws::String & GetMethod() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue