AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
ScanResultThreat.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/DetectionSource.h>
11#include <aws/guardduty/model/ItemDetails.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 ScanResultThreat() = default;
34 AWS_GUARDDUTY_API ScanResultThreat(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ScanResultThreat& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline DetectionSource GetSource() const { return m_source; }
61 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
62 inline void SetSource(DetectionSource value) {
63 m_sourceHasBeenSet = true;
64 m_source = value;
65 }
67 SetSource(value);
68 return *this;
69 }
71
73
76 inline long long GetCount() const { return m_count; }
77 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
78 inline void SetCount(long long value) {
79 m_countHasBeenSet = true;
80 m_count = value;
81 }
82 inline ScanResultThreat& WithCount(long long value) {
83 SetCount(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetHash() const { return m_hash; }
93 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
94 template <typename HashT = Aws::String>
95 void SetHash(HashT&& value) {
96 m_hashHasBeenSet = true;
97 m_hash = std::forward<HashT>(value);
98 }
99 template <typename HashT = Aws::String>
100 ScanResultThreat& WithHash(HashT&& value) {
101 SetHash(std::forward<HashT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Vector<ItemDetails>& GetItemDetails() const { return m_itemDetails; }
111 inline bool ItemDetailsHasBeenSet() const { return m_itemDetailsHasBeenSet; }
112 template <typename ItemDetailsT = Aws::Vector<ItemDetails>>
113 void SetItemDetails(ItemDetailsT&& value) {
114 m_itemDetailsHasBeenSet = true;
115 m_itemDetails = std::forward<ItemDetailsT>(value);
116 }
117 template <typename ItemDetailsT = Aws::Vector<ItemDetails>>
118 ScanResultThreat& WithItemDetails(ItemDetailsT&& value) {
119 SetItemDetails(std::forward<ItemDetailsT>(value));
120 return *this;
121 }
122 template <typename ItemDetailsT = ItemDetails>
123 ScanResultThreat& AddItemDetails(ItemDetailsT&& value) {
124 m_itemDetailsHasBeenSet = true;
125 m_itemDetails.emplace_back(std::forward<ItemDetailsT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_name;
131
133
134 long long m_count{0};
135
136 Aws::String m_hash;
137
138 Aws::Vector<ItemDetails> m_itemDetails;
139 bool m_nameHasBeenSet = false;
140 bool m_sourceHasBeenSet = false;
141 bool m_countHasBeenSet = false;
142 bool m_hashHasBeenSet = false;
143 bool m_itemDetailsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace GuardDuty
148} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSource(DetectionSource value)
ScanResultThreat & WithHash(HashT &&value)
const Aws::Vector< ItemDetails > & GetItemDetails() const
const Aws::String & GetName() const
AWS_GUARDDUTY_API ScanResultThreat(Aws::Utils::Json::JsonView jsonValue)
ScanResultThreat & WithSource(DetectionSource value)
AWS_GUARDDUTY_API ScanResultThreat()=default
void SetItemDetails(ItemDetailsT &&value)
ScanResultThreat & AddItemDetails(ItemDetailsT &&value)
AWS_GUARDDUTY_API ScanResultThreat & operator=(Aws::Utils::Json::JsonView jsonValue)
ScanResultThreat & WithCount(long long value)
ScanResultThreat & WithName(NameT &&value)
const Aws::String & GetHash() const
ScanResultThreat & WithItemDetails(ItemDetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue