AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetHealthDescription.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10#include <aws/elasticloadbalancingv2/model/AdministrativeOverride.h>
11#include <aws/elasticloadbalancingv2/model/AnomalyDetection.h>
12#include <aws/elasticloadbalancingv2/model/TargetDescription.h>
13#include <aws/elasticloadbalancingv2/model/TargetHealth.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2 {
24namespace Model {
25
32 public:
33 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription() = default;
34 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
38 const char* locationValue) const;
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const TargetDescription& GetTarget() const { return m_target; }
46 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
47 template <typename TargetT = TargetDescription>
48 void SetTarget(TargetT&& value) {
49 m_targetHasBeenSet = true;
50 m_target = std::forward<TargetT>(value);
51 }
52 template <typename TargetT = TargetDescription>
54 SetTarget(std::forward<TargetT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetHealthCheckPort() const { return m_healthCheckPort; }
64 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
65 template <typename HealthCheckPortT = Aws::String>
66 void SetHealthCheckPort(HealthCheckPortT&& value) {
67 m_healthCheckPortHasBeenSet = true;
68 m_healthCheckPort = std::forward<HealthCheckPortT>(value);
69 }
70 template <typename HealthCheckPortT = Aws::String>
71 TargetHealthDescription& WithHealthCheckPort(HealthCheckPortT&& value) {
72 SetHealthCheckPort(std::forward<HealthCheckPortT>(value));
73 return *this;
74 }
76
78
81 inline const TargetHealth& GetTargetHealth() const { return m_targetHealth; }
82 inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
83 template <typename TargetHealthT = TargetHealth>
84 void SetTargetHealth(TargetHealthT&& value) {
85 m_targetHealthHasBeenSet = true;
86 m_targetHealth = std::forward<TargetHealthT>(value);
87 }
88 template <typename TargetHealthT = TargetHealth>
89 TargetHealthDescription& WithTargetHealth(TargetHealthT&& value) {
90 SetTargetHealth(std::forward<TargetHealthT>(value));
91 return *this;
92 }
94
96
101 inline const AnomalyDetection& GetAnomalyDetection() const { return m_anomalyDetection; }
102 inline bool AnomalyDetectionHasBeenSet() const { return m_anomalyDetectionHasBeenSet; }
103 template <typename AnomalyDetectionT = AnomalyDetection>
104 void SetAnomalyDetection(AnomalyDetectionT&& value) {
105 m_anomalyDetectionHasBeenSet = true;
106 m_anomalyDetection = std::forward<AnomalyDetectionT>(value);
107 }
108 template <typename AnomalyDetectionT = AnomalyDetection>
109 TargetHealthDescription& WithAnomalyDetection(AnomalyDetectionT&& value) {
110 SetAnomalyDetection(std::forward<AnomalyDetectionT>(value));
111 return *this;
112 }
114
116
119 inline const AdministrativeOverride& GetAdministrativeOverride() const { return m_administrativeOverride; }
120 inline bool AdministrativeOverrideHasBeenSet() const { return m_administrativeOverrideHasBeenSet; }
121 template <typename AdministrativeOverrideT = AdministrativeOverride>
122 void SetAdministrativeOverride(AdministrativeOverrideT&& value) {
123 m_administrativeOverrideHasBeenSet = true;
124 m_administrativeOverride = std::forward<AdministrativeOverrideT>(value);
125 }
126 template <typename AdministrativeOverrideT = AdministrativeOverride>
127 TargetHealthDescription& WithAdministrativeOverride(AdministrativeOverrideT&& value) {
128 SetAdministrativeOverride(std::forward<AdministrativeOverrideT>(value));
129 return *this;
130 }
132 private:
133 TargetDescription m_target;
134
135 Aws::String m_healthCheckPort;
136
137 TargetHealth m_targetHealth;
138
139 AnomalyDetection m_anomalyDetection;
140
141 AdministrativeOverride m_administrativeOverride;
142 bool m_targetHasBeenSet = false;
143 bool m_healthCheckPortHasBeenSet = false;
144 bool m_targetHealthHasBeenSet = false;
145 bool m_anomalyDetectionHasBeenSet = false;
146 bool m_administrativeOverrideHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace ElasticLoadBalancingv2
151} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetHealthDescription & WithTargetHealth(TargetHealthT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetHealthDescription & WithHealthCheckPort(HealthCheckPortT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetHealthDescription & WithAnomalyDetection(AnomalyDetectionT &&value)
TargetHealthDescription & WithAdministrativeOverride(AdministrativeOverrideT &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealthDescription(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream