/** * 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 header condition.

There is a set of standard * HTTP header fields. You can also define custom HTTP header fields.

See * Also:

AWS * API Reference

*/ class HttpHeaderConditionConfig { public: AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig(); AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API HttpHeaderConditionConfig& 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 HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline const Aws::String& GetHttpHeaderName() const{ return m_httpHeaderName; } /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline bool HttpHeaderNameHasBeenSet() const { return m_httpHeaderNameHasBeenSet; } /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline void SetHttpHeaderName(const Aws::String& value) { m_httpHeaderNameHasBeenSet = true; m_httpHeaderName = value; } /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline void SetHttpHeaderName(Aws::String&& value) { m_httpHeaderNameHasBeenSet = true; m_httpHeaderName = std::move(value); } /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline void SetHttpHeaderName(const char* value) { m_httpHeaderNameHasBeenSet = true; m_httpHeaderName.assign(value); } /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline HttpHeaderConditionConfig& WithHttpHeaderName(const Aws::String& value) { SetHttpHeaderName(value); return *this;} /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline HttpHeaderConditionConfig& WithHttpHeaderName(Aws::String&& value) { SetHttpHeaderName(std::move(value)); return *this;} /** *

The name of the HTTP header field. The maximum size is 40 characters. The * header name is case insensitive. The allowed characters are specified by RFC * 7230. Wildcards are not supported.

You can't use an HTTP header condition * to specify the host header. Use HostHeaderConditionConfig to specify a * host header condition.

*/ inline HttpHeaderConditionConfig& WithHttpHeaderName(const char* value) { SetHttpHeaderName(value); return *this;} /** *

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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

The strings to compare against the value of the HTTP header. The maximum size * of each string is 128 characters. The comparison strings are case insensitive. * The following wildcard characters are supported: * (matches 0 or more * characters) and ? (matches exactly 1 character).

If the same header * appears multiple times in the request, we search them in order until a match is * found.

If you specify multiple strings, the condition is satisfied if one * of the strings matches the value of the HTTP header. To require that all of the * strings are a match, create one condition per string.

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