AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetSensitiveDataOccurrencesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/DetectedDataDetails.h>
12#include <aws/macie2/model/RevealRequestStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Macie2 {
26namespace Model {
28 public:
29 AWS_MACIE2_API GetSensitiveDataOccurrencesResult() = default;
32
34
40 inline const Aws::String& GetError() const { return m_error; }
41 template <typename ErrorT = Aws::String>
42 void SetError(ErrorT&& value) {
43 m_errorHasBeenSet = true;
44 m_error = std::forward<ErrorT>(value);
45 }
46 template <typename ErrorT = Aws::String>
48 SetError(std::forward<ErrorT>(value));
49 return *this;
50 }
52
54
59 return m_sensitiveDataOccurrences;
60 }
61 template <typename SensitiveDataOccurrencesT = Aws::Map<Aws::String, Aws::Vector<DetectedDataDetails>>>
62 void SetSensitiveDataOccurrences(SensitiveDataOccurrencesT&& value) {
63 m_sensitiveDataOccurrencesHasBeenSet = true;
64 m_sensitiveDataOccurrences = std::forward<SensitiveDataOccurrencesT>(value);
65 }
66 template <typename SensitiveDataOccurrencesT = Aws::Map<Aws::String, Aws::Vector<DetectedDataDetails>>>
68 SetSensitiveDataOccurrences(std::forward<SensitiveDataOccurrencesT>(value));
69 return *this;
70 }
71 template <typename SensitiveDataOccurrencesKeyT = Aws::String, typename SensitiveDataOccurrencesValueT = Aws::Vector<DetectedDataDetails>>
73 SensitiveDataOccurrencesValueT&& value) {
74 m_sensitiveDataOccurrencesHasBeenSet = true;
75 m_sensitiveDataOccurrences.emplace(std::forward<SensitiveDataOccurrencesKeyT>(key),
76 std::forward<SensitiveDataOccurrencesValueT>(value));
77 return *this;
78 }
80
82
91 inline RevealRequestStatus GetStatus() const { return m_status; }
92 inline void SetStatus(RevealRequestStatus value) {
93 m_statusHasBeenSet = true;
94 m_status = value;
95 }
97 SetStatus(value);
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_error;
118
120
122
123 Aws::String m_requestId;
124 bool m_errorHasBeenSet = false;
125 bool m_sensitiveDataOccurrencesHasBeenSet = false;
126 bool m_statusHasBeenSet = false;
127 bool m_requestIdHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Macie2
132} // 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