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

Information about additional load balancer attributes.

See * Also:

AWS * API Reference

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

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline AdditionalAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline AdditionalAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The name of the attribute.

The following attribute is supported.

*
  • elb.http.desyncmitigationmode - Determines how the * load balancer handles requests that might pose a security risk to your * application. The possible values are monitor, * defensive, and strictest. The default is * defensive.

*/ inline AdditionalAttribute& WithKey(const char* value) { SetKey(value); return *this;} /** *

This value of the attribute.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

This value of the attribute.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

This value of the attribute.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

This value of the attribute.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

This value of the attribute.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

This value of the attribute.

*/ inline AdditionalAttribute& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

This value of the attribute.

*/ inline AdditionalAttribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

This value of the attribute.

*/ inline AdditionalAttribute& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws