AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline Detection& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline Detection& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline Detection& WithArn(const char* value) { SetArn(value); return *this;}
61
63
66 inline long long GetCount() const{ return m_count; }
67 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
68 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
69 inline Detection& WithCount(long long value) { SetCount(value); return *this;}
71
73
80 inline const Aws::String& GetId() const{ return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
83 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
84 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
85 inline Detection& WithId(const Aws::String& value) { SetId(value); return *this;}
86 inline Detection& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
87 inline Detection& WithId(const char* value) { SetId(value); return *this;}
89
91
96 inline const Aws::String& GetName() const{ return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
101 inline Detection& WithName(const Aws::String& value) { SetName(value); return *this;}
102 inline Detection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
103 inline Detection& WithName(const char* value) { SetName(value); return *this;}
105
107
111 inline bool GetSuppressed() const{ return m_suppressed; }
112 inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; }
113 inline void SetSuppressed(bool value) { m_suppressedHasBeenSet = true; m_suppressed = value; }
114 inline Detection& WithSuppressed(bool value) { SetSuppressed(value); return *this;}
116
118
123 inline const DataIdentifierType& GetType() const{ return m_type; }
124 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
125 inline void SetType(const DataIdentifierType& value) { m_typeHasBeenSet = true; m_type = value; }
126 inline void SetType(DataIdentifierType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 inline Detection& WithType(const DataIdentifierType& value) { SetType(value); return *this;}
128 inline Detection& WithType(DataIdentifierType&& value) { SetType(std::move(value)); return *this;}
130 private:
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 long long m_count;
136 bool m_countHasBeenSet = false;
137
138 Aws::String m_id;
139 bool m_idHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 bool m_suppressed;
145 bool m_suppressedHasBeenSet = false;
146
147 DataIdentifierType m_type;
148 bool m_typeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Macie2
153} // namespace Aws
Detection & WithArn(const char *value)
Definition Detection.h:59
Detection & WithCount(long long value)
Definition Detection.h:69
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const Aws::String &value)
Definition Detection.h:98
Detection & WithId(Aws::String &&value)
Definition Detection.h:86
void SetArn(const Aws::String &value)
Definition Detection.h:54
Detection & WithId(const Aws::String &value)
Definition Detection.h:85
AWS_MACIE2_API Detection & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSuppressed(bool value)
Definition Detection.h:113
const DataIdentifierType & GetType() const
Definition Detection.h:123
void SetArn(const char *value)
Definition Detection.h:56
Detection & WithName(Aws::String &&value)
Definition Detection.h:102
void SetCount(long long value)
Definition Detection.h:68
void SetType(DataIdentifierType &&value)
Definition Detection.h:126
Detection & WithType(DataIdentifierType &&value)
Definition Detection.h:128
const Aws::String & GetId() const
Definition Detection.h:80
Detection & WithSuppressed(bool value)
Definition Detection.h:114
void SetName(const char *value)
Definition Detection.h:100
void SetType(const DataIdentifierType &value)
Definition Detection.h:125
Detection & WithArn(Aws::String &&value)
Definition Detection.h:58
void SetName(Aws::String &&value)
Definition Detection.h:99
void SetArn(Aws::String &&value)
Definition Detection.h:55
Detection & WithType(const DataIdentifierType &value)
Definition Detection.h:127
long long GetCount() const
Definition Detection.h:66
AWS_MACIE2_API Detection(Aws::Utils::Json::JsonView jsonValue)
Detection & WithId(const char *value)
Definition Detection.h:87
Detection & WithName(const Aws::String &value)
Definition Detection.h:101
Detection & WithName(const char *value)
Definition Detection.h:103
Detection & WithArn(const Aws::String &value)
Definition Detection.h:57
void SetId(const char *value)
Definition Detection.h:84
const Aws::String & GetName() const
Definition Detection.h:96
const Aws::String & GetArn() const
Definition Detection.h:52
void SetId(Aws::String &&value)
Definition Detection.h:83
bool SuppressedHasBeenSet() const
Definition Detection.h:112
void SetId(const Aws::String &value)
Definition Detection.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue