/** * 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 VPCLattice { namespace Model { /** *

The codes to use when checking for a successful response from a target for * health checks.

See Also:

AWS * API Reference

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

The HTTP code to use when checking for a successful response from a * target.

*/ inline const Aws::String& GetHttpCode() const{ return m_httpCode; } /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline bool HttpCodeHasBeenSet() const { return m_httpCodeHasBeenSet; } /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline void SetHttpCode(const Aws::String& value) { m_httpCodeHasBeenSet = true; m_httpCode = value; } /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline void SetHttpCode(Aws::String&& value) { m_httpCodeHasBeenSet = true; m_httpCode = std::move(value); } /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline void SetHttpCode(const char* value) { m_httpCodeHasBeenSet = true; m_httpCode.assign(value); } /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline Matcher& WithHttpCode(const Aws::String& value) { SetHttpCode(value); return *this;} /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline Matcher& WithHttpCode(Aws::String&& value) { SetHttpCode(std::move(value)); return *this;} /** *

The HTTP code to use when checking for a successful response from a * target.

*/ inline Matcher& WithHttpCode(const char* value) { SetHttpCode(value); return *this;} private: Aws::String m_httpCode; bool m_httpCodeHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws