AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const TargetHealthStateEnum& GetState() const{ return m_state; }
50 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
51 inline void SetState(const TargetHealthStateEnum& value) { m_stateHasBeenSet = true; m_state = value; }
52 inline void SetState(TargetHealthStateEnum&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
53 inline TargetHealth& WithState(const TargetHealthStateEnum& value) { SetState(value); return *this;}
54 inline TargetHealth& WithState(TargetHealthStateEnum&& value) { SetState(std::move(value)); return *this;}
56
58
95 inline const TargetHealthReasonEnum& GetReason() const{ return m_reason; }
96 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
97 inline void SetReason(const TargetHealthReasonEnum& value) { m_reasonHasBeenSet = true; m_reason = value; }
98 inline void SetReason(TargetHealthReasonEnum&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
99 inline TargetHealth& WithReason(const TargetHealthReasonEnum& value) { SetReason(value); return *this;}
100 inline TargetHealth& WithReason(TargetHealthReasonEnum&& value) { SetReason(std::move(value)); return *this;}
102
104
108 inline const Aws::String& GetDescription() const{ return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
111 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
113 inline TargetHealth& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
114 inline TargetHealth& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115 inline TargetHealth& WithDescription(const char* value) { SetDescription(value); return *this;}
117 private:
118
119 TargetHealthStateEnum m_state;
120 bool m_stateHasBeenSet = false;
121
122 TargetHealthReasonEnum m_reason;
123 bool m_reasonHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ElasticLoadBalancingv2
131} // namespace Aws
void SetState(const TargetHealthStateEnum &value)
void SetReason(const TargetHealthReasonEnum &value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
TargetHealth & WithDescription(const Aws::String &value)
TargetHealth & WithReason(const TargetHealthReasonEnum &value)
TargetHealth & WithDescription(const char *value)
TargetHealth & WithState(TargetHealthStateEnum &&value)
AWS_ELASTICLOADBALANCINGV2_API TargetHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICLOADBALANCINGV2_API TargetHealth()
void SetState(TargetHealthStateEnum &&value)
TargetHealth & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
TargetHealth & WithState(const TargetHealthStateEnum &value)
const TargetHealthReasonEnum & GetReason() const
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
const TargetHealthStateEnum & GetState() const
TargetHealth & WithReason(TargetHealthReasonEnum &&value)
void SetReason(TargetHealthReasonEnum &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream