AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
VulnerabilityCodeVulnerabilities.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/CodeVulnerabilitiesFilePath.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
32 public:
33 AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
44 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
45 template <typename CwesT = Aws::Vector<Aws::String>>
46 void SetCwes(CwesT&& value) {
47 m_cwesHasBeenSet = true;
48 m_cwes = std::forward<CwesT>(value);
49 }
50 template <typename CwesT = Aws::Vector<Aws::String>>
52 SetCwes(std::forward<CwesT>(value));
53 return *this;
54 }
55 template <typename CwesT = Aws::String>
57 m_cwesHasBeenSet = true;
58 m_cwes.emplace_back(std::forward<CwesT>(value));
59 return *this;
60 }
62
64
68 inline const CodeVulnerabilitiesFilePath& GetFilePath() const { return m_filePath; }
69 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
70 template <typename FilePathT = CodeVulnerabilitiesFilePath>
71 void SetFilePath(FilePathT&& value) {
72 m_filePathHasBeenSet = true;
73 m_filePath = std::forward<FilePathT>(value);
74 }
75 template <typename FilePathT = CodeVulnerabilitiesFilePath>
77 SetFilePath(std::forward<FilePathT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
88 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
89 template <typename SourceArnT = Aws::String>
90 void SetSourceArn(SourceArnT&& value) {
91 m_sourceArnHasBeenSet = true;
92 m_sourceArn = std::forward<SourceArnT>(value);
93 }
94 template <typename SourceArnT = Aws::String>
96 SetSourceArn(std::forward<SourceArnT>(value));
97 return *this;
98 }
100 private:
102
104
105 Aws::String m_sourceArn;
106 bool m_cwesHasBeenSet = false;
107 bool m_filePathHasBeenSet = false;
108 bool m_sourceArnHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SecurityHub
113} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities()=default
AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities(Aws::Utils::Json::JsonView jsonValue)
VulnerabilityCodeVulnerabilities & WithSourceArn(SourceArnT &&value)
VulnerabilityCodeVulnerabilities & WithFilePath(FilePathT &&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