161 lines
5.1 KiB
C
161 lines
5.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
|
|||
|
|
#include <aws/elasticloadbalancingv2/model/TargetDescription.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/elasticloadbalancingv2/model/TargetHealth.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Xml
|
|||
|
|
{
|
|||
|
|
class XmlNode;
|
|||
|
|
} // namespace Xml
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ElasticLoadBalancingv2
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Information about the health of a target.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticloadbalancingv2-2015-12-01/TargetHealthDescription">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
TargetHealthDescription();
|
|||
|
|
TargetHealthDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
|
|||
|
|
TargetHealthDescription& 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 description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline const TargetDescription& GetTarget() const{ return m_target; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTarget(const TargetDescription& value) { m_targetHasBeenSet = true; m_target = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTarget(TargetDescription&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithTarget(const TargetDescription& value) { SetTarget(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The description of the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithTarget(TargetDescription&& value) { SetTarget(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The port to use to connect with the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline const TargetHealth& GetTargetHealth() const{ return m_targetHealth; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetHealth(const TargetHealth& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetHealth(TargetHealth&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithTargetHealth(const TargetHealth& value) { SetTargetHealth(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The health information for the target.</p>
|
|||
|
|
*/
|
|||
|
|
inline TargetHealthDescription& WithTargetHealth(TargetHealth&& value) { SetTargetHealth(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
TargetDescription m_target;
|
|||
|
|
bool m_targetHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_healthCheckPort;
|
|||
|
|
bool m_healthCheckPortHasBeenSet;
|
|||
|
|
|
|||
|
|
TargetHealth m_targetHealth;
|
|||
|
|
bool m_targetHealthHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ElasticLoadBalancingv2
|
|||
|
|
} // namespace Aws
|