AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCwes(const Aws::Vector<Aws::String>& value) { m_cwesHasBeenSet = true; m_cwes = value; }
52 inline void SetCwes(Aws::Vector<Aws::String>&& value) { m_cwesHasBeenSet = true; m_cwes = std::move(value); }
53 inline VulnerabilityCodeVulnerabilities& WithCwes(const Aws::Vector<Aws::String>& value) { SetCwes(value); return *this;}
54 inline VulnerabilityCodeVulnerabilities& WithCwes(Aws::Vector<Aws::String>&& value) { SetCwes(std::move(value)); return *this;}
55 inline VulnerabilityCodeVulnerabilities& AddCwes(const Aws::String& value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
56 inline VulnerabilityCodeVulnerabilities& AddCwes(Aws::String&& value) { m_cwesHasBeenSet = true; m_cwes.push_back(std::move(value)); return *this; }
57 inline VulnerabilityCodeVulnerabilities& AddCwes(const char* value) { m_cwesHasBeenSet = true; m_cwes.push_back(value); return *this; }
59
61
65 inline const CodeVulnerabilitiesFilePath& GetFilePath() const{ return m_filePath; }
66 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
67 inline void SetFilePath(const CodeVulnerabilitiesFilePath& value) { m_filePathHasBeenSet = true; m_filePath = value; }
68 inline void SetFilePath(CodeVulnerabilitiesFilePath&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
70 inline VulnerabilityCodeVulnerabilities& WithFilePath(CodeVulnerabilitiesFilePath&& value) { SetFilePath(std::move(value)); return *this;}
72
74
78 inline const Aws::String& GetSourceArn() const{ return m_sourceArn; }
79 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
80 inline void SetSourceArn(const Aws::String& value) { m_sourceArnHasBeenSet = true; m_sourceArn = value; }
81 inline void SetSourceArn(Aws::String&& value) { m_sourceArnHasBeenSet = true; m_sourceArn = std::move(value); }
82 inline void SetSourceArn(const char* value) { m_sourceArnHasBeenSet = true; m_sourceArn.assign(value); }
83 inline VulnerabilityCodeVulnerabilities& WithSourceArn(const Aws::String& value) { SetSourceArn(value); return *this;}
84 inline VulnerabilityCodeVulnerabilities& WithSourceArn(Aws::String&& value) { SetSourceArn(std::move(value)); return *this;}
85 inline VulnerabilityCodeVulnerabilities& WithSourceArn(const char* value) { SetSourceArn(value); return *this;}
87 private:
88
90 bool m_cwesHasBeenSet = false;
91
93 bool m_filePathHasBeenSet = false;
94
95 Aws::String m_sourceArn;
96 bool m_sourceArnHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace SecurityHub
101} // namespace Aws
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
VulnerabilityCodeVulnerabilities & WithFilePath(CodeVulnerabilitiesFilePath &&value)
AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
VulnerabilityCodeVulnerabilities & WithCwes(Aws::Vector< Aws::String > &&value)
VulnerabilityCodeVulnerabilities & WithCwes(const Aws::Vector< Aws::String > &value)
VulnerabilityCodeVulnerabilities & WithFilePath(const CodeVulnerabilitiesFilePath &value)
VulnerabilityCodeVulnerabilities & AddCwes(Aws::String &&value)
AWS_SECURITYHUB_API VulnerabilityCodeVulnerabilities(Aws::Utils::Json::JsonView jsonValue)
VulnerabilityCodeVulnerabilities & WithSourceArn(Aws::String &&value)
VulnerabilityCodeVulnerabilities & WithSourceArn(const Aws::String &value)
VulnerabilityCodeVulnerabilities & WithSourceArn(const char *value)
VulnerabilityCodeVulnerabilities & AddCwes(const char *value)
VulnerabilityCodeVulnerabilities & AddCwes(const 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