AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SensitiveDataResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/SensitiveDataDetections.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API SensitiveDataResult() = default;
33 AWS_SECURITYHUB_API SensitiveDataResult(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetCategory() const { return m_category; }
44 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
45 template <typename CategoryT = Aws::String>
46 void SetCategory(CategoryT&& value) {
47 m_categoryHasBeenSet = true;
48 m_category = std::forward<CategoryT>(value);
49 }
50 template <typename CategoryT = Aws::String>
51 SensitiveDataResult& WithCategory(CategoryT&& value) {
52 SetCategory(std::forward<CategoryT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<SensitiveDataDetections>& GetDetections() const { return m_detections; }
62 inline bool DetectionsHasBeenSet() const { return m_detectionsHasBeenSet; }
63 template <typename DetectionsT = Aws::Vector<SensitiveDataDetections>>
64 void SetDetections(DetectionsT&& value) {
65 m_detectionsHasBeenSet = true;
66 m_detections = std::forward<DetectionsT>(value);
67 }
68 template <typename DetectionsT = Aws::Vector<SensitiveDataDetections>>
69 SensitiveDataResult& WithDetections(DetectionsT&& value) {
70 SetDetections(std::forward<DetectionsT>(value));
71 return *this;
72 }
73 template <typename DetectionsT = SensitiveDataDetections>
74 SensitiveDataResult& AddDetections(DetectionsT&& value) {
75 m_detectionsHasBeenSet = true;
76 m_detections.emplace_back(std::forward<DetectionsT>(value));
77 return *this;
78 }
80
82
85 inline long long GetTotalCount() const { return m_totalCount; }
86 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
87 inline void SetTotalCount(long long value) {
88 m_totalCountHasBeenSet = true;
89 m_totalCount = value;
90 }
91 inline SensitiveDataResult& WithTotalCount(long long value) {
92 SetTotalCount(value);
93 return *this;
94 }
96 private:
97 Aws::String m_category;
98
100
101 long long m_totalCount{0};
102 bool m_categoryHasBeenSet = false;
103 bool m_detectionsHasBeenSet = false;
104 bool m_totalCountHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace SecurityHub
109} // namespace Aws
AWS_SECURITYHUB_API SensitiveDataResult(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SensitiveDataResult & WithDetections(DetectionsT &&value)
AWS_SECURITYHUB_API SensitiveDataResult & operator=(Aws::Utils::Json::JsonView jsonValue)
SensitiveDataResult & WithCategory(CategoryT &&value)
AWS_SECURITYHUB_API SensitiveDataResult()=default
SensitiveDataResult & AddDetections(DetectionsT &&value)
SensitiveDataResult & WithTotalCount(long long value)
const Aws::Vector< SensitiveDataDetections > & GetDetections() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue