AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ServiceHealth.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/devops-guru/model/ServiceInsightHealth.h>
9#include <aws/devops-guru/model/ServiceName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsGuru {
21namespace Model {
22
30 public:
31 AWS_DEVOPSGURU_API ServiceHealth() = default;
32 AWS_DEVOPSGURU_API ServiceHealth(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSGURU_API ServiceHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ServiceName GetServiceName() const { return m_serviceName; }
41 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
42 inline void SetServiceName(ServiceName value) {
43 m_serviceNameHasBeenSet = true;
44 m_serviceName = value;
45 }
47 SetServiceName(value);
48 return *this;
49 }
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) {
62 m_insightHasBeenSet = true;
63 m_insight = std::forward<InsightT>(value);
64 }
65 template <typename InsightT = ServiceInsightHealth>
66 ServiceHealth& WithInsight(InsightT&& value) {
67 SetInsight(std::forward<InsightT>(value));
68 return *this;
69 }
71
73
77 inline long long GetAnalyzedResourceCount() const { return m_analyzedResourceCount; }
78 inline bool AnalyzedResourceCountHasBeenSet() const { return m_analyzedResourceCountHasBeenSet; }
79 inline void SetAnalyzedResourceCount(long long value) {
80 m_analyzedResourceCountHasBeenSet = true;
81 m_analyzedResourceCount = value;
82 }
83 inline ServiceHealth& WithAnalyzedResourceCount(long long value) {
85 return *this;
86 }
88 private:
89 ServiceName m_serviceName{ServiceName::NOT_SET};
90
91 ServiceInsightHealth m_insight;
92
93 long long m_analyzedResourceCount{0};
94 bool m_serviceNameHasBeenSet = false;
95 bool m_insightHasBeenSet = false;
96 bool m_analyzedResourceCountHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace DevOpsGuru
101} // 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