AWS SDK for C++

AWS SDK for C++ Version 1.11.905

Loading...
Searching...
No Matches
ExposureFinding.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/ExposureImpact.h>
10#include <aws/securityhub/model/ExposureSeverity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API ExposureFinding() = default;
33 AWS_SECURITYHUB_API ExposureFinding(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API ExposureFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetMetadataUid() const { return m_metadataUid; }
43 inline bool MetadataUidHasBeenSet() const { return m_metadataUidHasBeenSet; }
44 template <typename MetadataUidT = Aws::String>
45 void SetMetadataUid(MetadataUidT&& value) {
46 m_metadataUidHasBeenSet = true;
47 m_metadataUid = std::forward<MetadataUidT>(value);
48 }
49 template <typename MetadataUidT = Aws::String>
50 ExposureFinding& WithMetadataUid(MetadataUidT&& value) {
51 SetMetadataUid(std::forward<MetadataUidT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTitle() const { return m_title; }
61 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
62 template <typename TitleT = Aws::String>
63 void SetTitle(TitleT&& value) {
64 m_titleHasBeenSet = true;
65 m_title = std::forward<TitleT>(value);
66 }
67 template <typename TitleT = Aws::String>
68 ExposureFinding& WithTitle(TitleT&& value) {
69 SetTitle(std::forward<TitleT>(value));
70 return *this;
71 }
73
75
79 inline ExposureSeverity GetPreviousSeverity() const { return m_previousSeverity; }
80 inline bool PreviousSeverityHasBeenSet() const { return m_previousSeverityHasBeenSet; }
82 m_previousSeverityHasBeenSet = true;
83 m_previousSeverity = value;
84 }
87 return *this;
88 }
90
92
96 inline ExposureSeverity GetProjectedSeverity() const { return m_projectedSeverity; }
97 inline bool ProjectedSeverityHasBeenSet() const { return m_projectedSeverityHasBeenSet; }
99 m_projectedSeverityHasBeenSet = true;
100 m_projectedSeverity = value;
101 }
104 return *this;
105 }
107
109
118 inline ExposureImpact GetImpact() const { return m_impact; }
119 inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; }
120 inline void SetImpact(ExposureImpact value) {
121 m_impactHasBeenSet = true;
122 m_impact = value;
123 }
125 SetImpact(value);
126 return *this;
127 }
129 private:
130 Aws::String m_metadataUid;
131
132 Aws::String m_title;
133
135
136 ExposureSeverity m_projectedSeverity{ExposureSeverity::NOT_SET};
137
139 bool m_metadataUidHasBeenSet = false;
140 bool m_titleHasBeenSet = false;
141 bool m_previousSeverityHasBeenSet = false;
142 bool m_projectedSeverityHasBeenSet = false;
143 bool m_impactHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SecurityHub
148} // namespace Aws
void SetPreviousSeverity(ExposureSeverity value)
ExposureFinding & WithPreviousSeverity(ExposureSeverity value)
void SetMetadataUid(MetadataUidT &&value)
AWS_SECURITYHUB_API ExposureFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMetadataUid() const
const Aws::String & GetTitle() const
AWS_SECURITYHUB_API ExposureFinding()=default
ExposureSeverity GetProjectedSeverity() const
AWS_SECURITYHUB_API ExposureFinding(Aws::Utils::Json::JsonView jsonValue)
void SetProjectedSeverity(ExposureSeverity value)
ExposureSeverity GetPreviousSeverity() const
ExposureFinding & WithMetadataUid(MetadataUidT &&value)
ExposureFinding & WithImpact(ExposureImpact value)
ExposureFinding & WithProjectedSeverity(ExposureSeverity value)
ExposureFinding & WithTitle(TitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue