AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ScanThreatName.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/ScanFilePath.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API ScanThreatName() = default;
33 AWS_GUARDDUTY_API ScanThreatName(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ScanThreatName& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSeverity() const { return m_severity; }
60 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
61 template <typename SeverityT = Aws::String>
62 void SetSeverity(SeverityT&& value) {
63 m_severityHasBeenSet = true;
64 m_severity = std::forward<SeverityT>(value);
65 }
66 template <typename SeverityT = Aws::String>
67 ScanThreatName& WithSeverity(SeverityT&& value) {
68 SetSeverity(std::forward<SeverityT>(value));
69 return *this;
70 }
72
74
77 inline int GetItemCount() const { return m_itemCount; }
78 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
79 inline void SetItemCount(int value) {
80 m_itemCountHasBeenSet = true;
81 m_itemCount = value;
82 }
83 inline ScanThreatName& WithItemCount(int value) {
84 SetItemCount(value);
85 return *this;
86 }
88
90
93 inline const Aws::Vector<ScanFilePath>& GetFilePaths() const { return m_filePaths; }
94 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
95 template <typename FilePathsT = Aws::Vector<ScanFilePath>>
96 void SetFilePaths(FilePathsT&& value) {
97 m_filePathsHasBeenSet = true;
98 m_filePaths = std::forward<FilePathsT>(value);
99 }
100 template <typename FilePathsT = Aws::Vector<ScanFilePath>>
101 ScanThreatName& WithFilePaths(FilePathsT&& value) {
102 SetFilePaths(std::forward<FilePathsT>(value));
103 return *this;
104 }
105 template <typename FilePathsT = ScanFilePath>
106 ScanThreatName& AddFilePaths(FilePathsT&& value) {
107 m_filePathsHasBeenSet = true;
108 m_filePaths.emplace_back(std::forward<FilePathsT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
115 Aws::String m_severity;
116
117 int m_itemCount{0};
118
119 Aws::Vector<ScanFilePath> m_filePaths;
120 bool m_nameHasBeenSet = false;
121 bool m_severityHasBeenSet = false;
122 bool m_itemCountHasBeenSet = false;
123 bool m_filePathsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace GuardDuty
128} // namespace Aws
const Aws::String & GetSeverity() const
ScanThreatName & WithName(NameT &&value)
AWS_GUARDDUTY_API ScanThreatName()=default
ScanThreatName & WithSeverity(SeverityT &&value)
const Aws::String & GetName() const
void SetFilePaths(FilePathsT &&value)
ScanThreatName & WithFilePaths(FilePathsT &&value)
ScanThreatName & AddFilePaths(FilePathsT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API ScanThreatName & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API ScanThreatName(Aws::Utils::Json::JsonView jsonValue)
ScanThreatName & WithItemCount(int value)
const Aws::Vector< ScanFilePath > & GetFilePaths() const
void SetSeverity(SeverityT &&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