AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
RequestValidator.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 RequestValidator() = default;
31 AWS_APIGATEWAY_API RequestValidator(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
47 RequestValidator& WithId(IdT&& value) {
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 RequestValidator& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline bool GetValidateRequestBody() const { return m_validateRequestBody; }
77 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
78 inline void SetValidateRequestBody(bool value) {
79 m_validateRequestBodyHasBeenSet = true;
80 m_validateRequestBody = value;
81 }
84 return *this;
85 }
87
89
93 inline bool GetValidateRequestParameters() const { return m_validateRequestParameters; }
94 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
95 inline void SetValidateRequestParameters(bool value) {
96 m_validateRequestParametersHasBeenSet = true;
97 m_validateRequestParameters = value;
98 }
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 RequestValidator& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_id;
122
123 Aws::String m_name;
124
125 bool m_validateRequestBody{false};
126
127 bool m_validateRequestParameters{false};
128
129 Aws::String m_requestId;
130 bool m_idHasBeenSet = false;
131 bool m_nameHasBeenSet = false;
132 bool m_validateRequestBodyHasBeenSet = false;
133 bool m_validateRequestParametersHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace APIGateway
139} // namespace Aws
RequestValidator & WithValidateRequestParameters(bool value)
RequestValidator & WithId(IdT &&value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
RequestValidator & WithName(NameT &&value)
const Aws::String & GetRequestId() const
RequestValidator & WithRequestId(RequestIdT &&value)
AWS_APIGATEWAY_API RequestValidator()=default
AWS_APIGATEWAY_API RequestValidator(Aws::Utils::Json::JsonView jsonValue)
RequestValidator & WithValidateRequestBody(bool value)
AWS_APIGATEWAY_API RequestValidator & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue