AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
GetSensitiveDataOccurrencesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/macie2/Macie2_EXPORTS.h>
12#include <aws/macie2/model/DetectedDataDetails.h>
13#include <aws/macie2/model/RevealRequestStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Macie2 {
27namespace Model {
29 public:
30 AWS_MACIE2_API GetSensitiveDataOccurrencesResult() = default;
33
35
41 inline const Aws::String& GetError() const { return m_error; }
42 template <typename ErrorT = Aws::String>
43 void SetError(ErrorT&& value) {
44 m_errorHasBeenSet = true;
45 m_error = std::forward<ErrorT>(value);
46 }
47 template <typename ErrorT = Aws::String>
49 SetError(std::forward<ErrorT>(value));
50 return *this;
51 }
53
55
60 return m_sensitiveDataOccurrences;
61 }
62 template <typename SensitiveDataOccurrencesT = Aws::Map<Aws::String, Aws::Vector<DetectedDataDetails>>>
63 void SetSensitiveDataOccurrences(SensitiveDataOccurrencesT&& value) {
64 m_sensitiveDataOccurrencesHasBeenSet = true;
65 m_sensitiveDataOccurrences = std::forward<SensitiveDataOccurrencesT>(value);
66 }
67 template <typename SensitiveDataOccurrencesT = Aws::Map<Aws::String, Aws::Vector<DetectedDataDetails>>>
69 SetSensitiveDataOccurrences(std::forward<SensitiveDataOccurrencesT>(value));
70 return *this;
71 }
72 template <typename SensitiveDataOccurrencesKeyT = Aws::String, typename SensitiveDataOccurrencesValueT = Aws::Vector<DetectedDataDetails>>
74 SensitiveDataOccurrencesValueT&& value) {
75 m_sensitiveDataOccurrencesHasBeenSet = true;
76 m_sensitiveDataOccurrences.emplace(std::forward<SensitiveDataOccurrencesKeyT>(key),
77 std::forward<SensitiveDataOccurrencesValueT>(value));
78 return *this;
79 }
81
83
92 inline RevealRequestStatus GetStatus() const { return m_status; }
93 inline void SetStatus(RevealRequestStatus value) {
94 m_statusHasBeenSet = true;
95 m_status = value;
96 }
98 SetStatus(value);
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 Aws::String m_error;
121
123
125
126 Aws::String m_requestId;
127 Aws::Http::HttpResponseCode m_HttpResponseCode;
128 bool m_errorHasBeenSet = false;
129 bool m_sensitiveDataOccurrencesHasBeenSet = false;
130 bool m_statusHasBeenSet = false;
131 bool m_requestIdHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Macie2
136} // namespace Aws
const Aws::Map< Aws::String, Aws::Vector< DetectedDataDetails > > & GetSensitiveDataOccurrences() const
AWS_MACIE2_API GetSensitiveDataOccurrencesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MACIE2_API GetSensitiveDataOccurrencesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSensitiveDataOccurrencesResult & WithError(ErrorT &&value)
GetSensitiveDataOccurrencesResult & WithStatus(RevealRequestStatus value)
GetSensitiveDataOccurrencesResult & WithSensitiveDataOccurrences(SensitiveDataOccurrencesT &&value)
GetSensitiveDataOccurrencesResult & WithRequestId(RequestIdT &&value)
GetSensitiveDataOccurrencesResult & AddSensitiveDataOccurrences(SensitiveDataOccurrencesKeyT &&key, SensitiveDataOccurrencesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue