AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetHealthDescription.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticloadbalancingv2/model/TargetDescription.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elasticloadbalancingv2/model/TargetHealth.h>
12#include <aws/elasticloadbalancingv2/model/AnomalyDetection.h>
13#include <aws/elasticloadbalancingv2/model/AdministrativeOverride.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace ElasticLoadBalancingv2
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription();
39 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const TargetDescription& GetTarget() const{ return m_target; }
51 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
52 inline void SetTarget(const TargetDescription& value) { m_targetHasBeenSet = true; m_target = value; }
53 inline void SetTarget(TargetDescription&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
54 inline TargetHealthDescription& WithTarget(const TargetDescription& value) { SetTarget(value); return *this;}
55 inline TargetHealthDescription& WithTarget(TargetDescription&& value) { SetTarget(std::move(value)); return *this;}
57
59
62 inline const Aws::String& GetHealthCheckPort() const{ return m_healthCheckPort; }
63 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
64 inline void SetHealthCheckPort(const Aws::String& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = value; }
65 inline void SetHealthCheckPort(Aws::String&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::move(value); }
66 inline void SetHealthCheckPort(const char* value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort.assign(value); }
67 inline TargetHealthDescription& WithHealthCheckPort(const Aws::String& value) { SetHealthCheckPort(value); return *this;}
68 inline TargetHealthDescription& WithHealthCheckPort(Aws::String&& value) { SetHealthCheckPort(std::move(value)); return *this;}
69 inline TargetHealthDescription& WithHealthCheckPort(const char* value) { SetHealthCheckPort(value); return *this;}
71
73
76 inline const TargetHealth& GetTargetHealth() const{ return m_targetHealth; }
77 inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
78 inline void SetTargetHealth(const TargetHealth& value) { m_targetHealthHasBeenSet = true; m_targetHealth = value; }
79 inline void SetTargetHealth(TargetHealth&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = std::move(value); }
80 inline TargetHealthDescription& WithTargetHealth(const TargetHealth& value) { SetTargetHealth(value); return *this;}
81 inline TargetHealthDescription& WithTargetHealth(TargetHealth&& value) { SetTargetHealth(std::move(value)); return *this;}
83
85
90 inline const AnomalyDetection& GetAnomalyDetection() const{ return m_anomalyDetection; }
91 inline bool AnomalyDetectionHasBeenSet() const { return m_anomalyDetectionHasBeenSet; }
92 inline void SetAnomalyDetection(const AnomalyDetection& value) { m_anomalyDetectionHasBeenSet = true; m_anomalyDetection = value; }
93 inline void SetAnomalyDetection(AnomalyDetection&& value) { m_anomalyDetectionHasBeenSet = true; m_anomalyDetection = std::move(value); }
95 inline TargetHealthDescription& WithAnomalyDetection(AnomalyDetection&& value) { SetAnomalyDetection(std::move(value)); return *this;}
97
99
102 inline const AdministrativeOverride& GetAdministrativeOverride() const{ return m_administrativeOverride; }
103 inline bool AdministrativeOverrideHasBeenSet() const { return m_administrativeOverrideHasBeenSet; }
104 inline void SetAdministrativeOverride(const AdministrativeOverride& value) { m_administrativeOverrideHasBeenSet = true; m_administrativeOverride = value; }
105 inline void SetAdministrativeOverride(AdministrativeOverride&& value) { m_administrativeOverrideHasBeenSet = true; m_administrativeOverride = std::move(value); }
109 private:
110
111 TargetDescription m_target;
112 bool m_targetHasBeenSet = false;
113
114 Aws::String m_healthCheckPort;
115 bool m_healthCheckPortHasBeenSet = false;
116
117 TargetHealth m_targetHealth;
118 bool m_targetHealthHasBeenSet = false;
119
120 AnomalyDetection m_anomalyDetection;
121 bool m_anomalyDetectionHasBeenSet = false;
122
123 AdministrativeOverride m_administrativeOverride;
124 bool m_administrativeOverrideHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace ElasticLoadBalancingv2
129} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetHealthDescription & WithHealthCheckPort(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetHealthDescription & WithAdministrativeOverride(AdministrativeOverride &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription()
TargetHealthDescription & WithHealthCheckPort(const char *value)
void SetAdministrativeOverride(const AdministrativeOverride &value)
TargetHealthDescription & WithTargetHealth(const TargetHealth &value)
TargetHealthDescription & WithAnomalyDetection(AnomalyDetection &&value)
TargetHealthDescription & WithAdministrativeOverride(const AdministrativeOverride &value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetHealthDescription & WithTargetHealth(TargetHealth &&value)
TargetHealthDescription & WithTarget(TargetDescription &&value)
TargetHealthDescription & WithTarget(const TargetDescription &value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetHealthDescription & WithHealthCheckPort(const Aws::String &value)
TargetHealthDescription & WithAnomalyDetection(const AnomalyDetection &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream