This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

116 lines
4.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElasticLoadBalancingv2
{
namespace Model
{
/**
* <p>Information to use when checking for a successful response from a
* target.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/Matcher">AWS
* API Reference</a></p>
*/
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;
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline const Aws::String& GetHttpCode() const{ return m_httpCode; }
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline bool HttpCodeHasBeenSet() const { return m_httpCodeHasBeenSet; }
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline void SetHttpCode(const Aws::String& value) { m_httpCodeHasBeenSet = true; m_httpCode = value; }
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline void SetHttpCode(Aws::String&& value) { m_httpCodeHasBeenSet = true; m_httpCode = std::move(value); }
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline void SetHttpCode(const char* value) { m_httpCodeHasBeenSet = true; m_httpCode.assign(value); }
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline Matcher& WithHttpCode(const Aws::String& value) { SetHttpCode(value); return *this;}
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline Matcher& WithHttpCode(Aws::String&& value) { SetHttpCode(std::move(value)); return *this;}
/**
* <p>The HTTP codes.</p> <p>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").</p> <p>For Network Load Balancers, this is 200399.</p>
*/
inline Matcher& WithHttpCode(const char* value) { SetHttpCode(value); return *this;}
private:
Aws::String m_httpCode;
bool m_httpCodeHasBeenSet;
};
} // namespace Model
} // namespace ElasticLoadBalancingv2
} // namespace Aws