AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
ThreatDetectedByName.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/ScanThreatName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API ThreatDetectedByName() = default;
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetItemCount() const { return m_itemCount; }
41 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
42 inline void SetItemCount(int value) {
43 m_itemCountHasBeenSet = true;
44 m_itemCount = value;
45 }
47 SetItemCount(value);
48 return *this;
49 }
51
53
57 inline int GetUniqueThreatNameCount() const { return m_uniqueThreatNameCount; }
58 inline bool UniqueThreatNameCountHasBeenSet() const { return m_uniqueThreatNameCountHasBeenSet; }
59 inline void SetUniqueThreatNameCount(int value) {
60 m_uniqueThreatNameCountHasBeenSet = true;
61 m_uniqueThreatNameCount = value;
62 }
65 return *this;
66 }
68
70
74 inline bool GetShortened() const { return m_shortened; }
75 inline bool ShortenedHasBeenSet() const { return m_shortenedHasBeenSet; }
76 inline void SetShortened(bool value) {
77 m_shortenedHasBeenSet = true;
78 m_shortened = value;
79 }
80 inline ThreatDetectedByName& WithShortened(bool value) {
81 SetShortened(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<ScanThreatName>& GetThreatNames() const { return m_threatNames; }
91 inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; }
92 template <typename ThreatNamesT = Aws::Vector<ScanThreatName>>
93 void SetThreatNames(ThreatNamesT&& value) {
94 m_threatNamesHasBeenSet = true;
95 m_threatNames = std::forward<ThreatNamesT>(value);
96 }
97 template <typename ThreatNamesT = Aws::Vector<ScanThreatName>>
98 ThreatDetectedByName& WithThreatNames(ThreatNamesT&& value) {
99 SetThreatNames(std::forward<ThreatNamesT>(value));
100 return *this;
101 }
102 template <typename ThreatNamesT = ScanThreatName>
103 ThreatDetectedByName& AddThreatNames(ThreatNamesT&& value) {
104 m_threatNamesHasBeenSet = true;
105 m_threatNames.emplace_back(std::forward<ThreatNamesT>(value));
106 return *this;
107 }
109 private:
110 int m_itemCount{0};
111
112 int m_uniqueThreatNameCount{0};
113
114 bool m_shortened{false};
115
116 Aws::Vector<ScanThreatName> m_threatNames;
117 bool m_itemCountHasBeenSet = false;
118 bool m_uniqueThreatNameCountHasBeenSet = false;
119 bool m_shortenedHasBeenSet = false;
120 bool m_threatNamesHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace GuardDuty
125} // namespace Aws
ThreatDetectedByName & WithItemCount(int value)
AWS_GUARDDUTY_API ThreatDetectedByName()=default
ThreatDetectedByName & WithShortened(bool value)
const Aws::Vector< ScanThreatName > & GetThreatNames() const
AWS_GUARDDUTY_API ThreatDetectedByName & operator=(Aws::Utils::Json::JsonView jsonValue)
ThreatDetectedByName & WithUniqueThreatNameCount(int value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API ThreatDetectedByName(Aws::Utils::Json::JsonView jsonValue)
ThreatDetectedByName & AddThreatNames(ThreatNamesT &&value)
ThreatDetectedByName & WithThreatNames(ThreatNamesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue