/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 path to match in the request.

See * Also:

AWS * API Reference

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The exact path to match on.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

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

The regex used to match the path.

*/ inline HttpPathMatch& WithRegex(const char* value) { SetRegex(value); return *this;} private: Aws::String m_exact; bool m_exactHasBeenSet = false; Aws::String m_regex; bool m_regexHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws