AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
TechniqueCoverage.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/ThreatReference.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API TechniqueCoverage() = default;
33 AWS_GUARDDUTY_API TechniqueCoverage(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const ThreatReference& GetTechnique() const { return m_technique; }
42 inline bool TechniqueHasBeenSet() const { return m_techniqueHasBeenSet; }
43 template <typename TechniqueT = ThreatReference>
44 void SetTechnique(TechniqueT&& value) {
45 m_techniqueHasBeenSet = true;
46 m_technique = std::forward<TechniqueT>(value);
47 }
48 template <typename TechniqueT = ThreatReference>
49 TechniqueCoverage& WithTechnique(TechniqueT&& value) {
50 SetTechnique(std::forward<TechniqueT>(value));
51 return *this;
52 }
54
56
59 inline int GetFindingCount() const { return m_findingCount; }
60 inline bool FindingCountHasBeenSet() const { return m_findingCountHasBeenSet; }
61 inline void SetFindingCount(int value) {
62 m_findingCountHasBeenSet = true;
63 m_findingCount = value;
64 }
66 SetFindingCount(value);
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetFindingTypes() const { return m_findingTypes; }
76 inline bool FindingTypesHasBeenSet() const { return m_findingTypesHasBeenSet; }
77 template <typename FindingTypesT = Aws::Vector<Aws::String>>
78 void SetFindingTypes(FindingTypesT&& value) {
79 m_findingTypesHasBeenSet = true;
80 m_findingTypes = std::forward<FindingTypesT>(value);
81 }
82 template <typename FindingTypesT = Aws::Vector<Aws::String>>
83 TechniqueCoverage& WithFindingTypes(FindingTypesT&& value) {
84 SetFindingTypes(std::forward<FindingTypesT>(value));
85 return *this;
86 }
87 template <typename FindingTypesT = Aws::String>
88 TechniqueCoverage& AddFindingTypes(FindingTypesT&& value) {
89 m_findingTypesHasBeenSet = true;
90 m_findingTypes.emplace_back(std::forward<FindingTypesT>(value));
91 return *this;
92 }
94 private:
95 ThreatReference m_technique;
96
97 int m_findingCount{0};
98
99 Aws::Vector<Aws::String> m_findingTypes;
100 bool m_techniqueHasBeenSet = false;
101 bool m_findingCountHasBeenSet = false;
102 bool m_findingTypesHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace GuardDuty
107} // namespace Aws
AWS_GUARDDUTY_API TechniqueCoverage(Aws::Utils::Json::JsonView jsonValue)
TechniqueCoverage & AddFindingTypes(FindingTypesT &&value)
AWS_GUARDDUTY_API TechniqueCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
TechniqueCoverage & WithTechnique(TechniqueT &&value)
void SetFindingTypes(FindingTypesT &&value)
const ThreatReference & GetTechnique() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API TechniqueCoverage()=default
TechniqueCoverage & WithFindingTypes(FindingTypesT &&value)
const Aws::Vector< Aws::String > & GetFindingTypes() const
TechniqueCoverage & WithFindingCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue