AWS SDK for C++  1.9.108
AWS SDK for C++
TargetHealth.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace RDS
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
52  inline const TargetState& GetState() const{ return m_state; }
53 
61  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 
70  inline void SetState(const TargetState& value) { m_stateHasBeenSet = true; m_state = value; }
71 
79  inline void SetState(TargetState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
80 
88  inline TargetHealth& WithState(const TargetState& value) { SetState(value); return *this;}
89 
97  inline TargetHealth& WithState(TargetState&& value) { SetState(std::move(value)); return *this;}
98 
99 
104  inline const TargetHealthReason& GetReason() const{ return m_reason; }
105 
110  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
111 
116  inline void SetReason(const TargetHealthReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
117 
122  inline void SetReason(TargetHealthReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
123 
128  inline TargetHealth& WithReason(const TargetHealthReason& value) { SetReason(value); return *this;}
129 
134  inline TargetHealth& WithReason(TargetHealthReason&& value) { SetReason(std::move(value)); return *this;}
135 
136 
141  inline const Aws::String& GetDescription() const{ return m_description; }
142 
147  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
148 
153  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
154 
159  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
160 
165  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
166 
171  inline TargetHealth& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
172 
177  inline TargetHealth& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
178 
183  inline TargetHealth& WithDescription(const char* value) { SetDescription(value); return *this;}
184 
185  private:
186 
187  TargetState m_state;
188  bool m_stateHasBeenSet;
189 
190  TargetHealthReason m_reason;
191  bool m_reasonHasBeenSet;
192 
193  Aws::String m_description;
194  bool m_descriptionHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace RDS
199 } // namespace Aws
Aws::RDS::Model::TargetHealth::WithDescription
TargetHealth & WithDescription(const char *value)
Definition: TargetHealth.h:183
Aws::RDS::Model::TargetHealth::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: TargetHealth.h:110
Aws::RDS::Model::TargetHealth::WithDescription
TargetHealth & WithDescription(Aws::String &&value)
Definition: TargetHealth.h:177
Aws::RDS::Model::TargetHealth::GetReason
const TargetHealthReason & GetReason() const
Definition: TargetHealth.h:104
Aws::RDS::Model::TargetHealth::WithReason
TargetHealth & WithReason(const TargetHealthReason &value)
Definition: TargetHealth.h:128
Aws::RDS::Model::TargetHealth::TargetHealth
TargetHealth()
TargetState.h
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
TargetHealthReason.h
Aws::RDS::Model::TargetHealth
Definition: TargetHealth.h:35
Aws::RDS::Model::TargetHealth::StateHasBeenSet
bool StateHasBeenSet() const
Definition: TargetHealth.h:61
Aws::RDS::Model::TargetHealth::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::TargetHealth::SetReason
void SetReason(const TargetHealthReason &value)
Definition: TargetHealth.h:116
AWSStreamFwd.h
Aws::RDS::Model::TargetHealth::TargetHealth
TargetHealth(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::TargetHealth::SetState
void SetState(TargetState &&value)
Definition: TargetHealth.h:79
Aws::RDS::Model::TargetHealth::SetDescription
void SetDescription(const Aws::String &value)
Definition: TargetHealth.h:153
Aws::RDS::Model::TargetHealth::SetDescription
void SetDescription(Aws::String &&value)
Definition: TargetHealth.h:159
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::TargetHealth::operator=
TargetHealth & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::TargetHealth::WithDescription
TargetHealth & WithDescription(const Aws::String &value)
Definition: TargetHealth.h:171
Aws::RDS::Model::TargetHealth::SetReason
void SetReason(TargetHealthReason &&value)
Definition: TargetHealth.h:122
AWSString.h
Aws::RDS::Model::TargetHealthReason
TargetHealthReason
Definition: TargetHealthReason.h:17
Aws::RDS::Model::TargetHealth::SetDescription
void SetDescription(const char *value)
Definition: TargetHealth.h:165
Aws::RDS::Model::TargetHealth::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: TargetHealth.h:147
Aws::RDS::Model::TargetHealth::GetState
const TargetState & GetState() const
Definition: TargetHealth.h:52
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::TargetState
TargetState
Definition: TargetState.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::TargetHealth::WithReason
TargetHealth & WithReason(TargetHealthReason &&value)
Definition: TargetHealth.h:134
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::TargetHealth::WithState
TargetHealth & WithState(TargetState &&value)
Definition: TargetHealth.h:97
Aws::RDS::Model::TargetHealth::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::TargetHealth::SetState
void SetState(const TargetState &value)
Definition: TargetHealth.h:70
Aws::RDS::Model::TargetHealth::WithState
TargetHealth & WithState(const TargetState &value)
Definition: TargetHealth.h:88
Aws::RDS::Model::TargetHealth::GetDescription
const Aws::String & GetDescription() const
Definition: TargetHealth.h:141