AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VulnerabilityIdAggregation.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/SeverityCounts.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IMAGEBUILDER_API VulnerabilityIdAggregation() = default;
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVulnerabilityId() const { return m_vulnerabilityId; }
47 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
48 template<typename VulnerabilityIdT = Aws::String>
49 void SetVulnerabilityId(VulnerabilityIdT&& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = std::forward<VulnerabilityIdT>(value); }
50 template<typename VulnerabilityIdT = Aws::String>
51 VulnerabilityIdAggregation& WithVulnerabilityId(VulnerabilityIdT&& value) { SetVulnerabilityId(std::forward<VulnerabilityIdT>(value)); return *this;}
53
55
59 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
60 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
61 template<typename SeverityCountsT = SeverityCounts>
62 void SetSeverityCounts(SeverityCountsT&& value) { m_severityCountsHasBeenSet = true; m_severityCounts = std::forward<SeverityCountsT>(value); }
63 template<typename SeverityCountsT = SeverityCounts>
64 VulnerabilityIdAggregation& WithSeverityCounts(SeverityCountsT&& value) { SetSeverityCounts(std::forward<SeverityCountsT>(value)); return *this;}
66 private:
67
68 Aws::String m_vulnerabilityId;
69 bool m_vulnerabilityIdHasBeenSet = false;
70
71 SeverityCounts m_severityCounts;
72 bool m_severityCountsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace imagebuilder
77} // namespace Aws
AWS_IMAGEBUILDER_API VulnerabilityIdAggregation()=default
VulnerabilityIdAggregation & WithSeverityCounts(SeverityCountsT &&value)
AWS_IMAGEBUILDER_API VulnerabilityIdAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
VulnerabilityIdAggregation & WithVulnerabilityId(VulnerabilityIdT &&value)
AWS_IMAGEBUILDER_API VulnerabilityIdAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue