AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SensitiveDataItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/DefaultDetection.h>
10#include <aws/macie2/model/SensitiveDataItemCategory.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Macie2 {
22namespace Model {
23
31 public:
32 AWS_MACIE2_API SensitiveDataItem() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline SensitiveDataItemCategory GetCategory() const { return m_category; }
47 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
49 m_categoryHasBeenSet = true;
50 m_category = value;
51 }
53 SetCategory(value);
54 return *this;
55 }
57
59
64 inline const Aws::Vector<DefaultDetection>& GetDetections() const { return m_detections; }
65 inline bool DetectionsHasBeenSet() const { return m_detectionsHasBeenSet; }
66 template <typename DetectionsT = Aws::Vector<DefaultDetection>>
67 void SetDetections(DetectionsT&& value) {
68 m_detectionsHasBeenSet = true;
69 m_detections = std::forward<DetectionsT>(value);
70 }
71 template <typename DetectionsT = Aws::Vector<DefaultDetection>>
72 SensitiveDataItem& WithDetections(DetectionsT&& value) {
73 SetDetections(std::forward<DetectionsT>(value));
74 return *this;
75 }
76 template <typename DetectionsT = DefaultDetection>
77 SensitiveDataItem& AddDetections(DetectionsT&& value) {
78 m_detectionsHasBeenSet = true;
79 m_detections.emplace_back(std::forward<DetectionsT>(value));
80 return *this;
81 }
83
85
88 inline long long GetTotalCount() const { return m_totalCount; }
89 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
90 inline void SetTotalCount(long long value) {
91 m_totalCountHasBeenSet = true;
92 m_totalCount = value;
93 }
94 inline SensitiveDataItem& WithTotalCount(long long value) {
95 SetTotalCount(value);
96 return *this;
97 }
99 private:
101
103
104 long long m_totalCount{0};
105 bool m_categoryHasBeenSet = false;
106 bool m_detectionsHasBeenSet = false;
107 bool m_totalCountHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Macie2
112} // namespace Aws
AWS_MACIE2_API SensitiveDataItem()=default
SensitiveDataItem & WithDetections(DetectionsT &&value)
SensitiveDataItem & WithCategory(SensitiveDataItemCategory value)
const Aws::Vector< DefaultDetection > & GetDetections() const
void SetDetections(DetectionsT &&value)
void SetCategory(SensitiveDataItemCategory value)
AWS_MACIE2_API SensitiveDataItem & operator=(Aws::Utils::Json::JsonView jsonValue)
SensitiveDataItemCategory GetCategory() const
SensitiveDataItem & AddDetections(DetectionsT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API SensitiveDataItem(Aws::Utils::Json::JsonView jsonValue)
SensitiveDataItem & WithTotalCount(long long value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue