AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceHealthCheckResult.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/InstanceHealthCheckType.h>
9#include <aws/ecs/model/InstanceHealthCheckState.h>
10#include <aws/core/utils/DateTime.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 ECS
24{
25namespace Model
26{
27
35 {
36 public:
41
42
44
47 inline const InstanceHealthCheckType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const InstanceHealthCheckType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(InstanceHealthCheckType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline InstanceHealthCheckResult& WithType(const InstanceHealthCheckType& value) { SetType(value); return *this;}
52 inline InstanceHealthCheckResult& WithType(InstanceHealthCheckType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const InstanceHealthCheckState& GetStatus() const{ return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(const InstanceHealthCheckState& value) { m_statusHasBeenSet = true; m_status = value; }
62 inline void SetStatus(InstanceHealthCheckState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
63 inline InstanceHealthCheckResult& WithStatus(const InstanceHealthCheckState& value) { SetStatus(value); return *this;}
64 inline InstanceHealthCheckResult& WithStatus(InstanceHealthCheckState&& value) { SetStatus(std::move(value)); return *this;}
66
68
72 inline const Aws::Utils::DateTime& GetLastUpdated() const{ return m_lastUpdated; }
73 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
74 inline void SetLastUpdated(const Aws::Utils::DateTime& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = value; }
75 inline void SetLastUpdated(Aws::Utils::DateTime&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::move(value); }
77 inline InstanceHealthCheckResult& WithLastUpdated(Aws::Utils::DateTime&& value) { SetLastUpdated(std::move(value)); return *this;}
79
81
85 inline const Aws::Utils::DateTime& GetLastStatusChange() const{ return m_lastStatusChange; }
86 inline bool LastStatusChangeHasBeenSet() const { return m_lastStatusChangeHasBeenSet; }
87 inline void SetLastStatusChange(const Aws::Utils::DateTime& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = value; }
88 inline void SetLastStatusChange(Aws::Utils::DateTime&& value) { m_lastStatusChangeHasBeenSet = true; m_lastStatusChange = std::move(value); }
92 private:
93
95 bool m_typeHasBeenSet = false;
96
98 bool m_statusHasBeenSet = false;
99
100 Aws::Utils::DateTime m_lastUpdated;
101 bool m_lastUpdatedHasBeenSet = false;
102
103 Aws::Utils::DateTime m_lastStatusChange;
104 bool m_lastStatusChangeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ECS
109} // namespace Aws
const InstanceHealthCheckState & GetStatus() const
InstanceHealthCheckResult & WithLastStatusChange(Aws::Utils::DateTime &&value)
InstanceHealthCheckResult & WithLastUpdated(Aws::Utils::DateTime &&value)
const InstanceHealthCheckType & GetType() const
void SetLastUpdated(const Aws::Utils::DateTime &value)
InstanceHealthCheckResult & WithLastStatusChange(const Aws::Utils::DateTime &value)
InstanceHealthCheckResult & WithType(InstanceHealthCheckType &&value)
const Aws::Utils::DateTime & GetLastStatusChange() const
InstanceHealthCheckResult & WithType(const InstanceHealthCheckType &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API InstanceHealthCheckResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastStatusChange(const Aws::Utils::DateTime &value)
InstanceHealthCheckResult & WithLastUpdated(const Aws::Utils::DateTime &value)
void SetLastStatusChange(Aws::Utils::DateTime &&value)
void SetType(const InstanceHealthCheckType &value)
InstanceHealthCheckResult & WithStatus(InstanceHealthCheckState &&value)
InstanceHealthCheckResult & WithStatus(const InstanceHealthCheckState &value)
void SetStatus(InstanceHealthCheckState &&value)
AWS_ECS_API InstanceHealthCheckResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdated() const
void SetLastUpdated(Aws::Utils::DateTime &&value)
void SetStatus(const InstanceHealthCheckState &value)
void SetType(InstanceHealthCheckType &&value)
Aws::Utils::Json::JsonValue JsonValue