AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
TacticCoverage.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/AttackPhaseName.h>
11#include <aws/guardduty/model/TechniqueCoverage.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
32 public:
33 AWS_GUARDDUTY_API TacticCoverage() = default;
34 AWS_GUARDDUTY_API TacticCoverage(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline AttackPhaseName GetPhase() const { return m_phase; }
49 inline bool PhaseHasBeenSet() const { return m_phaseHasBeenSet; }
50 inline void SetPhase(AttackPhaseName value) {
51 m_phaseHasBeenSet = true;
52 m_phase = value;
53 }
55 SetPhase(value);
56 return *this;
57 }
59
61
64 inline int GetFindingCount() const { return m_findingCount; }
65 inline bool FindingCountHasBeenSet() const { return m_findingCountHasBeenSet; }
66 inline void SetFindingCount(int value) {
67 m_findingCountHasBeenSet = true;
68 m_findingCount = value;
69 }
70 inline TacticCoverage& WithFindingCount(int value) {
71 SetFindingCount(value);
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Aws::String>& GetFindingTypes() const { return m_findingTypes; }
81 inline bool FindingTypesHasBeenSet() const { return m_findingTypesHasBeenSet; }
82 template <typename FindingTypesT = Aws::Vector<Aws::String>>
83 void SetFindingTypes(FindingTypesT&& value) {
84 m_findingTypesHasBeenSet = true;
85 m_findingTypes = std::forward<FindingTypesT>(value);
86 }
87 template <typename FindingTypesT = Aws::Vector<Aws::String>>
88 TacticCoverage& WithFindingTypes(FindingTypesT&& value) {
89 SetFindingTypes(std::forward<FindingTypesT>(value));
90 return *this;
91 }
92 template <typename FindingTypesT = Aws::String>
93 TacticCoverage& AddFindingTypes(FindingTypesT&& value) {
94 m_findingTypesHasBeenSet = true;
95 m_findingTypes.emplace_back(std::forward<FindingTypesT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<TechniqueCoverage>& GetTechniques() const { return m_techniques; }
106 inline bool TechniquesHasBeenSet() const { return m_techniquesHasBeenSet; }
107 template <typename TechniquesT = Aws::Vector<TechniqueCoverage>>
108 void SetTechniques(TechniquesT&& value) {
109 m_techniquesHasBeenSet = true;
110 m_techniques = std::forward<TechniquesT>(value);
111 }
112 template <typename TechniquesT = Aws::Vector<TechniqueCoverage>>
113 TacticCoverage& WithTechniques(TechniquesT&& value) {
114 SetTechniques(std::forward<TechniquesT>(value));
115 return *this;
116 }
117 template <typename TechniquesT = TechniqueCoverage>
118 TacticCoverage& AddTechniques(TechniquesT&& value) {
119 m_techniquesHasBeenSet = true;
120 m_techniques.emplace_back(std::forward<TechniquesT>(value));
121 return *this;
122 }
124 private:
126
127 int m_findingCount{0};
128
129 Aws::Vector<Aws::String> m_findingTypes;
130
132 bool m_phaseHasBeenSet = false;
133 bool m_findingCountHasBeenSet = false;
134 bool m_findingTypesHasBeenSet = false;
135 bool m_techniquesHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace GuardDuty
140} // namespace Aws
void SetFindingTypes(FindingTypesT &&value)
TacticCoverage & AddFindingTypes(FindingTypesT &&value)
AWS_GUARDDUTY_API TacticCoverage()=default
const Aws::Vector< TechniqueCoverage > & GetTechniques() const
void SetTechniques(TechniquesT &&value)
void SetPhase(AttackPhaseName value)
AWS_GUARDDUTY_API TacticCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API TacticCoverage(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetFindingTypes() const
TacticCoverage & AddTechniques(TechniquesT &&value)
TacticCoverage & WithTechniques(TechniquesT &&value)
TacticCoverage & WithPhase(AttackPhaseName value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
TacticCoverage & WithFindingCount(int value)
TacticCoverage & WithFindingTypes(FindingTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue