122 lines
4.0 KiB
C++
122 lines
4.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticloadbalancing/ElasticLoadBalancing_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace ElasticLoadBalancing
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Information about the configuration of an EC2 instance.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancing-2012-06-01/BackendServerDescription">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ELASTICLOADBALANCING_API BackendServerDescription
|
|
{
|
|
public:
|
|
BackendServerDescription();
|
|
BackendServerDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|
BackendServerDescription& 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 port on which the EC2 instance is listening.</p>
|
|
*/
|
|
inline int GetInstancePort() const{ return m_instancePort; }
|
|
|
|
/**
|
|
* <p>The port on which the EC2 instance is listening.</p>
|
|
*/
|
|
inline bool InstancePortHasBeenSet() const { return m_instancePortHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The port on which the EC2 instance is listening.</p>
|
|
*/
|
|
inline void SetInstancePort(int value) { m_instancePortHasBeenSet = true; m_instancePort = value; }
|
|
|
|
/**
|
|
* <p>The port on which the EC2 instance is listening.</p>
|
|
*/
|
|
inline BackendServerDescription& WithInstancePort(int value) { SetInstancePort(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline BackendServerDescription& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline BackendServerDescription& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline BackendServerDescription& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline BackendServerDescription& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The names of the policies enabled for the EC2 instance.</p>
|
|
*/
|
|
inline BackendServerDescription& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
int m_instancePort;
|
|
bool m_instancePortHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_policyNames;
|
|
bool m_policyNamesHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ElasticLoadBalancing
|
|
} // namespace Aws
|