AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FindingProviderFields.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/FindingProviderSeverity.h>
10#include <aws/securityhub/model/RelatedFinding.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub
25{
26namespace Model
27{
28
59 {
60 public:
61 AWS_SECURITYHUB_API FindingProviderFields() = default;
62 AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue);
64 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
65
66
68
74 inline int GetConfidence() const { return m_confidence; }
75 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
76 inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
77 inline FindingProviderFields& WithConfidence(int value) { SetConfidence(value); return *this;}
79
81
86 inline int GetCriticality() const { return m_criticality; }
87 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
88 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
89 inline FindingProviderFields& WithCriticality(int value) { SetCriticality(value); return *this;}
91
93
96 inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const { return m_relatedFindings; }
97 inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
98 template<typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
99 void SetRelatedFindings(RelatedFindingsT&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::forward<RelatedFindingsT>(value); }
100 template<typename RelatedFindingsT = Aws::Vector<RelatedFinding>>
101 FindingProviderFields& WithRelatedFindings(RelatedFindingsT&& value) { SetRelatedFindings(std::forward<RelatedFindingsT>(value)); return *this;}
102 template<typename RelatedFindingsT = RelatedFinding>
103 FindingProviderFields& AddRelatedFindings(RelatedFindingsT&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.emplace_back(std::forward<RelatedFindingsT>(value)); return *this; }
105
107
110 inline const FindingProviderSeverity& GetSeverity() const { return m_severity; }
111 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
112 template<typename SeverityT = FindingProviderSeverity>
113 void SetSeverity(SeverityT&& value) { m_severityHasBeenSet = true; m_severity = std::forward<SeverityT>(value); }
114 template<typename SeverityT = FindingProviderSeverity>
115 FindingProviderFields& WithSeverity(SeverityT&& value) { SetSeverity(std::forward<SeverityT>(value)); return *this;}
117
119
125 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
126 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
127 template<typename TypesT = Aws::Vector<Aws::String>>
128 void SetTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types = std::forward<TypesT>(value); }
129 template<typename TypesT = Aws::Vector<Aws::String>>
130 FindingProviderFields& WithTypes(TypesT&& value) { SetTypes(std::forward<TypesT>(value)); return *this;}
131 template<typename TypesT = Aws::String>
132 FindingProviderFields& AddTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types.emplace_back(std::forward<TypesT>(value)); return *this; }
134 private:
135
136 int m_confidence{0};
137 bool m_confidenceHasBeenSet = false;
138
139 int m_criticality{0};
140 bool m_criticalityHasBeenSet = false;
141
142 Aws::Vector<RelatedFinding> m_relatedFindings;
143 bool m_relatedFindingsHasBeenSet = false;
144
145 FindingProviderSeverity m_severity;
146 bool m_severityHasBeenSet = false;
147
149 bool m_typesHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace SecurityHub
154} // namespace Aws
FindingProviderFields & WithSeverity(SeverityT &&value)
const Aws::Vector< Aws::String > & GetTypes() const
AWS_SECURITYHUB_API FindingProviderFields()=default
FindingProviderFields & WithCriticality(int value)
const FindingProviderSeverity & GetSeverity() const
AWS_SECURITYHUB_API FindingProviderFields & operator=(Aws::Utils::Json::JsonView jsonValue)
FindingProviderFields & WithConfidence(int value)
FindingProviderFields & AddRelatedFindings(RelatedFindingsT &&value)
FindingProviderFields & WithRelatedFindings(RelatedFindingsT &&value)
AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue)
FindingProviderFields & AddTypes(TypesT &&value)
FindingProviderFields & WithTypes(TypesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue