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

See Also:

AWS * API Reference

*/ class HostHeaderConditionConfig { public: AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig(); AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API HostHeaderConditionConfig& 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 host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

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

The host names. The maximum size of each name is 128 characters. The * comparison is case insensitive. The following wildcard characters are supported: * * (matches 0 or more characters) and ? (matches exactly 1 character).

If * you specify multiple strings, the condition is satisfied if one of the strings * matches the host name.

*/ inline HostHeaderConditionConfig& 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