AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
Attack.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/FindingReference.h>
11#include <aws/guardduty/model/ThreatReference.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
31class Attack {
32 public:
33 AWS_GUARDDUTY_API Attack() = default;
34 AWS_GUARDDUTY_API Attack(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Attack& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ThreatReference& GetTactic() const { return m_tactic; }
43 inline bool TacticHasBeenSet() const { return m_tacticHasBeenSet; }
44 template <typename TacticT = ThreatReference>
45 void SetTactic(TacticT&& value) {
46 m_tacticHasBeenSet = true;
47 m_tactic = std::forward<TacticT>(value);
48 }
49 template <typename TacticT = ThreatReference>
50 Attack& WithTactic(TacticT&& value) {
51 SetTactic(std::forward<TacticT>(value));
52 return *this;
53 }
55
57
60 inline const ThreatReference& GetTechnique() const { return m_technique; }
61 inline bool TechniqueHasBeenSet() const { return m_techniqueHasBeenSet; }
62 template <typename TechniqueT = ThreatReference>
63 void SetTechnique(TechniqueT&& value) {
64 m_techniqueHasBeenSet = true;
65 m_technique = std::forward<TechniqueT>(value);
66 }
67 template <typename TechniqueT = ThreatReference>
68 Attack& WithTechnique(TechniqueT&& value) {
69 SetTechnique(std::forward<TechniqueT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<FindingReference>& GetFindings() const { return m_findings; }
79 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
80 template <typename FindingsT = Aws::Vector<FindingReference>>
81 void SetFindings(FindingsT&& value) {
82 m_findingsHasBeenSet = true;
83 m_findings = std::forward<FindingsT>(value);
84 }
85 template <typename FindingsT = Aws::Vector<FindingReference>>
86 Attack& WithFindings(FindingsT&& value) {
87 SetFindings(std::forward<FindingsT>(value));
88 return *this;
89 }
90 template <typename FindingsT = FindingReference>
91 Attack& AddFindings(FindingsT&& value) {
92 m_findingsHasBeenSet = true;
93 m_findings.emplace_back(std::forward<FindingsT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetVersion() const { return m_version; }
104 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
105 template <typename VersionT = Aws::String>
106 void SetVersion(VersionT&& value) {
107 m_versionHasBeenSet = true;
108 m_version = std::forward<VersionT>(value);
109 }
110 template <typename VersionT = Aws::String>
111 Attack& WithVersion(VersionT&& value) {
112 SetVersion(std::forward<VersionT>(value));
113 return *this;
114 }
116 private:
117 ThreatReference m_tactic;
118
119 ThreatReference m_technique;
120
122
123 Aws::String m_version;
124 bool m_tacticHasBeenSet = false;
125 bool m_techniqueHasBeenSet = false;
126 bool m_findingsHasBeenSet = false;
127 bool m_versionHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace GuardDuty
132} // namespace Aws
bool VersionHasBeenSet() const
Definition Attack.h:104
void SetTactic(TacticT &&value)
Definition Attack.h:45
Attack & WithFindings(FindingsT &&value)
Definition Attack.h:86
AWS_GUARDDUTY_API Attack & operator=(Aws::Utils::Json::JsonView jsonValue)
const ThreatReference & GetTechnique() const
Definition Attack.h:60
bool FindingsHasBeenSet() const
Definition Attack.h:79
const ThreatReference & GetTactic() const
Definition Attack.h:42
void SetVersion(VersionT &&value)
Definition Attack.h:106
Attack & AddFindings(FindingsT &&value)
Definition Attack.h:91
const Aws::String & GetVersion() const
Definition Attack.h:103
void SetTechnique(TechniqueT &&value)
Definition Attack.h:63
const Aws::Vector< FindingReference > & GetFindings() const
Definition Attack.h:78
Attack & WithTechnique(TechniqueT &&value)
Definition Attack.h:68
Attack & WithTactic(TacticT &&value)
Definition Attack.h:50
AWS_GUARDDUTY_API Attack(Aws::Utils::Json::JsonView jsonValue)
void SetFindings(FindingsT &&value)
Definition Attack.h:81
AWS_GUARDDUTY_API Attack()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Attack & WithVersion(VersionT &&value)
Definition Attack.h:111
bool TacticHasBeenSet() const
Definition Attack.h:43
bool TechniqueHasBeenSet() const
Definition Attack.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue