/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace APIGateway { namespace Model { /** *

A set of validation rules for incoming Method requests.

See * Also:

AWS * API Reference

*/ class UpdateRequestValidatorResult { public: AWS_APIGATEWAY_API UpdateRequestValidatorResult(); AWS_APIGATEWAY_API UpdateRequestValidatorResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAY_API UpdateRequestValidatorResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of this RequestValidator.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of this RequestValidator.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The identifier of this RequestValidator.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The identifier of this RequestValidator.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The identifier of this RequestValidator.

*/ inline UpdateRequestValidatorResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of this RequestValidator.

*/ inline UpdateRequestValidatorResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of this RequestValidator.

*/ inline UpdateRequestValidatorResult& WithId(const char* value) { SetId(value); return *this;} /** *

The name of this RequestValidator

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of this RequestValidator

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of this RequestValidator

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of this RequestValidator

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of this RequestValidator

*/ inline UpdateRequestValidatorResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of this RequestValidator

*/ inline UpdateRequestValidatorResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of this RequestValidator

*/ inline UpdateRequestValidatorResult& WithName(const char* value) { SetName(value); return *this;} /** *

A Boolean flag to indicate whether to validate a request body according to * the configured Model schema.

*/ inline bool GetValidateRequestBody() const{ return m_validateRequestBody; } /** *

A Boolean flag to indicate whether to validate a request body according to * the configured Model schema.

*/ inline void SetValidateRequestBody(bool value) { m_validateRequestBody = value; } /** *

A Boolean flag to indicate whether to validate a request body according to * the configured Model schema.

*/ inline UpdateRequestValidatorResult& WithValidateRequestBody(bool value) { SetValidateRequestBody(value); return *this;} /** *

A Boolean flag to indicate whether to validate request parameters * (true) or not (false).

*/ inline bool GetValidateRequestParameters() const{ return m_validateRequestParameters; } /** *

A Boolean flag to indicate whether to validate request parameters * (true) or not (false).

*/ inline void SetValidateRequestParameters(bool value) { m_validateRequestParameters = value; } /** *

A Boolean flag to indicate whether to validate request parameters * (true) or not (false).

*/ inline UpdateRequestValidatorResult& WithValidateRequestParameters(bool value) { SetValidateRequestParameters(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateRequestValidatorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateRequestValidatorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateRequestValidatorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Aws::String m_name; bool m_validateRequestBody; bool m_validateRequestParameters; Aws::String m_requestId; }; } // namespace Model } // namespace APIGateway } // namespace Aws