AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Detection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/DataIdentifierType.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
33class Detection {
34 public:
35 AWS_MACIE2_API Detection() = default;
36 AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 Detection& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline long long GetCount() const { return m_count; }
65 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
66 inline void SetCount(long long value) {
67 m_countHasBeenSet = true;
68 m_count = value;
69 }
70 inline Detection& WithCount(long long value) {
71 SetCount(value);
72 return *this;
73 }
75
77
84 inline const Aws::String& GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 template <typename IdT = Aws::String>
87 void SetId(IdT&& value) {
88 m_idHasBeenSet = true;
89 m_id = std::forward<IdT>(value);
90 }
91 template <typename IdT = Aws::String>
92 Detection& WithId(IdT&& value) {
93 SetId(std::forward<IdT>(value));
94 return *this;
95 }
97
99
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
112 Detection& WithName(NameT&& value) {
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
124 inline bool GetSuppressed() const { return m_suppressed; }
125 inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; }
126 inline void SetSuppressed(bool value) {
127 m_suppressedHasBeenSet = true;
128 m_suppressed = value;
129 }
130 inline Detection& WithSuppressed(bool value) {
131 SetSuppressed(value);
132 return *this;
133 }
135
137
142 inline DataIdentifierType GetType() const { return m_type; }
143 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
144 inline void SetType(DataIdentifierType value) {
145 m_typeHasBeenSet = true;
146 m_type = value;
147 }
149 SetType(value);
150 return *this;
151 }
153 private:
154 Aws::String m_arn;
155
156 long long m_count{0};
157
158 Aws::String m_id;
159
160 Aws::String m_name;
161
162 bool m_suppressed{false};
163
165 bool m_arnHasBeenSet = false;
166 bool m_countHasBeenSet = false;
167 bool m_idHasBeenSet = false;
168 bool m_nameHasBeenSet = false;
169 bool m_suppressedHasBeenSet = false;
170 bool m_typeHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Macie2
175} // namespace Aws
Detection & WithCount(long long value)
Definition Detection.h:70
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Detection & WithType(DataIdentifierType value)
Definition Detection.h:148
AWS_MACIE2_API Detection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSuppressed(bool value)
Definition Detection.h:126
void SetId(IdT &&value)
Definition Detection.h:87
void SetArn(ArnT &&value)
Definition Detection.h:49
void SetCount(long long value)
Definition Detection.h:66
Detection & WithName(NameT &&value)
Definition Detection.h:112
const Aws::String & GetId() const
Definition Detection.h:84
void SetType(DataIdentifierType value)
Definition Detection.h:144
Detection & WithSuppressed(bool value)
Definition Detection.h:130
DataIdentifierType GetType() const
Definition Detection.h:142
long long GetCount() const
Definition Detection.h:64
AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue)
Detection & WithId(IdT &&value)
Definition Detection.h:92
const Aws::String & GetName() const
Definition Detection.h:104
void SetName(NameT &&value)
Definition Detection.h:107
const Aws::String & GetArn() const
Definition Detection.h:46
Detection & WithArn(ArnT &&value)
Definition Detection.h:54
bool SuppressedHasBeenSet() const
Definition Detection.h:125
AWS_MACIE2_API Detection()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue