AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceHealth.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/model/ServiceName.h>
9#include <aws/devops-guru/model/ServiceInsightHealth.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DevOpsGuru
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVOPSGURU_API ServiceHealth() = default;
37 AWS_DEVOPSGURU_API ServiceHealth(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEVOPSGURU_API ServiceHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ServiceName GetServiceName() const { return m_serviceName; }
47 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
48 inline void SetServiceName(ServiceName value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
49 inline ServiceHealth& WithServiceName(ServiceName value) { SetServiceName(value); return *this;}
51
53
58 inline const ServiceInsightHealth& GetInsight() const { return m_insight; }
59 inline bool InsightHasBeenSet() const { return m_insightHasBeenSet; }
60 template<typename InsightT = ServiceInsightHealth>
61 void SetInsight(InsightT&& value) { m_insightHasBeenSet = true; m_insight = std::forward<InsightT>(value); }
62 template<typename InsightT = ServiceInsightHealth>
63 ServiceHealth& WithInsight(InsightT&& value) { SetInsight(std::forward<InsightT>(value)); return *this;}
65
67
71 inline long long GetAnalyzedResourceCount() const { return m_analyzedResourceCount; }
72 inline bool AnalyzedResourceCountHasBeenSet() const { return m_analyzedResourceCountHasBeenSet; }
73 inline void SetAnalyzedResourceCount(long long value) { m_analyzedResourceCountHasBeenSet = true; m_analyzedResourceCount = value; }
74 inline ServiceHealth& WithAnalyzedResourceCount(long long value) { SetAnalyzedResourceCount(value); return *this;}
76 private:
77
78 ServiceName m_serviceName{ServiceName::NOT_SET};
79 bool m_serviceNameHasBeenSet = false;
80
81 ServiceInsightHealth m_insight;
82 bool m_insightHasBeenSet = false;
83
84 long long m_analyzedResourceCount{0};
85 bool m_analyzedResourceCountHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace DevOpsGuru
90} // namespace Aws
AWS_DEVOPSGURU_API ServiceHealth(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API ServiceHealth & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(ServiceName value)
ServiceHealth & WithServiceName(ServiceName value)
AWS_DEVOPSGURU_API ServiceHealth()=default
ServiceHealth & WithInsight(InsightT &&value)
const ServiceInsightHealth & GetInsight() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnalyzedResourceCount(long long value)
ServiceHealth & WithAnalyzedResourceCount(long long value)
Aws::Utils::Json::JsonValue JsonValue