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

Validation constraints imposed on parameters of a request (path, query * string, headers).

See Also:

AWS * API Reference

*/ class ParameterConstraints { public: AWS_APIGATEWAYV2_API ParameterConstraints(); AWS_APIGATEWAYV2_API ParameterConstraints(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API ParameterConstraints& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Whether or not the parameter is required.

*/ inline bool GetRequired() const{ return m_required; } /** *

Whether or not the parameter is required.

*/ inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; } /** *

Whether or not the parameter is required.

*/ inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; } /** *

Whether or not the parameter is required.

*/ inline ParameterConstraints& WithRequired(bool value) { SetRequired(value); return *this;} private: bool m_required; bool m_requiredHasBeenSet = false; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws