AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TitleAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/SeverityCounts.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API TitleAggregationResponse() = default;
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTitle() const { return m_title; }
41 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
42 template <typename TitleT = Aws::String>
43 void SetTitle(TitleT&& value) {
44 m_titleHasBeenSet = true;
45 m_title = std::forward<TitleT>(value);
46 }
47 template <typename TitleT = Aws::String>
49 SetTitle(std::forward<TitleT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetVulnerabilityId() const { return m_vulnerabilityId; }
59 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
60 template <typename VulnerabilityIdT = Aws::String>
61 void SetVulnerabilityId(VulnerabilityIdT&& value) {
62 m_vulnerabilityIdHasBeenSet = true;
63 m_vulnerabilityId = std::forward<VulnerabilityIdT>(value);
64 }
65 template <typename VulnerabilityIdT = Aws::String>
66 TitleAggregationResponse& WithVulnerabilityId(VulnerabilityIdT&& value) {
67 SetVulnerabilityId(std::forward<VulnerabilityIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetAccountId() const { return m_accountId; }
77 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
78 template <typename AccountIdT = Aws::String>
79 void SetAccountId(AccountIdT&& value) {
80 m_accountIdHasBeenSet = true;
81 m_accountId = std::forward<AccountIdT>(value);
82 }
83 template <typename AccountIdT = Aws::String>
85 SetAccountId(std::forward<AccountIdT>(value));
86 return *this;
87 }
89
91
94 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
95 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
96 template <typename SeverityCountsT = SeverityCounts>
97 void SetSeverityCounts(SeverityCountsT&& value) {
98 m_severityCountsHasBeenSet = true;
99 m_severityCounts = std::forward<SeverityCountsT>(value);
100 }
101 template <typename SeverityCountsT = SeverityCounts>
103 SetSeverityCounts(std::forward<SeverityCountsT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_title;
109
110 Aws::String m_vulnerabilityId;
111
112 Aws::String m_accountId;
113
114 SeverityCounts m_severityCounts;
115 bool m_titleHasBeenSet = false;
116 bool m_vulnerabilityIdHasBeenSet = false;
117 bool m_accountIdHasBeenSet = false;
118 bool m_severityCountsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace Inspector2
123} // namespace Aws
TitleAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AWS_INSPECTOR2_API TitleAggregationResponse()=default
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API TitleAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
TitleAggregationResponse & WithTitle(TitleT &&value)
AWS_INSPECTOR2_API TitleAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
TitleAggregationResponse & WithVulnerabilityId(VulnerabilityIdT &&value)
TitleAggregationResponse & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue