AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
CorrelatedFinding.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/CorrelationReason.h>
11#include <aws/guardduty/model/SharedBehavior.h>
12#include <aws/guardduty/model/SharedResource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty {
24namespace Model {
25
33 public:
34 AWS_GUARDDUTY_API CorrelatedFinding() = default;
35 AWS_GUARDDUTY_API CorrelatedFinding(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetFindingType() const { return m_findingType; }
44 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
45 template <typename FindingTypeT = Aws::String>
46 void SetFindingType(FindingTypeT&& value) {
47 m_findingTypeHasBeenSet = true;
48 m_findingType = std::forward<FindingTypeT>(value);
49 }
50 template <typename FindingTypeT = Aws::String>
51 CorrelatedFinding& WithFindingType(FindingTypeT&& value) {
52 SetFindingType(std::forward<FindingTypeT>(value));
53 return *this;
54 }
56
58
62 inline long long GetCount() const { return m_count; }
63 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
64 inline void SetCount(long long value) {
65 m_countHasBeenSet = true;
66 m_count = value;
67 }
68 inline CorrelatedFinding& WithCount(long long value) {
69 SetCount(value);
70 return *this;
71 }
73
75
78 inline double GetSeverityMax() const { return m_severityMax; }
79 inline bool SeverityMaxHasBeenSet() const { return m_severityMaxHasBeenSet; }
80 inline void SetSeverityMax(double value) {
81 m_severityMaxHasBeenSet = true;
82 m_severityMax = value;
83 }
84 inline CorrelatedFinding& WithSeverityMax(double value) {
85 SetSeverityMax(value);
86 return *this;
87 }
89
91
96 inline const Aws::Vector<CorrelationReason>& GetCorrelationReasons() const { return m_correlationReasons; }
97 inline bool CorrelationReasonsHasBeenSet() const { return m_correlationReasonsHasBeenSet; }
98 template <typename CorrelationReasonsT = Aws::Vector<CorrelationReason>>
99 void SetCorrelationReasons(CorrelationReasonsT&& value) {
100 m_correlationReasonsHasBeenSet = true;
101 m_correlationReasons = std::forward<CorrelationReasonsT>(value);
102 }
103 template <typename CorrelationReasonsT = Aws::Vector<CorrelationReason>>
104 CorrelatedFinding& WithCorrelationReasons(CorrelationReasonsT&& value) {
105 SetCorrelationReasons(std::forward<CorrelationReasonsT>(value));
106 return *this;
107 }
109 m_correlationReasonsHasBeenSet = true;
110 m_correlationReasons.push_back(value);
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetFindingIds() const { return m_findingIds; }
120 inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
121 template <typename FindingIdsT = Aws::Vector<Aws::String>>
122 void SetFindingIds(FindingIdsT&& value) {
123 m_findingIdsHasBeenSet = true;
124 m_findingIds = std::forward<FindingIdsT>(value);
125 }
126 template <typename FindingIdsT = Aws::Vector<Aws::String>>
127 CorrelatedFinding& WithFindingIds(FindingIdsT&& value) {
128 SetFindingIds(std::forward<FindingIdsT>(value));
129 return *this;
130 }
131 template <typename FindingIdsT = Aws::String>
132 CorrelatedFinding& AddFindingIds(FindingIdsT&& value) {
133 m_findingIdsHasBeenSet = true;
134 m_findingIds.emplace_back(std::forward<FindingIdsT>(value));
135 return *this;
136 }
138
140
144 inline const Aws::Vector<SharedResource>& GetSharedResources() const { return m_sharedResources; }
145 inline bool SharedResourcesHasBeenSet() const { return m_sharedResourcesHasBeenSet; }
146 template <typename SharedResourcesT = Aws::Vector<SharedResource>>
147 void SetSharedResources(SharedResourcesT&& value) {
148 m_sharedResourcesHasBeenSet = true;
149 m_sharedResources = std::forward<SharedResourcesT>(value);
150 }
151 template <typename SharedResourcesT = Aws::Vector<SharedResource>>
152 CorrelatedFinding& WithSharedResources(SharedResourcesT&& value) {
153 SetSharedResources(std::forward<SharedResourcesT>(value));
154 return *this;
155 }
156 template <typename SharedResourcesT = SharedResource>
157 CorrelatedFinding& AddSharedResources(SharedResourcesT&& value) {
158 m_sharedResourcesHasBeenSet = true;
159 m_sharedResources.emplace_back(std::forward<SharedResourcesT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::Vector<SharedBehavior>& GetSharedBehaviors() const { return m_sharedBehaviors; }
170 inline bool SharedBehaviorsHasBeenSet() const { return m_sharedBehaviorsHasBeenSet; }
171 template <typename SharedBehaviorsT = Aws::Vector<SharedBehavior>>
172 void SetSharedBehaviors(SharedBehaviorsT&& value) {
173 m_sharedBehaviorsHasBeenSet = true;
174 m_sharedBehaviors = std::forward<SharedBehaviorsT>(value);
175 }
176 template <typename SharedBehaviorsT = Aws::Vector<SharedBehavior>>
177 CorrelatedFinding& WithSharedBehaviors(SharedBehaviorsT&& value) {
178 SetSharedBehaviors(std::forward<SharedBehaviorsT>(value));
179 return *this;
180 }
181 template <typename SharedBehaviorsT = SharedBehavior>
182 CorrelatedFinding& AddSharedBehaviors(SharedBehaviorsT&& value) {
183 m_sharedBehaviorsHasBeenSet = true;
184 m_sharedBehaviors.emplace_back(std::forward<SharedBehaviorsT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_findingType;
190
191 long long m_count{0};
192
193 double m_severityMax{0.0};
194
195 Aws::Vector<CorrelationReason> m_correlationReasons;
196
197 Aws::Vector<Aws::String> m_findingIds;
198
199 Aws::Vector<SharedResource> m_sharedResources;
200
201 Aws::Vector<SharedBehavior> m_sharedBehaviors;
202 bool m_findingTypeHasBeenSet = false;
203 bool m_countHasBeenSet = false;
204 bool m_severityMaxHasBeenSet = false;
205 bool m_correlationReasonsHasBeenSet = false;
206 bool m_findingIdsHasBeenSet = false;
207 bool m_sharedResourcesHasBeenSet = false;
208 bool m_sharedBehaviorsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace GuardDuty
213} // namespace Aws
const Aws::String & GetFindingType() const
CorrelatedFinding & WithCorrelationReasons(CorrelationReasonsT &&value)
CorrelatedFinding & WithFindingIds(FindingIdsT &&value)
void SetFindingType(FindingTypeT &&value)
CorrelatedFinding & AddSharedBehaviors(SharedBehaviorsT &&value)
CorrelatedFinding & WithSeverityMax(double value)
CorrelatedFinding & WithFindingType(FindingTypeT &&value)
CorrelatedFinding & WithCount(long long value)
AWS_GUARDDUTY_API CorrelatedFinding()=default
CorrelatedFinding & AddSharedResources(SharedResourcesT &&value)
AWS_GUARDDUTY_API CorrelatedFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCorrelationReasons(CorrelationReasonsT &&value)
CorrelatedFinding & AddCorrelationReasons(CorrelationReason value)
AWS_GUARDDUTY_API CorrelatedFinding(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetFindingIds() const
CorrelatedFinding & WithSharedResources(SharedResourcesT &&value)
void SetSharedResources(SharedResourcesT &&value)
void SetSharedBehaviors(SharedBehaviorsT &&value)
const Aws::Vector< CorrelationReason > & GetCorrelationReasons() const
const Aws::Vector< SharedResource > & GetSharedResources() const
CorrelatedFinding & WithSharedBehaviors(SharedBehaviorsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< SharedBehavior > & GetSharedBehaviors() const
CorrelatedFinding & AddFindingIds(FindingIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue