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

An object that represents the query parameter in the request.

See * Also:

AWS * API Reference

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

The query parameter to match on.

*/ inline const QueryParameterMatch& GetMatch() const{ return m_match; } /** *

The query parameter to match on.

*/ inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; } /** *

The query parameter to match on.

*/ inline void SetMatch(const QueryParameterMatch& value) { m_matchHasBeenSet = true; m_match = value; } /** *

The query parameter to match on.

*/ inline void SetMatch(QueryParameterMatch&& value) { m_matchHasBeenSet = true; m_match = std::move(value); } /** *

The query parameter to match on.

*/ inline HttpQueryParameter& WithMatch(const QueryParameterMatch& value) { SetMatch(value); return *this;} /** *

The query parameter to match on.

*/ inline HttpQueryParameter& WithMatch(QueryParameterMatch&& value) { SetMatch(std::move(value)); return *this;} /** *

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

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

A name for the query parameter that will be matched on.

*/ inline HttpQueryParameter& WithName(const char* value) { SetName(value); return *this;} private: QueryParameterMatch m_match; bool m_matchHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws