AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ResourceFindingsSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/ResourceSeverityBreakdown.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API ResourceFindingsSummary() = default;
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFindingType() const { return m_findingType; }
41 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
42 template <typename FindingTypeT = Aws::String>
43 void SetFindingType(FindingTypeT&& value) {
44 m_findingTypeHasBeenSet = true;
45 m_findingType = std::forward<FindingTypeT>(value);
46 }
47 template <typename FindingTypeT = Aws::String>
49 SetFindingType(std::forward<FindingTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetProductName() const { return m_productName; }
59 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
60 template <typename ProductNameT = Aws::String>
61 void SetProductName(ProductNameT&& value) {
62 m_productNameHasBeenSet = true;
63 m_productName = std::forward<ProductNameT>(value);
64 }
65 template <typename ProductNameT = Aws::String>
67 SetProductName(std::forward<ProductNameT>(value));
68 return *this;
69 }
71
73
76 inline int GetTotalFindings() const { return m_totalFindings; }
77 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
78 inline void SetTotalFindings(int value) {
79 m_totalFindingsHasBeenSet = true;
80 m_totalFindings = value;
81 }
83 SetTotalFindings(value);
84 return *this;
85 }
87
89
92 inline const ResourceSeverityBreakdown& GetSeverities() const { return m_severities; }
93 inline bool SeveritiesHasBeenSet() const { return m_severitiesHasBeenSet; }
94 template <typename SeveritiesT = ResourceSeverityBreakdown>
95 void SetSeverities(SeveritiesT&& value) {
96 m_severitiesHasBeenSet = true;
97 m_severities = std::forward<SeveritiesT>(value);
98 }
99 template <typename SeveritiesT = ResourceSeverityBreakdown>
101 SetSeverities(std::forward<SeveritiesT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_findingType;
107
108 Aws::String m_productName;
109
110 int m_totalFindings{0};
111
112 ResourceSeverityBreakdown m_severities;
113 bool m_findingTypeHasBeenSet = false;
114 bool m_productNameHasBeenSet = false;
115 bool m_totalFindingsHasBeenSet = false;
116 bool m_severitiesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SecurityHub
121} // namespace Aws
ResourceFindingsSummary & WithTotalFindings(int value)
ResourceFindingsSummary & WithSeverities(SeveritiesT &&value)
ResourceFindingsSummary & WithFindingType(FindingTypeT &&value)
const ResourceSeverityBreakdown & GetSeverities() const
AWS_SECURITYHUB_API ResourceFindingsSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API ResourceFindingsSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API ResourceFindingsSummary()=default
ResourceFindingsSummary & WithProductName(ProductNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue