181 lines
5.7 KiB
C++
181 lines
5.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/elasticbeanstalk/model/Listener.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace ElasticBeanstalk
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Describes the details of a LoadBalancer.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/LoadBalancerDescription">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ELASTICBEANSTALK_API LoadBalancerDescription
|
|
{
|
|
public:
|
|
LoadBalancerDescription();
|
|
LoadBalancerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
LoadBalancerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
|
|
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
|
|
void OutputToStream(Aws::OStream& oStream, const char* location) const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline const Aws::String& GetLoadBalancerName() const{ return m_loadBalancerName; }
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline bool LoadBalancerNameHasBeenSet() const { return m_loadBalancerNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetLoadBalancerName(const Aws::String& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = value; }
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetLoadBalancerName(Aws::String&& value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetLoadBalancerName(const char* value) { m_loadBalancerNameHasBeenSet = true; m_loadBalancerName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithLoadBalancerName(const Aws::String& value) { SetLoadBalancerName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithLoadBalancerName(Aws::String&& value) { SetLoadBalancerName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithLoadBalancerName(const char* value) { SetLoadBalancerName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline const Aws::String& GetDomain() const{ return m_domain; }
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The domain name of the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithDomain(const char* value) { SetDomain(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline const Aws::Vector<Listener>& GetListeners() const{ return m_listeners; }
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline bool ListenersHasBeenSet() const { return m_listenersHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline void SetListeners(const Aws::Vector<Listener>& value) { m_listenersHasBeenSet = true; m_listeners = value; }
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline void SetListeners(Aws::Vector<Listener>&& value) { m_listenersHasBeenSet = true; m_listeners = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithListeners(const Aws::Vector<Listener>& value) { SetListeners(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& WithListeners(Aws::Vector<Listener>&& value) { SetListeners(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
inline LoadBalancerDescription& AddListeners(const Listener& value) { m_listenersHasBeenSet = true; m_listeners.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of Listeners used by the LoadBalancer.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::String m_domain;
|
|
bool m_domainHasBeenSet;
|
|
|
|
Aws::Vector<Listener> m_listeners;
|
|
bool m_listenersHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ElasticBeanstalk
|
|
} // namespace Aws
|