AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThreatDetectedByName.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/model/ScanThreatName.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API ThreatDetectedByName();
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetItemCount() const{ return m_itemCount; }
47 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
48 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
49 inline ThreatDetectedByName& WithItemCount(int value) { SetItemCount(value); return *this;}
51
53
57 inline int GetUniqueThreatNameCount() const{ return m_uniqueThreatNameCount; }
58 inline bool UniqueThreatNameCountHasBeenSet() const { return m_uniqueThreatNameCountHasBeenSet; }
59 inline void SetUniqueThreatNameCount(int value) { m_uniqueThreatNameCountHasBeenSet = true; m_uniqueThreatNameCount = value; }
62
64
68 inline bool GetShortened() const{ return m_shortened; }
69 inline bool ShortenedHasBeenSet() const { return m_shortenedHasBeenSet; }
70 inline void SetShortened(bool value) { m_shortenedHasBeenSet = true; m_shortened = value; }
71 inline ThreatDetectedByName& WithShortened(bool value) { SetShortened(value); return *this;}
73
75
78 inline const Aws::Vector<ScanThreatName>& GetThreatNames() const{ return m_threatNames; }
79 inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; }
80 inline void SetThreatNames(const Aws::Vector<ScanThreatName>& value) { m_threatNamesHasBeenSet = true; m_threatNames = value; }
81 inline void SetThreatNames(Aws::Vector<ScanThreatName>&& value) { m_threatNamesHasBeenSet = true; m_threatNames = std::move(value); }
83 inline ThreatDetectedByName& WithThreatNames(Aws::Vector<ScanThreatName>&& value) { SetThreatNames(std::move(value)); return *this;}
84 inline ThreatDetectedByName& AddThreatNames(const ScanThreatName& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; }
85 inline ThreatDetectedByName& AddThreatNames(ScanThreatName&& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(std::move(value)); return *this; }
87 private:
88
89 int m_itemCount;
90 bool m_itemCountHasBeenSet = false;
91
92 int m_uniqueThreatNameCount;
93 bool m_uniqueThreatNameCountHasBeenSet = false;
94
95 bool m_shortened;
96 bool m_shortenedHasBeenSet = false;
97
98 Aws::Vector<ScanThreatName> m_threatNames;
99 bool m_threatNamesHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace GuardDuty
104} // namespace Aws
ThreatDetectedByName & WithItemCount(int value)
ThreatDetectedByName & WithShortened(bool value)
ThreatDetectedByName & WithThreatNames(Aws::Vector< ScanThreatName > &&value)
ThreatDetectedByName & AddThreatNames(ScanThreatName &&value)
ThreatDetectedByName & WithThreatNames(const Aws::Vector< ScanThreatName > &value)
void SetThreatNames(Aws::Vector< ScanThreatName > &&value)
void SetThreatNames(const Aws::Vector< ScanThreatName > &value)
const Aws::Vector< ScanThreatName > & GetThreatNames() const
AWS_GUARDDUTY_API ThreatDetectedByName & operator=(Aws::Utils::Json::JsonView jsonValue)
ThreatDetectedByName & WithUniqueThreatNameCount(int value)
ThreatDetectedByName & AddThreatNames(const ScanThreatName &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API ThreatDetectedByName(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue