AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceHealthSummary.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/InstanceHealthState.h>
10#include <aws/lightsail/model/InstanceHealthReason.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LIGHTSAIL_API InstanceHealthSummary();
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
49 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
50 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
51 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
52 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
53 inline InstanceHealthSummary& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
54 inline InstanceHealthSummary& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
55 inline InstanceHealthSummary& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
57
59
62 inline const InstanceHealthState& GetInstanceHealth() const{ return m_instanceHealth; }
63 inline bool InstanceHealthHasBeenSet() const { return m_instanceHealthHasBeenSet; }
64 inline void SetInstanceHealth(const InstanceHealthState& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = value; }
65 inline void SetInstanceHealth(InstanceHealthState&& value) { m_instanceHealthHasBeenSet = true; m_instanceHealth = std::move(value); }
67 inline InstanceHealthSummary& WithInstanceHealth(InstanceHealthState&& value) { SetInstanceHealth(std::move(value)); return *this;}
69
71
109 inline const InstanceHealthReason& GetInstanceHealthReason() const{ return m_instanceHealthReason; }
110 inline bool InstanceHealthReasonHasBeenSet() const { return m_instanceHealthReasonHasBeenSet; }
111 inline void SetInstanceHealthReason(const InstanceHealthReason& value) { m_instanceHealthReasonHasBeenSet = true; m_instanceHealthReason = value; }
112 inline void SetInstanceHealthReason(InstanceHealthReason&& value) { m_instanceHealthReasonHasBeenSet = true; m_instanceHealthReason = std::move(value); }
116 private:
117
118 Aws::String m_instanceName;
119 bool m_instanceNameHasBeenSet = false;
120
121 InstanceHealthState m_instanceHealth;
122 bool m_instanceHealthHasBeenSet = false;
123
124 InstanceHealthReason m_instanceHealthReason;
125 bool m_instanceHealthReasonHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Lightsail
130} // namespace Aws
void SetInstanceHealth(InstanceHealthState &&value)
const InstanceHealthState & GetInstanceHealth() const
AWS_LIGHTSAIL_API InstanceHealthSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API InstanceHealthSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceHealthSummary & WithInstanceHealthReason(const InstanceHealthReason &value)
InstanceHealthSummary & WithInstanceName(Aws::String &&value)
InstanceHealthSummary & WithInstanceHealth(InstanceHealthState &&value)
void SetInstanceHealthReason(const InstanceHealthReason &value)
InstanceHealthSummary & WithInstanceHealthReason(InstanceHealthReason &&value)
void SetInstanceHealth(const InstanceHealthState &value)
InstanceHealthSummary & WithInstanceHealth(const InstanceHealthState &value)
InstanceHealthSummary & WithInstanceName(const Aws::String &value)
InstanceHealthSummary & WithInstanceName(const char *value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const InstanceHealthReason & GetInstanceHealthReason() const
void SetInstanceHealthReason(InstanceHealthReason &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue