AWS SDK for C++  1.9.21
AWS SDK for C++
CreateRequestValidatorResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace APIGateway
24 {
25 namespace Model
26 {
41  {
42  public:
46 
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_id = std::move(value); }
62 
66  inline void SetId(const char* value) { m_id.assign(value); }
67 
71  inline CreateRequestValidatorResult& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline CreateRequestValidatorResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
81  inline CreateRequestValidatorResult& WithId(const char* value) { SetId(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline void SetName(const Aws::String& value) { m_name = value; }
93 
97  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
98 
102  inline void SetName(const char* value) { m_name.assign(value); }
103 
107  inline CreateRequestValidatorResult& WithName(const Aws::String& value) { SetName(value); return *this;}
108 
112  inline CreateRequestValidatorResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
113 
117  inline CreateRequestValidatorResult& WithName(const char* value) { SetName(value); return *this;}
118 
119 
124  inline bool GetValidateRequestBody() const{ return m_validateRequestBody; }
125 
130  inline void SetValidateRequestBody(bool value) { m_validateRequestBody = value; }
131 
136  inline CreateRequestValidatorResult& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;}
137 
138 
143  inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; }
144 
149  inline void SetValidateRequestParameters(bool value) { m_validateRequestParameters = value; }
150 
155  inline CreateRequestValidatorResult& WithValidateRequestParameters(bool value) { SetValidateRequestParameters(value); return *this;}
156 
157  private:
158 
159  Aws::String m_id;
160 
161  Aws::String m_name;
162 
163  bool m_validateRequestBody;
164 
165  bool m_validateRequestParameters;
166  };
167 
168 } // namespace Model
169 } // namespace APIGateway
170 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::APIGateway::Model::CreateRequestValidatorResult::WithName
CreateRequestValidatorResult & WithName(const char *value)
Definition: CreateRequestValidatorResult.h:117
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::CreateRequestValidatorResult::SetName
void SetName(const char *value)
Definition: CreateRequestValidatorResult.h:102
Aws::APIGateway::Model::CreateRequestValidatorResult::SetId
void SetId(const char *value)
Definition: CreateRequestValidatorResult.h:66
Aws::APIGateway::Model::CreateRequestValidatorResult::operator=
CreateRequestValidatorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::CreateRequestValidatorResult::SetValidateRequestParameters
void SetValidateRequestParameters(bool value)
Definition: CreateRequestValidatorResult.h:149
APIGateway_EXPORTS.h
Aws::APIGateway::Model::CreateRequestValidatorResult::CreateRequestValidatorResult
CreateRequestValidatorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::APIGateway::Model::CreateRequestValidatorResult::WithId
CreateRequestValidatorResult & WithId(const Aws::String &value)
Definition: CreateRequestValidatorResult.h:71
Aws::APIGateway::Model::CreateRequestValidatorResult::SetName
void SetName(Aws::String &&value)
Definition: CreateRequestValidatorResult.h:97
Aws::APIGateway::Model::CreateRequestValidatorResult::GetName
const Aws::String & GetName() const
Definition: CreateRequestValidatorResult.h:87
Aws::APIGateway::Model::CreateRequestValidatorResult::WithId
CreateRequestValidatorResult & WithId(const char *value)
Definition: CreateRequestValidatorResult.h:81
Aws::APIGateway::Model::CreateRequestValidatorResult::WithValidateRequestBody
CreateRequestValidatorResult & WithValidateRequestBody(bool value)
Definition: CreateRequestValidatorResult.h:136
Aws::APIGateway::Model::CreateRequestValidatorResult::GetValidateRequestBody
bool GetValidateRequestBody() const
Definition: CreateRequestValidatorResult.h:124
Aws::APIGateway::Model::CreateRequestValidatorResult::SetName
void SetName(const Aws::String &value)
Definition: CreateRequestValidatorResult.h:92
Aws::APIGateway::Model::CreateRequestValidatorResult::WithName
CreateRequestValidatorResult & WithName(Aws::String &&value)
Definition: CreateRequestValidatorResult.h:112
Aws::APIGateway::Model::CreateRequestValidatorResult
Definition: CreateRequestValidatorResult.h:41
Aws::APIGateway::Model::CreateRequestValidatorResult::CreateRequestValidatorResult
CreateRequestValidatorResult()
AWSString.h
Aws::APIGateway::Model::CreateRequestValidatorResult::SetId
void SetId(Aws::String &&value)
Definition: CreateRequestValidatorResult.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::CreateRequestValidatorResult::WithId
CreateRequestValidatorResult & WithId(Aws::String &&value)
Definition: CreateRequestValidatorResult.h:76
Aws::APIGateway::Model::CreateRequestValidatorResult::GetId
const Aws::String & GetId() const
Definition: CreateRequestValidatorResult.h:51
Aws::APIGateway::Model::CreateRequestValidatorResult::WithName
CreateRequestValidatorResult & WithName(const Aws::String &value)
Definition: CreateRequestValidatorResult.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::CreateRequestValidatorResult::GetValidateRequestParameters
bool GetValidateRequestParameters() const
Definition: CreateRequestValidatorResult.h:143
Aws::APIGateway::Model::CreateRequestValidatorResult::WithValidateRequestParameters
CreateRequestValidatorResult & WithValidateRequestParameters(bool value)
Definition: CreateRequestValidatorResult.h:155
Aws::APIGateway::Model::CreateRequestValidatorResult::SetId
void SetId(const Aws::String &value)
Definition: CreateRequestValidatorResult.h:56
Aws::APIGateway::Model::CreateRequestValidatorResult::SetValidateRequestBody
void SetValidateRequestBody(bool value)
Definition: CreateRequestValidatorResult.h:130