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

You can use this condition to * route based on the IP address of the source that connects to the load balancer. * If a client is behind a proxy, this is the IP address of the proxy not the IP * address of the client.

See Also:

AWS * API Reference

*/ class SourceIpConditionConfig { public: AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig(); AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCINGV2_API SourceIpConditionConfig& 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 source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 * addresses. Wildcards are not supported.

If you specify multiple * addresses, the condition is satisfied if the source IP address of the request * matches one of the CIDR blocks. This condition is not satisfied by the addresses * in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For * header, use HttpHeaderConditionConfig.

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