/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticLoadBalancingv2 { namespace Model { /** *

Information about an HTTP method condition.

HTTP defines a set of * request methods, also referred to as HTTP verbs. For more information, see the * HTTP * Method Registry. You can also define custom HTTP methods.

See * Also:

AWS * API Reference

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

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline HttpRequestMethodConditionConfig& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline HttpRequestMethodConditionConfig& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline HttpRequestMethodConditionConfig& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline HttpRequestMethodConditionConfig& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

The name of the request method. The maximum size is 40 characters. The * allowed characters are A-Z, hyphen (-), and underscore (_). The comparison is * case sensitive. Wildcards are not supported; therefore, the method name must be * an exact match.

If you specify multiple strings, the condition is * satisfied if one of the strings matches the HTTP request method. We recommend * that you route GET and HEAD requests in the same way, because the response to a * HEAD request may be cached.

*/ inline HttpRequestMethodConditionConfig& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancingv2 } // namespace Aws