AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerInstanceHealthStatus.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/InstanceHealthCheckState.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/model/InstanceHealthCheckResult.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
48 inline const InstanceHealthCheckState& GetOverallStatus() const{ return m_overallStatus; }
49 inline bool OverallStatusHasBeenSet() const { return m_overallStatusHasBeenSet; }
50 inline void SetOverallStatus(const InstanceHealthCheckState& value) { m_overallStatusHasBeenSet = true; m_overallStatus = value; }
51 inline void SetOverallStatus(InstanceHealthCheckState&& value) { m_overallStatusHasBeenSet = true; m_overallStatus = std::move(value); }
55
57
61 inline const Aws::Vector<InstanceHealthCheckResult>& GetDetails() const{ return m_details; }
62 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
63 inline void SetDetails(const Aws::Vector<InstanceHealthCheckResult>& value) { m_detailsHasBeenSet = true; m_details = value; }
64 inline void SetDetails(Aws::Vector<InstanceHealthCheckResult>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
67 inline ContainerInstanceHealthStatus& AddDetails(const InstanceHealthCheckResult& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
68 inline ContainerInstanceHealthStatus& AddDetails(InstanceHealthCheckResult&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; }
70 private:
71
72 InstanceHealthCheckState m_overallStatus;
73 bool m_overallStatusHasBeenSet = false;
74
76 bool m_detailsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace ECS
81} // namespace Aws
void SetOverallStatus(InstanceHealthCheckState &&value)
AWS_ECS_API ContainerInstanceHealthStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
const InstanceHealthCheckState & GetOverallStatus() const
ContainerInstanceHealthStatus & AddDetails(const InstanceHealthCheckResult &value)
ContainerInstanceHealthStatus & AddDetails(InstanceHealthCheckResult &&value)
ContainerInstanceHealthStatus & WithOverallStatus(const InstanceHealthCheckState &value)
ContainerInstanceHealthStatus & WithDetails(Aws::Vector< InstanceHealthCheckResult > &&value)
const Aws::Vector< InstanceHealthCheckResult > & GetDetails() const
void SetDetails(const Aws::Vector< InstanceHealthCheckResult > &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerInstanceHealthStatus & WithOverallStatus(InstanceHealthCheckState &&value)
AWS_ECS_API ContainerInstanceHealthStatus(Aws::Utils::Json::JsonView jsonValue)
void SetDetails(Aws::Vector< InstanceHealthCheckResult > &&value)
ContainerInstanceHealthStatus & WithDetails(const Aws::Vector< InstanceHealthCheckResult > &value)
void SetOverallStatus(const InstanceHealthCheckState &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue