AWS SDK for C++  1.9.16
AWS SDK for C++
RequestValidator.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
40  {
41  public:
46 
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 
61  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 
66  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
67 
71  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
72 
76  inline RequestValidator& WithId(const Aws::String& value) { SetId(value); return *this;}
77 
81  inline RequestValidator& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
82 
86  inline RequestValidator& WithId(const char* value) { SetId(value); return *this;}
87 
88 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
97  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 
102  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
103 
107  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
108 
112  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
113 
117  inline RequestValidator& WithName(const Aws::String& value) { SetName(value); return *this;}
118 
122  inline RequestValidator& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 
127  inline RequestValidator& WithName(const char* value) { SetName(value); return *this;}
128 
129 
134  inline bool GetValidateRequestBody() const{ return m_validateRequestBody; }
135 
140  inline bool ValidateRequestBodyHasBeenSet() const { return m_validateRequestBodyHasBeenSet; }
141 
146  inline void SetValidateRequestBody(bool value) { m_validateRequestBodyHasBeenSet = true; m_validateRequestBody = value; }
147 
152  inline RequestValidator& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;}
153 
154 
159  inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; }
160 
165  inline bool ValidateRequestParametersHasBeenSet() const { return m_validateRequestParametersHasBeenSet; }
166 
171  inline void SetValidateRequestParameters(bool value) { m_validateRequestParametersHasBeenSet = true; m_validateRequestParameters = value; }
172 
177  inline RequestValidator& WithValidateRequestParameters(bool value) { SetValidateRequestParameters(value); return *this;}
178 
179  private:
180 
181  Aws::String m_id;
182  bool m_idHasBeenSet;
183 
184  Aws::String m_name;
185  bool m_nameHasBeenSet;
186 
187  bool m_validateRequestBody;
188  bool m_validateRequestBodyHasBeenSet;
189 
190  bool m_validateRequestParameters;
191  bool m_validateRequestParametersHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace APIGateway
196 } // namespace Aws
Aws::APIGateway::Model::RequestValidator::SetId
void SetId(const char *value)
Definition: RequestValidator.h:71
Aws::APIGateway::Model::RequestValidator::ValidateRequestBodyHasBeenSet
bool ValidateRequestBodyHasBeenSet() const
Definition: RequestValidator.h:140
Aws::APIGateway::Model::RequestValidator::SetName
void SetName(const Aws::String &value)
Definition: RequestValidator.h:102
Aws::APIGateway::Model::RequestValidator::IdHasBeenSet
bool IdHasBeenSet() const
Definition: RequestValidator.h:56
Aws::APIGateway::Model::RequestValidator::GetValidateRequestParameters
bool GetValidateRequestParameters() const
Definition: RequestValidator.h:159
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::RequestValidator::WithName
RequestValidator & WithName(const Aws::String &value)
Definition: RequestValidator.h:117
Aws::APIGateway::Model::RequestValidator
Definition: RequestValidator.h:40
Aws::APIGateway::Model::RequestValidator::WithValidateRequestParameters
RequestValidator & WithValidateRequestParameters(bool value)
Definition: RequestValidator.h:177
Aws::APIGateway::Model::RequestValidator::WithId
RequestValidator & WithId(const char *value)
Definition: RequestValidator.h:86
Aws::APIGateway::Model::RequestValidator::operator=
RequestValidator & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::RequestValidator::GetValidateRequestBody
bool GetValidateRequestBody() const
Definition: RequestValidator.h:134
Aws::APIGateway::Model::RequestValidator::GetId
const Aws::String & GetId() const
Definition: RequestValidator.h:51
APIGateway_EXPORTS.h
Aws::APIGateway::Model::RequestValidator::SetId
void SetId(const Aws::String &value)
Definition: RequestValidator.h:61
Aws::APIGateway::Model::RequestValidator::WithValidateRequestBody
RequestValidator & WithValidateRequestBody(bool value)
Definition: RequestValidator.h:152
Aws::APIGateway::Model::RequestValidator::ValidateRequestParametersHasBeenSet
bool ValidateRequestParametersHasBeenSet() const
Definition: RequestValidator.h:165
Aws::APIGateway::Model::RequestValidator::WithId
RequestValidator & WithId(const Aws::String &value)
Definition: RequestValidator.h:76
Aws::APIGateway::Model::RequestValidator::RequestValidator
RequestValidator(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::RequestValidator::NameHasBeenSet
bool NameHasBeenSet() const
Definition: RequestValidator.h:97
Aws::APIGateway::Model::RequestValidator::WithName
RequestValidator & WithName(const char *value)
Definition: RequestValidator.h:127
Aws::APIGateway::Model::RequestValidator::SetName
void SetName(const char *value)
Definition: RequestValidator.h:112
Aws::APIGateway::Model::RequestValidator::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::RequestValidator::SetId
void SetId(Aws::String &&value)
Definition: RequestValidator.h:66
Aws::APIGateway::Model::RequestValidator::GetName
const Aws::String & GetName() const
Definition: RequestValidator.h:92
Aws::APIGateway::Model::RequestValidator::SetValidateRequestBody
void SetValidateRequestBody(bool value)
Definition: RequestValidator.h:146
Aws::APIGateway::Model::RequestValidator::WithId
RequestValidator & WithId(Aws::String &&value)
Definition: RequestValidator.h:81
Aws::APIGateway::Model::RequestValidator::WithName
RequestValidator & WithName(Aws::String &&value)
Definition: RequestValidator.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::RequestValidator::SetValidateRequestParameters
void SetValidateRequestParameters(bool value)
Definition: RequestValidator.h:171
Aws::APIGateway::Model::RequestValidator::SetName
void SetName(Aws::String &&value)
Definition: RequestValidator.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::RequestValidator::RequestValidator
RequestValidator()