/** * 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 HTTP header in the request.

See * Also:

AWS * API Reference

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

Specify True to match anything except the match criteria. The * default value is False.

*/ inline bool GetInvert() const{ return m_invert; } /** *

Specify True to match anything except the match criteria. The * default value is False.

*/ inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; } /** *

Specify True to match anything except the match criteria. The * default value is False.

*/ inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; } /** *

Specify True to match anything except the match criteria. The * default value is False.

*/ inline HttpRouteHeader& WithInvert(bool value) { SetInvert(value); return *this;} /** *

The HeaderMatchMethod object.

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

The HeaderMatchMethod object.

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

The HeaderMatchMethod object.

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

The HeaderMatchMethod object.

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

The HeaderMatchMethod object.

*/ inline HttpRouteHeader& WithMatch(const HeaderMatchMethod& value) { SetMatch(value); return *this;} /** *

The HeaderMatchMethod object.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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

A name for the HTTP header in the client request that will be matched on.

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