AWS SDK for C++  1.9.16
AWS SDK for C++
InstanceHealthSummary.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lightsail
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
48 
53  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
54 
59  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
60 
65  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
66 
71  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
72 
77  inline InstanceHealthSummary& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
78 
83  inline InstanceHealthSummary& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
84 
89  inline InstanceHealthSummary& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
90 
91 
95  inline const InstanceHealthState& GetInstanceHealth() const{ return m_instanceHealth; }
96 
100  inline bool InstanceHealthHasBeenSet() const { return m_instanceHealthHasBeenSet; }
101 
105  inline void SetInstanceHealth(const InstanceHealthState& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = value; }
106 
110  inline void SetInstanceHealth(InstanceHealthState&& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = std::move(value); }
111 
115  inline InstanceHealthSummary& WithInstanceHealth(const InstanceHealthState& value) { SetInstanceHealth(value); return *this;}
116 
120  inline InstanceHealthSummary& WithInstanceHealth(InstanceHealthState&& value) { SetInstanceHealth(std::move(value)); return *this;}
121 
122 
161  inline const InstanceHealthReason& GetInstanceHealthReason() const{ return m_instanceHealthReason; }
162 
201  inline bool InstanceHealthReasonHasBeenSet() const { return m_instanceHealthReasonHasBeenSet; }
202 
241  inline void SetInstanceHealthReason(const InstanceHealthReason& value) { m_instanceHealthReasonHasBeenSet = true; m_instanceHealthReason = value; }
242 
281  inline void SetInstanceHealthReason(InstanceHealthReason&& value) { m_instanceHealthReasonHasBeenSet = true; m_instanceHealthReason = std::move(value); }
282 
321  inline InstanceHealthSummary& WithInstanceHealthReason(const InstanceHealthReason& value) { SetInstanceHealthReason(value); return *this;}
322 
361  inline InstanceHealthSummary& WithInstanceHealthReason(InstanceHealthReason&& value) { SetInstanceHealthReason(std::move(value)); return *this;}
362 
363  private:
364 
365  Aws::String m_instanceName;
366  bool m_instanceNameHasBeenSet;
367 
368  InstanceHealthState m_instanceHealth;
369  bool m_instanceHealthHasBeenSet;
370 
371  InstanceHealthReason m_instanceHealthReason;
372  bool m_instanceHealthReasonHasBeenSet;
373  };
374 
375 } // namespace Model
376 } // namespace Lightsail
377 } // namespace Aws
Aws::Lightsail::Model::InstanceHealthSummary::InstanceHealthSummary
InstanceHealthSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceHealthSummary::InstanceHealthSummary
InstanceHealthSummary()
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceHealth
void SetInstanceHealth(const InstanceHealthState &value)
Definition: InstanceHealthSummary.h:105
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: InstanceHealthSummary.h:59
Aws::Lightsail::Model::InstanceHealthSummary::InstanceHealthReasonHasBeenSet
bool InstanceHealthReasonHasBeenSet() const
Definition: InstanceHealthSummary.h:201
Aws::Lightsail::Model::InstanceHealthReason
InstanceHealthReason
Definition: InstanceHealthReason.h:17
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceName
InstanceHealthSummary & WithInstanceName(const char *value)
Definition: InstanceHealthSummary.h:89
Aws::Lightsail::Model::InstanceHealthSummary::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: InstanceHealthSummary.h:53
Aws::Lightsail::Model::InstanceHealthSummary::InstanceHealthHasBeenSet
bool InstanceHealthHasBeenSet() const
Definition: InstanceHealthSummary.h:100
Aws::Lightsail::Model::InstanceHealthSummary
Definition: InstanceHealthSummary.h:35
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceHealthReason
InstanceHealthSummary & WithInstanceHealthReason(const InstanceHealthReason &value)
Definition: InstanceHealthSummary.h:321
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceName
InstanceHealthSummary & WithInstanceName(Aws::String &&value)
Definition: InstanceHealthSummary.h:83
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceHealthReason
InstanceHealthSummary & WithInstanceHealthReason(InstanceHealthReason &&value)
Definition: InstanceHealthSummary.h:361
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: InstanceHealthSummary.h:65
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceHealth
InstanceHealthSummary & WithInstanceHealth(const InstanceHealthState &value)
Definition: InstanceHealthSummary.h:115
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceName
InstanceHealthSummary & WithInstanceName(const Aws::String &value)
Definition: InstanceHealthSummary.h:77
Aws::Lightsail::Model::InstanceHealthSummary::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: InstanceHealthSummary.h:47
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceHealthReason
void SetInstanceHealthReason(InstanceHealthReason &&value)
Definition: InstanceHealthSummary.h:281
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
InstanceHealthState.h
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceName
void SetInstanceName(const char *value)
Definition: InstanceHealthSummary.h:71
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InstanceHealthSummary::GetInstanceHealthReason
const InstanceHealthReason & GetInstanceHealthReason() const
Definition: InstanceHealthSummary.h:161
Aws::Lightsail::Model::InstanceHealthSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
InstanceHealthReason.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstanceHealthSummary::GetInstanceHealth
const InstanceHealthState & GetInstanceHealth() const
Definition: InstanceHealthSummary.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::InstanceHealthSummary::WithInstanceHealth
InstanceHealthSummary & WithInstanceHealth(InstanceHealthState &&value)
Definition: InstanceHealthSummary.h:120
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceHealth
void SetInstanceHealth(InstanceHealthState &&value)
Definition: InstanceHealthSummary.h:110
Aws::Lightsail::Model::InstanceHealthSummary::SetInstanceHealthReason
void SetInstanceHealthReason(const InstanceHealthReason &value)
Definition: InstanceHealthSummary.h:241
Aws::Lightsail::Model::InstanceHealthState
InstanceHealthState
Definition: InstanceHealthState.h:17
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceHealthSummary::operator=
InstanceHealthSummary & operator=(Aws::Utils::Json::JsonView jsonValue)