AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SensitiveDataItem.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/SensitiveDataItemCategory.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/macie2/model/DefaultDetection.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Macie2
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_MACIE2_API SensitiveDataItem() = default;
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline SensitiveDataItemCategory GetCategory() const { return m_category; }
53 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
54 inline void SetCategory(SensitiveDataItemCategory value) { m_categoryHasBeenSet = true; m_category = value; }
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) { m_detectionsHasBeenSet = true; m_detections = std::forward<DetectionsT>(value); }
68 template<typename DetectionsT = Aws::Vector<DefaultDetection>>
69 SensitiveDataItem& WithDetections(DetectionsT&& value) { SetDetections(std::forward<DetectionsT>(value)); return *this;}
70 template<typename DetectionsT = DefaultDetection>
71 SensitiveDataItem& AddDetections(DetectionsT&& value) { m_detectionsHasBeenSet = true; m_detections.emplace_back(std::forward<DetectionsT>(value)); return *this; }
73
75
78 inline long long GetTotalCount() const { return m_totalCount; }
79 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
80 inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
81 inline SensitiveDataItem& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
83 private:
84
86 bool m_categoryHasBeenSet = false;
87
89 bool m_detectionsHasBeenSet = false;
90
91 long long m_totalCount{0};
92 bool m_totalCountHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Macie2
97} // 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