AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VulnerabilityCodeVulnerabilities.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/CodeVulnerabilitiesFilePath.h>
10#include <aws/core/utils/memory/stl/AWSString.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 SecurityHub
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities() = default;
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetCwes() const { return m_cwes; }
50 inline bool CwesHasBeenSet() const { return m_cwesHasBeenSet; }
51 template<typename CwesT = Aws::Vector<Aws::String>>
52 void SetCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes = std::forward<CwesT>(value); }
53 template<typename CwesT = Aws::Vector<Aws::String>>
54 VulnerabilityCodeVulnerabilities& WithCwes(CwesT&& value) { SetCwes(std::forward<CwesT>(value)); return *this;}
55 template<typename CwesT = Aws::String>
56 VulnerabilityCodeVulnerabilities& AddCwes(CwesT&& value) { m_cwesHasBeenSet = true; m_cwes.emplace_back(std::forward<CwesT>(value)); return *this; }
58
60
64 inline const CodeVulnerabilitiesFilePath& GetFilePath() const { return m_filePath; }
65 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
66 template<typename FilePathT = CodeVulnerabilitiesFilePath>
67 void SetFilePath(FilePathT&& value) { m_filePathHasBeenSet = true; m_filePath = std::forward<FilePathT>(value); }
68 template<typename FilePathT = CodeVulnerabilitiesFilePath>
69 VulnerabilityCodeVulnerabilities& WithFilePath(FilePathT&& value) { SetFilePath(std::forward<FilePathT>(value)); return *this;}
71
73
77 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
78 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
79 template<typename SourceArnT = Aws::String>
80 void SetSourceArn(SourceArnT&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::forward<SourceArnT>(value); }
81 template<typename SourceArnT = Aws::String>
82 VulnerabilityCodeVulnerabilities& WithSourceArn(SourceArnT&& value) { SetSourceArn(std::forward<SourceArnT>(value)); return *this;}
84 private:
85
87 bool m_cwesHasBeenSet = false;
88
90 bool m_filePathHasBeenSet = false;
91
92 Aws::String m_sourceArn;
93 bool m_sourceArnHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SecurityHub
98} // 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