AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRelatedFindings(const Aws::Vector<RelatedFinding>& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = value; }
99 inline void SetRelatedFindings(Aws::Vector<RelatedFinding>&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::move(value); }
102 inline FindingProviderFields& AddRelatedFindings(const RelatedFinding& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(value); return *this; }
103 inline FindingProviderFields& AddRelatedFindings(RelatedFinding&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(std::move(value)); return *this; }
105
107
110 inline const FindingProviderSeverity& GetSeverity() const{ return m_severity; }
111 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
112 inline void SetSeverity(const FindingProviderSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
113 inline void SetSeverity(FindingProviderSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
114 inline FindingProviderFields& WithSeverity(const FindingProviderSeverity& value) { SetSeverity(value); return *this;}
115 inline FindingProviderFields& WithSeverity(FindingProviderSeverity&& value) { SetSeverity(std::move(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 inline void SetTypes(const Aws::Vector<Aws::String>& value) { m_typesHasBeenSet = true; m_types = value; }
128 inline void SetTypes(Aws::Vector<Aws::String>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
129 inline FindingProviderFields& WithTypes(const Aws::Vector<Aws::String>& value) { SetTypes(value); return *this;}
130 inline FindingProviderFields& WithTypes(Aws::Vector<Aws::String>&& value) { SetTypes(std::move(value)); return *this;}
131 inline FindingProviderFields& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
132 inline FindingProviderFields& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
133 inline FindingProviderFields& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
135 private:
136
137 int m_confidence;
138 bool m_confidenceHasBeenSet = false;
139
140 int m_criticality;
141 bool m_criticalityHasBeenSet = false;
142
143 Aws::Vector<RelatedFinding> m_relatedFindings;
144 bool m_relatedFindingsHasBeenSet = false;
145
146 FindingProviderSeverity m_severity;
147 bool m_severityHasBeenSet = false;
148
150 bool m_typesHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace SecurityHub
155} // namespace Aws
FindingProviderFields & WithTypes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetTypes() const
void SetTypes(const Aws::Vector< Aws::String > &value)
FindingProviderFields & WithRelatedFindings(Aws::Vector< RelatedFinding > &&value)
FindingProviderFields & WithCriticality(int value)
void SetTypes(Aws::Vector< Aws::String > &&value)
FindingProviderFields & WithSeverity(FindingProviderSeverity &&value)
const FindingProviderSeverity & GetSeverity() const
FindingProviderFields & AddRelatedFindings(const RelatedFinding &value)
AWS_SECURITYHUB_API FindingProviderFields & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSeverity(FindingProviderSeverity &&value)
void SetSeverity(const FindingProviderSeverity &value)
FindingProviderFields & AddTypes(const Aws::String &value)
FindingProviderFields & WithConfidence(int value)
FindingProviderFields & WithRelatedFindings(const Aws::Vector< RelatedFinding > &value)
void SetRelatedFindings(const Aws::Vector< RelatedFinding > &value)
FindingProviderFields & WithSeverity(const FindingProviderSeverity &value)
AWS_SECURITYHUB_API FindingProviderFields(Aws::Utils::Json::JsonView jsonValue)
FindingProviderFields & AddTypes(const char *value)
FindingProviderFields & WithTypes(Aws::Vector< Aws::String > &&value)
FindingProviderFields & AddTypes(Aws::String &&value)
void SetRelatedFindings(Aws::Vector< RelatedFinding > &&value)
FindingProviderFields & AddRelatedFindings(RelatedFinding &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue