AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
TargetHealth.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/TargetHealthStateEnum.h>
10#include <aws/elasticloadbalancingv2/model/TargetHealthReasonEnum.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElasticLoadBalancingv2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICLOADBALANCINGV2_API TargetHealth() = default;
38 AWS_ELASTICLOADBALANCINGV2_API TargetHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICLOADBALANCINGV2_API TargetHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline TargetHealthStateEnum GetState() const { return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(TargetHealthStateEnum value) { m_stateHasBeenSet = true; m_state = value; }
52 inline TargetHealth& WithState(TargetHealthStateEnum value) { SetState(value); return *this;}
54
56
93 inline TargetHealthReasonEnum GetReason() const { return m_reason; }
94 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
95 inline void SetReason(TargetHealthReasonEnum value) { m_reasonHasBeenSet = true; m_reason = value; }
96 inline TargetHealth& WithReason(TargetHealthReasonEnum value) { SetReason(value); return *this;}
98
100
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template<typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
108 template<typename DescriptionT = Aws::String>
109 TargetHealth& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
111 private:
112
114 bool m_stateHasBeenSet = false;
115
117 bool m_reasonHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ElasticLoadBalancingv2
125} // 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