/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information to use when checking for a successful response from a * target.

See Also:

AWS * API Reference

*/ class AWS_ELASTICLOADBALANCINGV2_API Matcher { public: Matcher(); Matcher(const Aws::Utils::Xml::XmlNode& xmlNode); Matcher& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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

The HTTP codes.

For Application Load Balancers, you can specify values * between 200 and 499, and the default value is 200. You can specify multiple * values (for example, "200,202") or a range of values (for example, * "200-299").

For Network Load Balancers, this is 200–399.

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