AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline RequestValidator& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline RequestValidator& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline RequestValidator& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline RequestValidator& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline RequestValidator& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline RequestValidator& WithName(const char* value) { SetName(value); return *this;}
68
70
74 inline bool GetValidateRequestBody() const{ return m_validateRequestBody; }
75 inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
76 inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
77 inline RequestValidator& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;}
79
81
85 inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; }
86 inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
87 inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
90
92
93 inline const Aws::String& GetRequestId() const{ return m_requestId; }
94 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
95 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
96 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
97 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
98 inline RequestValidator& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
99 inline RequestValidator& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
100 inline RequestValidator& WithRequestId(const char* value) { SetRequestId(value); return *this;}
102 private:
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 bool m_validateRequestBody;
111 bool m_validateRequestBodyHasBeenSet = false;
112
113 bool m_validateRequestParameters;
114 bool m_validateRequestParametersHasBeenSet = false;
115
116 Aws::String m_requestId;
117 bool m_requestIdHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace APIGateway
122} // namespace Aws
RequestValidator & WithValidateRequestParameters(bool value)
void SetRequestId(const Aws::String &value)
RequestValidator & WithName(const Aws::String &value)
RequestValidator & WithId(const Aws::String &value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
RequestValidator & WithId(Aws::String &&value)
RequestValidator & WithName(Aws::String &&value)
RequestValidator & WithName(const char *value)
const Aws::String & GetRequestId() const
void SetId(const Aws::String &value)
void SetName(const Aws::String &value)
RequestValidator & WithRequestId(const char *value)
RequestValidator & WithId(const char *value)
RequestValidator & WithRequestId(const Aws::String &value)
AWS_APIGATEWAY_API RequestValidator(Aws::Utils::Json::JsonView jsonValue)
RequestValidator & WithValidateRequestBody(bool value)
AWS_APIGATEWAY_API RequestValidator & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestValidator & WithRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue