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>
33 AWS_GUARDDUTY_API
Threat() =
default;
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
63 template <
typename SourceT = Aws::String>
65 m_sourceHasBeenSet =
true;
66 m_source = std::forward<SourceT>(value);
68 template <
typename SourceT = Aws::String>
82 template <
typename ItemPathsT = Aws::Vector<ItemPath>>
84 m_itemPathsHasBeenSet =
true;
85 m_itemPaths = std::forward<ItemPathsT>(value);
87 template <
typename ItemPathsT = Aws::Vector<ItemPath>>
92 template <
typename ItemPathsT = ItemPath>
94 m_itemPathsHasBeenSet =
true;
95 m_itemPaths.emplace_back(std::forward<ItemPathsT>(value));
105 inline long long GetCount()
const {
return m_count; }
108 m_countHasBeenSet =
true;
123 template <
typename HashT = Aws::String>
125 m_hashHasBeenSet =
true;
126 m_hash = std::forward<HashT>(value);
128 template <
typename HashT = Aws::String>
130 SetHash(std::forward<HashT>(value));
141 template <
typename ItemDetailsT = Aws::Vector<ItemDetails>>
143 m_itemDetailsHasBeenSet =
true;
144 m_itemDetails = std::forward<ItemDetailsT>(value);
146 template <
typename ItemDetailsT = Aws::Vector<ItemDetails>>
151 template <
typename ItemDetailsT = ItemDetails>
153 m_itemDetailsHasBeenSet =
true;
154 m_itemDetails.emplace_back(std::forward<ItemDetailsT>(value));
165 long long m_count{0};
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;
const Aws::String & GetHash() const
Threat & WithSource(SourceT &&value)
bool NameHasBeenSet() const
const Aws::String & GetSource() const
long long GetCount() const
bool HashHasBeenSet() const
Threat & WithCount(long long value)
bool ItemPathsHasBeenSet() const
AWS_GUARDDUTY_API Threat()=default
Threat & WithHash(HashT &&value)
bool CountHasBeenSet() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Threat & WithName(NameT &&value)
Threat & WithItemDetails(ItemDetailsT &&value)
void SetHash(HashT &&value)
Threat & WithItemPaths(ItemPathsT &&value)
const Aws::Vector< ItemPath > & GetItemPaths() const
bool ItemDetailsHasBeenSet() const
Threat & AddItemPaths(ItemPathsT &&value)
void SetItemPaths(ItemPathsT &&value)
void SetName(NameT &&value)
void SetCount(long long value)
void SetItemDetails(ItemDetailsT &&value)
const Aws::String & GetName() const
AWS_GUARDDUTY_API Threat & operator=(Aws::Utils::Json::JsonView jsonValue)
Threat & AddItemDetails(ItemDetailsT &&value)
void SetSource(SourceT &&value)
AWS_GUARDDUTY_API Threat(Aws::Utils::Json::JsonView jsonValue)
bool SourceHasBeenSet() const
const Aws::Vector< ItemDetails > & GetItemDetails() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue