/** * 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 representing the metadata of the gateway route.

See * Also:

AWS * API Reference

*/ class GrpcGatewayRouteMetadata { public: AWS_APPMESH_API GrpcGatewayRouteMetadata(); AWS_APPMESH_API GrpcGatewayRouteMetadata(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API GrpcGatewayRouteMetadata& 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 GrpcGatewayRouteMetadata& WithInvert(bool value) { SetInvert(value); return *this;} /** *

The criteria for determining a metadata match.

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

The criteria for determining a metadata match.

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

The criteria for determining a metadata match.

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

The criteria for determining a metadata match.

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

The criteria for determining a metadata match.

*/ inline GrpcGatewayRouteMetadata& WithMatch(const GrpcMetadataMatchMethod& value) { SetMatch(value); return *this;} /** *

The criteria for determining a metadata match.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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

A name for the gateway route metadata.

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