AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
KubernetesActivity.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/model/Enrichment.h>
9#include <aws/guardduty/model/InvestigationKubernetesWorkload.h>
10#include <aws/guardduty/model/KubernetesAnomaly.h>
11#include <aws/guardduty/model/KubernetesApiCall.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
33 public:
34 AWS_GUARDDUTY_API KubernetesActivity() = default;
35 AWS_GUARDDUTY_API KubernetesActivity(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const KubernetesApiCall& GetApiCall() const { return m_apiCall; }
44 inline bool ApiCallHasBeenSet() const { return m_apiCallHasBeenSet; }
45 template <typename ApiCallT = KubernetesApiCall>
46 void SetApiCall(ApiCallT&& value) {
47 m_apiCallHasBeenSet = true;
48 m_apiCall = std::forward<ApiCallT>(value);
49 }
50 template <typename ApiCallT = KubernetesApiCall>
51 KubernetesActivity& WithApiCall(ApiCallT&& value) {
52 SetApiCall(std::forward<ApiCallT>(value));
53 return *this;
54 }
56
58
61 inline const KubernetesAnomaly& GetAnomaly() const { return m_anomaly; }
62 inline bool AnomalyHasBeenSet() const { return m_anomalyHasBeenSet; }
63 template <typename AnomalyT = KubernetesAnomaly>
64 void SetAnomaly(AnomalyT&& value) {
65 m_anomalyHasBeenSet = true;
66 m_anomaly = std::forward<AnomalyT>(value);
67 }
68 template <typename AnomalyT = KubernetesAnomaly>
69 KubernetesActivity& WithAnomaly(AnomalyT&& value) {
70 SetAnomaly(std::forward<AnomalyT>(value));
71 return *this;
72 }
74
76
79 inline const InvestigationKubernetesWorkload& GetWorkload() const { return m_workload; }
80 inline bool WorkloadHasBeenSet() const { return m_workloadHasBeenSet; }
81 template <typename WorkloadT = InvestigationKubernetesWorkload>
82 void SetWorkload(WorkloadT&& value) {
83 m_workloadHasBeenSet = true;
84 m_workload = std::forward<WorkloadT>(value);
85 }
86 template <typename WorkloadT = InvestigationKubernetesWorkload>
87 KubernetesActivity& WithWorkload(WorkloadT&& value) {
88 SetWorkload(std::forward<WorkloadT>(value));
89 return *this;
90 }
92
94
97 inline const Enrichment& GetEnrichment() const { return m_enrichment; }
98 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
99 template <typename EnrichmentT = Enrichment>
100 void SetEnrichment(EnrichmentT&& value) {
101 m_enrichmentHasBeenSet = true;
102 m_enrichment = std::forward<EnrichmentT>(value);
103 }
104 template <typename EnrichmentT = Enrichment>
105 KubernetesActivity& WithEnrichment(EnrichmentT&& value) {
106 SetEnrichment(std::forward<EnrichmentT>(value));
107 return *this;
108 }
110 private:
111 KubernetesApiCall m_apiCall;
112
113 KubernetesAnomaly m_anomaly;
114
116
117 Enrichment m_enrichment;
118 bool m_apiCallHasBeenSet = false;
119 bool m_anomalyHasBeenSet = false;
120 bool m_workloadHasBeenSet = false;
121 bool m_enrichmentHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace GuardDuty
126} // namespace Aws
KubernetesActivity & WithWorkload(WorkloadT &&value)
AWS_GUARDDUTY_API KubernetesActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API KubernetesActivity(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API KubernetesActivity()=default
KubernetesActivity & WithEnrichment(EnrichmentT &&value)
KubernetesActivity & WithApiCall(ApiCallT &&value)
const InvestigationKubernetesWorkload & GetWorkload() const
const KubernetesApiCall & GetApiCall() const
KubernetesActivity & WithAnomaly(AnomalyT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const KubernetesAnomaly & GetAnomaly() const
Aws::Utils::Json::JsonValue JsonValue