AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
Threat.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/ItemDetails.h>
11#include <aws/guardduty/model/ItemPath.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 Threat {
32 public:
33 AWS_GUARDDUTY_API Threat() = default;
34 AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Threat& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 Threat& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSource() const { return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 template <typename SourceT = Aws::String>
64 void SetSource(SourceT&& value) {
65 m_sourceHasBeenSet = true;
66 m_source = std::forward<SourceT>(value);
67 }
68 template <typename SourceT = Aws::String>
69 Threat& WithSource(SourceT&& value) {
70 SetSource(std::forward<SourceT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<ItemPath>& GetItemPaths() const { return m_itemPaths; }
81 inline bool ItemPathsHasBeenSet() const { return m_itemPathsHasBeenSet; }
82 template <typename ItemPathsT = Aws::Vector<ItemPath>>
83 void SetItemPaths(ItemPathsT&& value) {
84 m_itemPathsHasBeenSet = true;
85 m_itemPaths = std::forward<ItemPathsT>(value);
86 }
87 template <typename ItemPathsT = Aws::Vector<ItemPath>>
88 Threat& WithItemPaths(ItemPathsT&& value) {
89 SetItemPaths(std::forward<ItemPathsT>(value));
90 return *this;
91 }
92 template <typename ItemPathsT = ItemPath>
93 Threat& AddItemPaths(ItemPathsT&& value) {
94 m_itemPathsHasBeenSet = true;
95 m_itemPaths.emplace_back(std::forward<ItemPathsT>(value));
96 return *this;
97 }
99
101
105 inline long long GetCount() const { return m_count; }
106 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
107 inline void SetCount(long long value) {
108 m_countHasBeenSet = true;
109 m_count = value;
110 }
111 inline Threat& WithCount(long long value) {
112 SetCount(value);
113 return *this;
114 }
116
118
121 inline const Aws::String& GetHash() const { return m_hash; }
122 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
123 template <typename HashT = Aws::String>
124 void SetHash(HashT&& value) {
125 m_hashHasBeenSet = true;
126 m_hash = std::forward<HashT>(value);
127 }
128 template <typename HashT = Aws::String>
129 Threat& WithHash(HashT&& value) {
130 SetHash(std::forward<HashT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Vector<ItemDetails>& GetItemDetails() const { return m_itemDetails; }
140 inline bool ItemDetailsHasBeenSet() const { return m_itemDetailsHasBeenSet; }
141 template <typename ItemDetailsT = Aws::Vector<ItemDetails>>
142 void SetItemDetails(ItemDetailsT&& value) {
143 m_itemDetailsHasBeenSet = true;
144 m_itemDetails = std::forward<ItemDetailsT>(value);
145 }
146 template <typename ItemDetailsT = Aws::Vector<ItemDetails>>
147 Threat& WithItemDetails(ItemDetailsT&& value) {
148 SetItemDetails(std::forward<ItemDetailsT>(value));
149 return *this;
150 }
151 template <typename ItemDetailsT = ItemDetails>
152 Threat& AddItemDetails(ItemDetailsT&& value) {
153 m_itemDetailsHasBeenSet = true;
154 m_itemDetails.emplace_back(std::forward<ItemDetailsT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_name;
160
161 Aws::String m_source;
162
163 Aws::Vector<ItemPath> m_itemPaths;
164
165 long long m_count{0};
166
167 Aws::String m_hash;
168
169 Aws::Vector<ItemDetails> m_itemDetails;
170 bool m_nameHasBeenSet = false;
171 bool m_sourceHasBeenSet = false;
172 bool m_itemPathsHasBeenSet = false;
173 bool m_countHasBeenSet = false;
174 bool m_hashHasBeenSet = false;
175 bool m_itemDetailsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace GuardDuty
180} // namespace Aws
const Aws::String & GetHash() const
Definition Threat.h:121
Threat & WithSource(SourceT &&value)
Definition Threat.h:69
bool NameHasBeenSet() const
Definition Threat.h:44
const Aws::String & GetSource() const
Definition Threat.h:61
long long GetCount() const
Definition Threat.h:105
bool HashHasBeenSet() const
Definition Threat.h:122
Threat & WithCount(long long value)
Definition Threat.h:111
bool ItemPathsHasBeenSet() const
Definition Threat.h:81
AWS_GUARDDUTY_API Threat()=default
Threat & WithHash(HashT &&value)
Definition Threat.h:129
bool CountHasBeenSet() const
Definition Threat.h:106
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Threat & WithName(NameT &&value)
Definition Threat.h:51
Threat & WithItemDetails(ItemDetailsT &&value)
Definition Threat.h:147
void SetHash(HashT &&value)
Definition Threat.h:124
Threat & WithItemPaths(ItemPathsT &&value)
Definition Threat.h:88
const Aws::Vector< ItemPath > & GetItemPaths() const
Definition Threat.h:80
bool ItemDetailsHasBeenSet() const
Definition Threat.h:140
Threat & AddItemPaths(ItemPathsT &&value)
Definition Threat.h:93
void SetItemPaths(ItemPathsT &&value)
Definition Threat.h:83
void SetName(NameT &&value)
Definition Threat.h:46
void SetCount(long long value)
Definition Threat.h:107
void SetItemDetails(ItemDetailsT &&value)
Definition Threat.h:142
const Aws::String & GetName() const
Definition Threat.h:43
AWS_GUARDDUTY_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
Threat & AddItemDetails(ItemDetailsT &&value)
Definition Threat.h:152
void SetSource(SourceT &&value)
Definition Threat.h:64
AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
Definition Threat.h:62
const Aws::Vector< ItemDetails > & GetItemDetails() const
Definition Threat.h:139
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue