AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Vulnerability.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/FilePath.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 CodeGuruSecurity
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEGURUSECURITY_API Vulnerability();
38 AWS_CODEGURUSECURITY_API Vulnerability(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Vulnerability& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const FilePath& GetFilePath() const{ return m_filePath; }
49 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
50 inline void SetFilePath(const FilePath& value) { m_filePathHasBeenSet = true; m_filePath = value; }
51 inline void SetFilePath(FilePath&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
52 inline Vulnerability& WithFilePath(const FilePath& value) { SetFilePath(value); return *this;}
53 inline Vulnerability& WithFilePath(FilePath&& value) { SetFilePath(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline Vulnerability& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline Vulnerability& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline Vulnerability& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
75 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
76 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
77 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
78 inline Vulnerability& WithReferenceUrls(const Aws::Vector<Aws::String>& value) { SetReferenceUrls(value); return *this;}
79 inline Vulnerability& WithReferenceUrls(Aws::Vector<Aws::String>&& value) { SetReferenceUrls(std::move(value)); return *this;}
80 inline Vulnerability& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
81 inline Vulnerability& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
82 inline Vulnerability& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
84
86
90 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; }
91 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
92 inline void SetRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; }
93 inline void SetRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); }
96 inline Vulnerability& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
97 inline Vulnerability& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; }
98 inline Vulnerability& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
100 private:
101
102 FilePath m_filePath;
103 bool m_filePathHasBeenSet = false;
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_referenceUrls;
109 bool m_referenceUrlsHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_relatedVulnerabilities;
112 bool m_relatedVulnerabilitiesHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CodeGuruSecurity
117} // namespace Aws
void SetRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
Vulnerability & AddRelatedVulnerabilities(Aws::String &&value)
Vulnerability & WithRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Vulnerability & WithRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
Vulnerability & WithFilePath(const FilePath &value)
Vulnerability & WithId(const Aws::String &value)
Vulnerability & AddRelatedVulnerabilities(const Aws::String &value)
Vulnerability & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
Vulnerability & AddReferenceUrls(const Aws::String &value)
AWS_CODEGURUSECURITY_API Vulnerability(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
AWS_CODEGURUSECURITY_API Vulnerability()
Vulnerability & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
Vulnerability & AddReferenceUrls(Aws::String &&value)
AWS_CODEGURUSECURITY_API Vulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
void SetFilePath(const FilePath &value)
Vulnerability & AddRelatedVulnerabilities(const char *value)
void SetRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Vulnerability & AddReferenceUrls(const char *value)
Vulnerability & WithFilePath(FilePath &&value)
Vulnerability & WithId(const char *value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
Vulnerability & WithId(Aws::String &&value)
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue