AWS SDK for C++  1.9.131
AWS SDK for C++
FindingProviderFields.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace SecurityHub
25 {
26 namespace Model
27 {
28 
38  {
39  public:
44 
45 
52  inline int GetConfidence() const{ return m_confidence; }
53 
60  inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
61 
68  inline void SetConfidence(int value) { m_confidenceHasBeenSet = true; m_confidence = value; }
69 
76  inline FindingProviderFields& WithConfidence(int value) { SetConfidence(value); return *this;}
77 
78 
84  inline int GetCriticality() const{ return m_criticality; }
85 
91  inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
92 
98  inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
99 
105  inline FindingProviderFields& WithCriticality(int value) { SetCriticality(value); return *this;}
106 
107 
111  inline const Aws::Vector<RelatedFinding>& GetRelatedFindings() const{ return m_relatedFindings; }
112 
116  inline bool RelatedFindingsHasBeenSet() const { return m_relatedFindingsHasBeenSet; }
117 
121  inline void SetRelatedFindings(const Aws::Vector<RelatedFinding>& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = value; }
122 
126  inline void SetRelatedFindings(Aws::Vector<RelatedFinding>&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings = std::move(value); }
127 
131  inline FindingProviderFields& WithRelatedFindings(const Aws::Vector<RelatedFinding>& value) { SetRelatedFindings(value); return *this;}
132 
136  inline FindingProviderFields& WithRelatedFindings(Aws::Vector<RelatedFinding>&& value) { SetRelatedFindings(std::move(value)); return *this;}
137 
141  inline FindingProviderFields& AddRelatedFindings(const RelatedFinding& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(value); return *this; }
142 
146  inline FindingProviderFields& AddRelatedFindings(RelatedFinding&& value) { m_relatedFindingsHasBeenSet = true; m_relatedFindings.push_back(std::move(value)); return *this; }
147 
148 
152  inline const FindingProviderSeverity& GetSeverity() const{ return m_severity; }
153 
157  inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
158 
162  inline void SetSeverity(const FindingProviderSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
163 
167  inline void SetSeverity(FindingProviderSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
168 
172  inline FindingProviderFields& WithSeverity(const FindingProviderSeverity& value) { SetSeverity(value); return *this;}
173 
177  inline FindingProviderFields& WithSeverity(FindingProviderSeverity&& value) { SetSeverity(std::move(value)); return *this;}
178 
179 
186  inline const Aws::Vector<Aws::String>& GetTypes() const{ return m_types; }
187 
194  inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
195 
202  inline void SetTypes(const Aws::Vector<Aws::String>& value) { m_typesHasBeenSet = true; m_types = value; }
203 
210  inline void SetTypes(Aws::Vector<Aws::String>&& value) { m_typesHasBeenSet = true; m_types = std::move(value); }
211 
218  inline FindingProviderFields& WithTypes(const Aws::Vector<Aws::String>& value) { SetTypes(value); return *this;}
219 
226  inline FindingProviderFields& WithTypes(Aws::Vector<Aws::String>&& value) { SetTypes(std::move(value)); return *this;}
227 
234  inline FindingProviderFields& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
235 
242  inline FindingProviderFields& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; }
243 
250  inline FindingProviderFields& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
251 
252  private:
253 
254  int m_confidence;
255  bool m_confidenceHasBeenSet;
256 
257  int m_criticality;
258  bool m_criticalityHasBeenSet;
259 
260  Aws::Vector<RelatedFinding> m_relatedFindings;
261  bool m_relatedFindingsHasBeenSet;
262 
263  FindingProviderSeverity m_severity;
264  bool m_severityHasBeenSet;
265 
266  Aws::Vector<Aws::String> m_types;
267  bool m_typesHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace SecurityHub
272 } // namespace Aws
Aws::SecurityHub::Model::FindingProviderFields::TypesHasBeenSet
bool TypesHasBeenSet() const
Definition: FindingProviderFields.h:194
Aws::SecurityHub::Model::FindingProviderFields::AddTypes
FindingProviderFields & AddTypes(const Aws::String &value)
Definition: FindingProviderFields.h:234
Aws::SecurityHub::Model::FindingProviderFields::SetSeverity
void SetSeverity(const FindingProviderSeverity &value)
Definition: FindingProviderFields.h:162
Aws::SecurityHub::Model::FindingProviderFields::WithCriticality
FindingProviderFields & WithCriticality(int value)
Definition: FindingProviderFields.h:105
Aws::SecurityHub::Model::FindingProviderFields::WithRelatedFindings
FindingProviderFields & WithRelatedFindings(const Aws::Vector< RelatedFinding > &value)
Definition: FindingProviderFields.h:131
Aws::SecurityHub::Model::FindingProviderFields::SetRelatedFindings
void SetRelatedFindings(const Aws::Vector< RelatedFinding > &value)
Definition: FindingProviderFields.h:121
Aws::SecurityHub::Model::FindingProviderFields::AddTypes
FindingProviderFields & AddTypes(const char *value)
Definition: FindingProviderFields.h:250
Aws::SecurityHub::Model::FindingProviderFields::AddRelatedFindings
FindingProviderFields & AddRelatedFindings(const RelatedFinding &value)
Definition: FindingProviderFields.h:141
Aws::SecurityHub::Model::FindingProviderFields::WithTypes
FindingProviderFields & WithTypes(const Aws::Vector< Aws::String > &value)
Definition: FindingProviderFields.h:218
Aws::SecurityHub::Model::FindingProviderFields::GetTypes
const Aws::Vector< Aws::String > & GetTypes() const
Definition: FindingProviderFields.h:186
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
FindingProviderSeverity.h
Aws::SecurityHub::Model::FindingProviderFields::GetCriticality
int GetCriticality() const
Definition: FindingProviderFields.h:84
Aws::SecurityHub::Model::FindingProviderFields::WithRelatedFindings
FindingProviderFields & WithRelatedFindings(Aws::Vector< RelatedFinding > &&value)
Definition: FindingProviderFields.h:136
Aws::SecurityHub::Model::FindingProviderFields
Definition: FindingProviderFields.h:38
Aws::SecurityHub::Model::FindingProviderFields::FindingProviderFields
FindingProviderFields(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::FindingProviderFields::AddTypes
FindingProviderFields & AddTypes(Aws::String &&value)
Definition: FindingProviderFields.h:242
Aws::SecurityHub::Model::FindingProviderFields::FindingProviderFields
FindingProviderFields()
Aws::SecurityHub::Model::FindingProviderFields::AddRelatedFindings
FindingProviderFields & AddRelatedFindings(RelatedFinding &&value)
Definition: FindingProviderFields.h:146
Aws::SecurityHub::Model::FindingProviderFields::WithConfidence
FindingProviderFields & WithConfidence(int value)
Definition: FindingProviderFields.h:76
Aws::SecurityHub::Model::FindingProviderFields::SetTypes
void SetTypes(const Aws::Vector< Aws::String > &value)
Definition: FindingProviderFields.h:202
Aws::SecurityHub::Model::FindingProviderFields::operator=
FindingProviderFields & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::FindingProviderFields::SetCriticality
void SetCriticality(int value)
Definition: FindingProviderFields.h:98
Aws::SecurityHub::Model::FindingProviderFields::GetRelatedFindings
const Aws::Vector< RelatedFinding > & GetRelatedFindings() const
Definition: FindingProviderFields.h:111
Aws::SecurityHub::Model::FindingProviderFields::CriticalityHasBeenSet
bool CriticalityHasBeenSet() const
Definition: FindingProviderFields.h:91
Aws::SecurityHub::Model::FindingProviderSeverity
Definition: FindingProviderSeverity.h:34
Aws::SecurityHub::Model::FindingProviderFields::GetConfidence
int GetConfidence() const
Definition: FindingProviderFields.h:52
Aws::SecurityHub::Model::FindingProviderFields::ConfidenceHasBeenSet
bool ConfidenceHasBeenSet() const
Definition: FindingProviderFields.h:60
Aws::SecurityHub::Model::FindingProviderFields::SetConfidence
void SetConfidence(int value)
Definition: FindingProviderFields.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::FindingProviderFields::SeverityHasBeenSet
bool SeverityHasBeenSet() const
Definition: FindingProviderFields.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::FindingProviderFields::SetTypes
void SetTypes(Aws::Vector< Aws::String > &&value)
Definition: FindingProviderFields.h:210
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::FindingProviderFields::SetRelatedFindings
void SetRelatedFindings(Aws::Vector< RelatedFinding > &&value)
Definition: FindingProviderFields.h:126
Aws::SecurityHub::Model::FindingProviderFields::RelatedFindingsHasBeenSet
bool RelatedFindingsHasBeenSet() const
Definition: FindingProviderFields.h:116
Aws::SecurityHub::Model::FindingProviderFields::WithTypes
FindingProviderFields & WithTypes(Aws::Vector< Aws::String > &&value)
Definition: FindingProviderFields.h:226
Aws::SecurityHub::Model::FindingProviderFields::GetSeverity
const FindingProviderSeverity & GetSeverity() const
Definition: FindingProviderFields.h:152
Aws::SecurityHub::Model::FindingProviderFields::SetSeverity
void SetSeverity(FindingProviderSeverity &&value)
Definition: FindingProviderFields.h:167
Aws::SecurityHub::Model::FindingProviderFields::WithSeverity
FindingProviderFields & WithSeverity(FindingProviderSeverity &&value)
Definition: FindingProviderFields.h:177
Aws::SecurityHub::Model::FindingProviderFields::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::FindingProviderFields::WithSeverity
FindingProviderFields & WithSeverity(const FindingProviderSeverity &value)
Definition: FindingProviderFields.h:172