AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline ScanThreatName& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline ScanThreatName& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline ScanThreatName& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetSeverity() const{ return m_severity; }
62 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
63 inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
64 inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
65 inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
66 inline ScanThreatName& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
67 inline ScanThreatName& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
68 inline ScanThreatName& WithSeverity(const char* value) { SetSeverity(value); return *this;}
70
72
75 inline int GetItemCount() const{ return m_itemCount; }
76 inline bool ItemCountHasBeenSet() const { return m_itemCountHasBeenSet; }
77 inline void SetItemCount(int value) { m_itemCountHasBeenSet = true; m_itemCount = value; }
78 inline ScanThreatName& WithItemCount(int value) { SetItemCount(value); return *this;}
80
82
85 inline const Aws::Vector<ScanFilePath>& GetFilePaths() const{ return m_filePaths; }
86 inline bool FilePathsHasBeenSet() const { return m_filePathsHasBeenSet; }
87 inline void SetFilePaths(const Aws::Vector<ScanFilePath>& value) { m_filePathsHasBeenSet = true; m_filePaths = value; }
88 inline void SetFilePaths(Aws::Vector<ScanFilePath>&& value) { m_filePathsHasBeenSet = true; m_filePaths = std::move(value); }
89 inline ScanThreatName& WithFilePaths(const Aws::Vector<ScanFilePath>& value) { SetFilePaths(value); return *this;}
90 inline ScanThreatName& WithFilePaths(Aws::Vector<ScanFilePath>&& value) { SetFilePaths(std::move(value)); return *this;}
91 inline ScanThreatName& AddFilePaths(const ScanFilePath& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(value); return *this; }
92 inline ScanThreatName& AddFilePaths(ScanFilePath&& value) { m_filePathsHasBeenSet = true; m_filePaths.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_severity;
100 bool m_severityHasBeenSet = false;
101
102 int m_itemCount;
103 bool m_itemCountHasBeenSet = false;
104
105 Aws::Vector<ScanFilePath> m_filePaths;
106 bool m_filePathsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GuardDuty
111} // namespace Aws
ScanThreatName & WithFilePaths(Aws::Vector< ScanFilePath > &&value)
const Aws::String & GetSeverity() const
ScanThreatName & WithSeverity(const char *value)
ScanThreatName & WithName(const Aws::String &value)
void SetSeverity(const char *value)
ScanThreatName & AddFilePaths(const ScanFilePath &value)
ScanThreatName & WithName(const char *value)
void SetName(Aws::String &&value)
const Aws::String & GetName() const
void SetName(const Aws::String &value)
void SetFilePaths(const Aws::Vector< ScanFilePath > &value)
ScanThreatName & WithSeverity(const Aws::String &value)
void SetSeverity(Aws::String &&value)
ScanThreatName & WithFilePaths(const Aws::Vector< ScanFilePath > &value)
void SetFilePaths(Aws::Vector< ScanFilePath > &&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)
ScanThreatName & WithSeverity(Aws::String &&value)
const Aws::Vector< ScanFilePath > & GetFilePaths() const
ScanThreatName & AddFilePaths(ScanFilePath &&value)
void SetSeverity(const Aws::String &value)
ScanThreatName & WithName(Aws::String &&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