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

Information about the CrossZoneLoadBalancing * attribute.

See Also:

AWS * API Reference

*/ class CrossZoneLoadBalancing { public: AWS_ELASTICLOADBALANCING_API CrossZoneLoadBalancing(); AWS_ELASTICLOADBALANCING_API CrossZoneLoadBalancing(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICLOADBALANCING_API CrossZoneLoadBalancing& 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; /** *

Specifies whether cross-zone load balancing is enabled for the load * balancer.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies whether cross-zone load balancing is enabled for the load * balancer.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies whether cross-zone load balancing is enabled for the load * balancer.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies whether cross-zone load balancing is enabled for the load * balancer.

*/ inline CrossZoneLoadBalancing& WithEnabled(bool value) { SetEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws