AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TargetHealth.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/rds/model/TargetState.h>
10#include <aws/rds/model/TargetHealthReason.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 RDS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_RDS_API TargetHealth() = default;
38 AWS_RDS_API TargetHealth(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_RDS_API TargetHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
53 inline TargetState GetState() const { return m_state; }
54 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
55 inline void SetState(TargetState value) { m_stateHasBeenSet = true; m_state = value; }
56 inline TargetHealth& WithState(TargetState value) { SetState(value); return *this;}
58
60
64 inline TargetHealthReason GetReason() const { return m_reason; }
65 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
66 inline void SetReason(TargetHealthReason value) { m_reasonHasBeenSet = true; m_reason = value; }
67 inline TargetHealth& WithReason(TargetHealthReason value) { SetReason(value); return *this;}
69
71
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 TargetHealth& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82 private:
83
85 bool m_stateHasBeenSet = false;
86
88 bool m_reasonHasBeenSet = false;
89
90 Aws::String m_description;
91 bool m_descriptionHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace RDS
96} // 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