AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace APIGateway
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APIGATEWAY_API RequestValidator() = default;
36 AWS_APIGATEWAY_API RequestValidator(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template<typename IdT = Aws::String>
48 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
49 template<typename IdT = Aws::String>
50 RequestValidator& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 RequestValidator& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
70 inline bool GetValidateRequestBody() const { return m_validateRequestBody; }
71 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
72 inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
73 inline RequestValidator& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;}
75
77
81 inline bool GetValidateRequestParameters() const { return m_validateRequestParameters; }
82 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
83 inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
91 template<typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
93 template<typename RequestIdT = Aws::String>
94 RequestValidator& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_id;
99 bool m_idHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 bool m_validateRequestBody{false};
105 bool m_validateRequestBodyHasBeenSet = false;
106
107 bool m_validateRequestParameters{false};
108 bool m_validateRequestParametersHasBeenSet = false;
109
110 Aws::String m_requestId;
111 bool m_requestIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace APIGateway
116} // 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