AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CustomDataIdentifiers.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/CustomDetection.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
31 public:
32 AWS_MACIE2_API CustomDataIdentifiers() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<CustomDetection>& GetDetections() const { return m_detections; }
43 inline bool DetectionsHasBeenSet() const { return m_detectionsHasBeenSet; }
44 template <typename DetectionsT = Aws::Vector<CustomDetection>>
45 void SetDetections(DetectionsT&& value) {
46 m_detectionsHasBeenSet = true;
47 m_detections = std::forward<DetectionsT>(value);
48 }
49 template <typename DetectionsT = Aws::Vector<CustomDetection>>
50 CustomDataIdentifiers& WithDetections(DetectionsT&& value) {
51 SetDetections(std::forward<DetectionsT>(value));
52 return *this;
53 }
54 template <typename DetectionsT = CustomDetection>
55 CustomDataIdentifiers& AddDetections(DetectionsT&& value) {
56 m_detectionsHasBeenSet = true;
57 m_detections.emplace_back(std::forward<DetectionsT>(value));
58 return *this;
59 }
61
63
67 inline long long GetTotalCount() const { return m_totalCount; }
68 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
69 inline void SetTotalCount(long long value) {
70 m_totalCountHasBeenSet = true;
71 m_totalCount = value;
72 }
73 inline CustomDataIdentifiers& WithTotalCount(long long value) {
74 SetTotalCount(value);
75 return *this;
76 }
78 private:
80
81 long long m_totalCount{0};
82 bool m_detectionsHasBeenSet = false;
83 bool m_totalCountHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Macie2
88} // namespace Aws
AWS_MACIE2_API CustomDataIdentifiers()=default
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API CustomDataIdentifiers & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomDataIdentifiers & AddDetections(DetectionsT &&value)
AWS_MACIE2_API CustomDataIdentifiers(Aws::Utils::Json::JsonView jsonValue)
CustomDataIdentifiers & WithTotalCount(long long value)
const Aws::Vector< CustomDetection > & GetDetections() const
CustomDataIdentifiers & WithDetections(DetectionsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue