AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Detection.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/model/DataIdentifierType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Macie2
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_MACIE2_API Detection() = default;
41 AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue);
43 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetArn() const { return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 template<typename ArnT = Aws::String>
55 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
56 template<typename ArnT = Aws::String>
57 Detection& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_countHasBeenSet = true; m_count = value; }
67 inline Detection& WithCount(long long value) { SetCount(value); return *this;}
69
71
78 inline const Aws::String& GetId() const { return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 template<typename IdT = Aws::String>
81 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
82 template<typename IdT = Aws::String>
83 Detection& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
85
87
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template<typename NameT = Aws::String>
95 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
96 template<typename NameT = Aws::String>
97 Detection& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
99
101
106 inline bool GetSuppressed() const { return m_suppressed; }
107 inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; }
108 inline void SetSuppressed(bool value) { m_suppressedHasBeenSet = true; m_suppressed = value; }
109 inline Detection& WithSuppressed(bool value) { SetSuppressed(value); return *this;}
111
113
118 inline DataIdentifierType GetType() const { return m_type; }
119 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
120 inline void SetType(DataIdentifierType value) { m_typeHasBeenSet = true; m_type = value; }
121 inline Detection& WithType(DataIdentifierType value) { SetType(value); return *this;}
123 private:
124
125 Aws::String m_arn;
126 bool m_arnHasBeenSet = false;
127
128 long long m_count{0};
129 bool m_countHasBeenSet = false;
130
131 Aws::String m_id;
132 bool m_idHasBeenSet = false;
133
134 Aws::String m_name;
135 bool m_nameHasBeenSet = false;
136
137 bool m_suppressed{false};
138 bool m_suppressedHasBeenSet = false;
139
141 bool m_typeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Macie2
146} // namespace Aws
Detection & WithCount(long long value)
Definition Detection.h:67
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
Detection & WithType(DataIdentifierType value)
Definition Detection.h:121
AWS_MACIE2_API Detection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSuppressed(bool value)
Definition Detection.h:108
void SetId(IdT &&value)
Definition Detection.h:81
void SetArn(ArnT &&value)
Definition Detection.h:55
void SetCount(long long value)
Definition Detection.h:66
Detection & WithName(NameT &&value)
Definition Detection.h:97
const Aws::String & GetId() const
Definition Detection.h:78
void SetType(DataIdentifierType value)
Definition Detection.h:120
Detection & WithSuppressed(bool value)
Definition Detection.h:109
DataIdentifierType GetType() const
Definition Detection.h:118
long long GetCount() const
Definition Detection.h:64
AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue)
Detection & WithId(IdT &&value)
Definition Detection.h:83
const Aws::String & GetName() const
Definition Detection.h:92
void SetName(NameT &&value)
Definition Detection.h:95
const Aws::String & GetArn() const
Definition Detection.h:52
Detection & WithArn(ArnT &&value)
Definition Detection.h:57
bool SuppressedHasBeenSet() const
Definition Detection.h:107
AWS_MACIE2_API Detection()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue