AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetHealth.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/TargetHealthReasonEnum.h>
11#include <aws/elasticloadbalancingv2/model/TargetHealthStateEnum.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2 {
22namespace Model {
23
31 public:
32 AWS_ELASTICLOADBALANCINGV2_API TargetHealth() = default;
33 AWS_ELASTICLOADBALANCINGV2_API TargetHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICLOADBALANCINGV2_API TargetHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
37 const char* locationValue) const;
38 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline TargetHealthStateEnum GetState() const { return m_state; }
45 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
46 inline void SetState(TargetHealthStateEnum value) {
47 m_stateHasBeenSet = true;
48 m_state = value;
49 }
51 SetState(value);
52 return *this;
53 }
55
57
91 inline TargetHealthReasonEnum GetReason() const { return m_reason; }
92 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
93 inline void SetReason(TargetHealthReasonEnum value) {
94 m_reasonHasBeenSet = true;
95 m_reason = value;
96 }
98 SetReason(value);
99 return *this;
100 }
102
104
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 TargetHealth& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121 private:
123
125
126 Aws::String m_description;
127 bool m_stateHasBeenSet = false;
128 bool m_reasonHasBeenSet = false;
129 bool m_descriptionHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace ElasticLoadBalancingv2
134} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API TargetHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(TargetHealthStateEnum value)
TargetHealth & WithDescription(DescriptionT &&value)
void SetReason(TargetHealthReasonEnum value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetHealth & WithReason(TargetHealthReasonEnum value)
TargetHealth & WithState(TargetHealthStateEnum value)
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API TargetHealth()=default
TargetHealthReasonEnum GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream