AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ClassificationResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/ClassificationStatus.h>
11#include <aws/securityhub/model/CustomDataIdentifiersResult.h>
12#include <aws/securityhub/model/SensitiveDataResult.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
33 public:
34 AWS_SECURITYHUB_API ClassificationResult() = default;
35 AWS_SECURITYHUB_API ClassificationResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetMimeType() const { return m_mimeType; }
44 inline bool MimeTypeHasBeenSet() const { return m_mimeTypeHasBeenSet; }
45 template <typename MimeTypeT = Aws::String>
46 void SetMimeType(MimeTypeT&& value) {
47 m_mimeTypeHasBeenSet = true;
48 m_mimeType = std::forward<MimeTypeT>(value);
49 }
50 template <typename MimeTypeT = Aws::String>
51 ClassificationResult& WithMimeType(MimeTypeT&& value) {
52 SetMimeType(std::forward<MimeTypeT>(value));
53 return *this;
54 }
56
58
61 inline long long GetSizeClassified() const { return m_sizeClassified; }
62 inline bool SizeClassifiedHasBeenSet() const { return m_sizeClassifiedHasBeenSet; }
63 inline void SetSizeClassified(long long value) {
64 m_sizeClassifiedHasBeenSet = true;
65 m_sizeClassified = value;
66 }
67 inline ClassificationResult& WithSizeClassified(long long value) {
68 SetSizeClassified(value);
69 return *this;
70 }
72
74
79 inline bool GetAdditionalOccurrences() const { return m_additionalOccurrences; }
80 inline bool AdditionalOccurrencesHasBeenSet() const { return m_additionalOccurrencesHasBeenSet; }
81 inline void SetAdditionalOccurrences(bool value) {
82 m_additionalOccurrencesHasBeenSet = true;
83 m_additionalOccurrences = value;
84 }
87 return *this;
88 }
90
92
95 inline const ClassificationStatus& GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 template <typename StatusT = ClassificationStatus>
98 void SetStatus(StatusT&& value) {
99 m_statusHasBeenSet = true;
100 m_status = std::forward<StatusT>(value);
101 }
102 template <typename StatusT = ClassificationStatus>
104 SetStatus(std::forward<StatusT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<SensitiveDataResult>& GetSensitiveData() const { return m_sensitiveData; }
115 inline bool SensitiveDataHasBeenSet() const { return m_sensitiveDataHasBeenSet; }
116 template <typename SensitiveDataT = Aws::Vector<SensitiveDataResult>>
117 void SetSensitiveData(SensitiveDataT&& value) {
118 m_sensitiveDataHasBeenSet = true;
119 m_sensitiveData = std::forward<SensitiveDataT>(value);
120 }
121 template <typename SensitiveDataT = Aws::Vector<SensitiveDataResult>>
122 ClassificationResult& WithSensitiveData(SensitiveDataT&& value) {
123 SetSensitiveData(std::forward<SensitiveDataT>(value));
124 return *this;
125 }
126 template <typename SensitiveDataT = SensitiveDataResult>
127 ClassificationResult& AddSensitiveData(SensitiveDataT&& value) {
128 m_sensitiveDataHasBeenSet = true;
129 m_sensitiveData.emplace_back(std::forward<SensitiveDataT>(value));
130 return *this;
131 }
133
135
139 inline const CustomDataIdentifiersResult& GetCustomDataIdentifiers() const { return m_customDataIdentifiers; }
140 inline bool CustomDataIdentifiersHasBeenSet() const { return m_customDataIdentifiersHasBeenSet; }
141 template <typename CustomDataIdentifiersT = CustomDataIdentifiersResult>
142 void SetCustomDataIdentifiers(CustomDataIdentifiersT&& value) {
143 m_customDataIdentifiersHasBeenSet = true;
144 m_customDataIdentifiers = std::forward<CustomDataIdentifiersT>(value);
145 }
146 template <typename CustomDataIdentifiersT = CustomDataIdentifiersResult>
147 ClassificationResult& WithCustomDataIdentifiers(CustomDataIdentifiersT&& value) {
148 SetCustomDataIdentifiers(std::forward<CustomDataIdentifiersT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_mimeType;
154
155 long long m_sizeClassified{0};
156
157 bool m_additionalOccurrences{false};
158
159 ClassificationStatus m_status;
160
161 Aws::Vector<SensitiveDataResult> m_sensitiveData;
162
163 CustomDataIdentifiersResult m_customDataIdentifiers;
164 bool m_mimeTypeHasBeenSet = false;
165 bool m_sizeClassifiedHasBeenSet = false;
166 bool m_additionalOccurrencesHasBeenSet = false;
167 bool m_statusHasBeenSet = false;
168 bool m_sensitiveDataHasBeenSet = false;
169 bool m_customDataIdentifiersHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SecurityHub
174} // namespace Aws
const ClassificationStatus & GetStatus() const
ClassificationResult & WithMimeType(MimeTypeT &&value)
AWS_SECURITYHUB_API ClassificationResult(Aws::Utils::Json::JsonView jsonValue)
ClassificationResult & WithAdditionalOccurrences(bool value)
ClassificationResult & WithStatus(StatusT &&value)
const CustomDataIdentifiersResult & GetCustomDataIdentifiers() const
AWS_SECURITYHUB_API ClassificationResult()=default
const Aws::Vector< SensitiveDataResult > & GetSensitiveData() const
ClassificationResult & WithCustomDataIdentifiers(CustomDataIdentifiersT &&value)
ClassificationResult & WithSizeClassified(long long value)
ClassificationResult & WithSensitiveData(SensitiveDataT &&value)
ClassificationResult & AddSensitiveData(SensitiveDataT &&value)
AWS_SECURITYHUB_API ClassificationResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCustomDataIdentifiers(CustomDataIdentifiersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue