AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ScanThreatName.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/guardduty/model/ScanFilePath.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API ScanThreatName() = default;
38 AWS_GUARDDUTY_API ScanThreatName(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ScanThreatName& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
63 template<typename SeverityT = Aws::String>
64 ScanThreatName& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
66
68
71 inline int GetItemCount() const { return m_itemCount; }
72 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
73 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
74 inline ScanThreatName& WithItemCount(int value) { SetItemCount(value); return *this;}
76
78
81 inline const Aws::Vector<ScanFilePath>& GetFilePaths() const { return m_filePaths; }
82 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
83 template<typename FilePathsT = Aws::Vector<ScanFilePath>>
84 void SetFilePaths(FilePathsT&& value) { m_filePathsHasBeenSet = true; m_filePaths = std::forward<FilePathsT>(value); }
85 template<typename FilePathsT = Aws::Vector<ScanFilePath>>
86 ScanThreatName& WithFilePaths(FilePathsT&& value) { SetFilePaths(std::forward<FilePathsT>(value)); return *this;}
87 template<typename FilePathsT = ScanFilePath>
88 ScanThreatName& AddFilePaths(FilePathsT&& value) { m_filePathsHasBeenSet = true; m_filePaths.emplace_back(std::forward<FilePathsT>(value)); return *this; }
90 private:
91
92 Aws::String m_name;
93 bool m_nameHasBeenSet = false;
94
95 Aws::String m_severity;
96 bool m_severityHasBeenSet = false;
97
98 int m_itemCount{0};
99 bool m_itemCountHasBeenSet = false;
100
101 Aws::Vector<ScanFilePath> m_filePaths;
102 bool m_filePathsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace GuardDuty
107} // 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