AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename TargetT = TargetDescription>
53 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
54 template<typename TargetT = TargetDescription>
55 TargetHealthDescription& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
57
59
62 inline const Aws::String& GetHealthCheckPort() const { return m_healthCheckPort; }
63 inline bool HealthCheckPortHasBeenSet() const { return m_healthCheckPortHasBeenSet; }
64 template<typename HealthCheckPortT = Aws::String>
65 void SetHealthCheckPort(HealthCheckPortT&& value) { m_healthCheckPortHasBeenSet = true; m_healthCheckPort = std::forward<HealthCheckPortT>(value); }
66 template<typename HealthCheckPortT = Aws::String>
67 TargetHealthDescription& WithHealthCheckPort(HealthCheckPortT&& value) { SetHealthCheckPort(std::forward<HealthCheckPortT>(value)); return *this;}
69
71
74 inline const TargetHealth& GetTargetHealth() const { return m_targetHealth; }
75 inline bool TargetHealthHasBeenSet() const { return m_targetHealthHasBeenSet; }
76 template<typename TargetHealthT = TargetHealth>
77 void SetTargetHealth(TargetHealthT&& value) { m_targetHealthHasBeenSet = true; m_targetHealth = std::forward<TargetHealthT>(value); }
78 template<typename TargetHealthT = TargetHealth>
79 TargetHealthDescription& WithTargetHealth(TargetHealthT&& value) { SetTargetHealth(std::forward<TargetHealthT>(value)); return *this;}
81
83
88 inline const AnomalyDetection& GetAnomalyDetection() const { return m_anomalyDetection; }
89 inline bool AnomalyDetectionHasBeenSet() const { return m_anomalyDetectionHasBeenSet; }
90 template<typename AnomalyDetectionT = AnomalyDetection>
91 void SetAnomalyDetection(AnomalyDetectionT&& value) { m_anomalyDetectionHasBeenSet = true; m_anomalyDetection = std::forward<AnomalyDetectionT>(value); }
92 template<typename AnomalyDetectionT = AnomalyDetection>
93 TargetHealthDescription& WithAnomalyDetection(AnomalyDetectionT&& value) { SetAnomalyDetection(std::forward<AnomalyDetectionT>(value)); return *this;}
95
97
100 inline const AdministrativeOverride& GetAdministrativeOverride() const { return m_administrativeOverride; }
101 inline bool AdministrativeOverrideHasBeenSet() const { return m_administrativeOverrideHasBeenSet; }
102 template<typename AdministrativeOverrideT = AdministrativeOverride>
103 void SetAdministrativeOverride(AdministrativeOverrideT&& value) { m_administrativeOverrideHasBeenSet = true; m_administrativeOverride = std::forward<AdministrativeOverrideT>(value); }
104 template<typename AdministrativeOverrideT = AdministrativeOverride>
105 TargetHealthDescription& WithAdministrativeOverride(AdministrativeOverrideT&& value) { SetAdministrativeOverride(std::forward<AdministrativeOverrideT>(value)); return *this;}
107 private:
108
109 TargetDescription m_target;
110 bool m_targetHasBeenSet = false;
111
112 Aws::String m_healthCheckPort;
113 bool m_healthCheckPortHasBeenSet = false;
114
115 TargetHealth m_targetHealth;
116 bool m_targetHealthHasBeenSet = false;
117
118 AnomalyDetection m_anomalyDetection;
119 bool m_anomalyDetectionHasBeenSet = false;
120
121 AdministrativeOverride m_administrativeOverride;
122 bool m_administrativeOverrideHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ElasticLoadBalancingv2
127} // 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