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

Describes the details of a LoadBalancer.

See Also:

AWS * API Reference

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

The name of the LoadBalancer.

*/ inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; } /** *

The name of the LoadBalancer.

*/ inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; } /** *

The name of the LoadBalancer.

*/ inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; } /** *

The name of the LoadBalancer.

*/ inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); } /** *

The name of the LoadBalancer.

*/ inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); } /** *

The name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;} /** *

The name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;} /** *

The name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;} /** *

The domain name of the LoadBalancer.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The domain name of the LoadBalancer.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The domain name of the LoadBalancer.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The domain name of the LoadBalancer.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The domain name of the LoadBalancer.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The domain name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The domain name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The domain name of the LoadBalancer.

*/ inline LoadBalancerDescription& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

A list of Listeners used by the LoadBalancer.

*/ inline const Aws::Vector& GetListeners() const{ return m_listeners; } /** *

A list of Listeners used by the LoadBalancer.

*/ inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; } /** *

A list of Listeners used by the LoadBalancer.

*/ inline void SetListeners(const Aws::Vector& value) { m_listenersHasBeenSet = true; m_listeners = value; } /** *

A list of Listeners used by the LoadBalancer.

*/ inline void SetListeners(Aws::Vector&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); } /** *

A list of Listeners used by the LoadBalancer.

*/ inline LoadBalancerDescription& WithListeners(const Aws::Vector& value) { SetListeners(value); return *this;} /** *

A list of Listeners used by the LoadBalancer.

*/ inline LoadBalancerDescription& WithListeners(Aws::Vector&& value) { SetListeners(std::move(value)); return *this;} /** *

A list of Listeners used by the LoadBalancer.

*/ inline LoadBalancerDescription& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; } /** *

A list of Listeners used by the LoadBalancer.

*/ inline LoadBalancerDescription& AddListeners(Listener&& value) { m_listenersHasBeenSet = true; m_listeners.push_back(std::move(value)); return *this; } private: Aws::String m_loadBalancerName; bool m_loadBalancerNameHasBeenSet = false; Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::Vector m_listeners; bool m_listenersHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws