AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/rds/RDS_EXPORTS.h>
10#include <aws/rds/model/TargetHealthReason.h>
11#include <aws/rds/model/TargetState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS {
22namespace Model {
23
31 public:
32 AWS_RDS_API TargetHealth() = default;
33 AWS_RDS_API TargetHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_RDS_API TargetHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
47 inline TargetState GetState() const { return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(TargetState value) {
50 m_stateHasBeenSet = true;
51 m_state = value;
52 }
54 SetState(value);
55 return *this;
56 }
58
60
64 inline TargetHealthReason GetReason() const { return m_reason; }
65 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
66 inline void SetReason(TargetHealthReason value) {
67 m_reasonHasBeenSet = true;
68 m_reason = value;
69 }
71 SetReason(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 TargetHealth& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94 private:
96
98
99 Aws::String m_description;
100 bool m_stateHasBeenSet = false;
101 bool m_reasonHasBeenSet = false;
102 bool m_descriptionHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace RDS
107} // namespace Aws
const Aws::String & GetDescription() const
TargetHealthReason GetReason() const
void SetDescription(DescriptionT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetHealth & WithState(TargetState value)
AWS_RDS_API TargetHealth()=default
TargetHealth & WithReason(TargetHealthReason value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
TargetState GetState() const
TargetHealth & WithDescription(DescriptionT &&value)
AWS_RDS_API TargetHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API TargetHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetState(TargetState value)
void SetReason(TargetHealthReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream