/** * 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 match method. Specify one of the match * values.

See Also:

AWS * API Reference

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

The value sent by the client must match the specified value exactly.

*/ inline const Aws::String& GetExact() const{ return m_exact; } /** *

The value sent by the client must match the specified value exactly.

*/ inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; } /** *

The value sent by the client must match the specified value exactly.

*/ inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; } /** *

The value sent by the client must match the specified value exactly.

*/ inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); } /** *

The value sent by the client must match the specified value exactly.

*/ inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); } /** *

The value sent by the client must match the specified value exactly.

*/ inline GrpcRouteMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;} /** *

The value sent by the client must match the specified value exactly.

*/ inline GrpcRouteMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;} /** *

The value sent by the client must match the specified value exactly.

*/ inline GrpcRouteMetadataMatchMethod& WithExact(const char* value) { SetExact(value); return *this;} /** *

The value sent by the client must begin with the specified characters.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The value sent by the client must begin with the specified characters.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The value sent by the client must begin with the specified characters.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The value sent by the client must begin with the specified characters.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The value sent by the client must begin with the specified characters.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The value sent by the client must begin with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The value sent by the client must begin with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The value sent by the client must begin with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

An object that represents the range of values to match on.

*/ inline const MatchRange& GetRange() const{ return m_range; } /** *

An object that represents the range of values to match on.

*/ inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; } /** *

An object that represents the range of values to match on.

*/ inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; } /** *

An object that represents the range of values to match on.

*/ inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); } /** *

An object that represents the range of values to match on.

*/ inline GrpcRouteMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;} /** *

An object that represents the range of values to match on.

*/ inline GrpcRouteMetadataMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;} /** *

The value sent by the client must include the specified characters.

*/ inline const Aws::String& GetRegex() const{ return m_regex; } /** *

The value sent by the client must include the specified characters.

*/ inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; } /** *

The value sent by the client must include the specified characters.

*/ inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; } /** *

The value sent by the client must include the specified characters.

*/ inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); } /** *

The value sent by the client must include the specified characters.

*/ inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); } /** *

The value sent by the client must include the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;} /** *

The value sent by the client must include the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;} /** *

The value sent by the client must include the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;} /** *

The value sent by the client must end with the specified characters.

*/ inline const Aws::String& GetSuffix() const{ return m_suffix; } /** *

The value sent by the client must end with the specified characters.

*/ inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; } /** *

The value sent by the client must end with the specified characters.

*/ inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; } /** *

The value sent by the client must end with the specified characters.

*/ inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); } /** *

The value sent by the client must end with the specified characters.

*/ inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); } /** *

The value sent by the client must end with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;} /** *

The value sent by the client must end with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;} /** *

The value sent by the client must end with the specified characters.

*/ inline GrpcRouteMetadataMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;} private: Aws::String m_exact; bool m_exactHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; MatchRange m_range; bool m_rangeHasBeenSet = false; Aws::String m_regex; bool m_regexHasBeenSet = false; Aws::String m_suffix; bool m_suffixHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws