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/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();
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 const TargetState& GetState() const{ return m_state; }
54 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
55 inline void SetState(const TargetState& value) { m_stateHasBeenSet = true; m_state = value; }
56 inline void SetState(TargetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
57 inline TargetHealth& WithState(const TargetState& value) { SetState(value); return *this;}
58 inline TargetHealth& WithState(TargetState&& value) { SetState(std::move(value)); return *this;}
60
62
66 inline const TargetHealthReason& GetReason() const{ return m_reason; }
67 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
68 inline void SetReason(const TargetHealthReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
69 inline void SetReason(TargetHealthReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
70 inline TargetHealth& WithReason(const TargetHealthReason& value) { SetReason(value); return *this;}
71 inline TargetHealth& WithReason(TargetHealthReason&& value) { SetReason(std::move(value)); return *this;}
73
75
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline TargetHealth& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline TargetHealth& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline TargetHealth& WithDescription(const char* value) { SetDescription(value); return *this;}
88 private:
89
90 TargetState m_state;
91 bool m_stateHasBeenSet = false;
92
93 TargetHealthReason m_reason;
94 bool m_reasonHasBeenSet = false;
95
96 Aws::String m_description;
97 bool m_descriptionHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace RDS
102} // namespace Aws
const Aws::String & GetDescription() const
TargetHealth & WithDescription(const char *value)
void SetReason(const TargetHealthReason &value)
TargetHealth & WithReason(TargetHealthReason &&value)
void SetState(const TargetState &value)
void SetReason(TargetHealthReason &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetHealth & WithState(TargetState &&value)
void SetDescription(const char *value)
const TargetState & GetState() const
void SetDescription(const Aws::String &value)
TargetHealth & WithDescription(const Aws::String &value)
TargetHealth & WithReason(const TargetHealthReason &value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetState(TargetState &&value)
AWS_RDS_API TargetHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API TargetHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDescription(Aws::String &&value)
TargetHealth & WithDescription(Aws::String &&value)
TargetHealth & WithState(const TargetState &value)
const TargetHealthReason & GetReason() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream