AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomDetection.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/Occurrences.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
35 {
36 public:
37 AWS_MACIE2_API CustomDetection();
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline CustomDetection& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline CustomDetection& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline CustomDetection& WithArn(const char* value) { SetArn(value); return *this;}
56
58
62 inline long long GetCount() const{ return m_count; }
63 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
64 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
65 inline CustomDetection& WithCount(long long value) { SetCount(value); return *this;}
67
69
72 inline const Aws::String& GetName() const{ return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
75 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
76 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
77 inline CustomDetection& WithName(const Aws::String& value) { SetName(value); return *this;}
78 inline CustomDetection& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 inline CustomDetection& WithName(const char* value) { SetName(value); return *this;}
81
83
88 inline const Occurrences& GetOccurrences() const{ return m_occurrences; }
89 inline bool OccurrencesHasBeenSet() const { return m_occurrencesHasBeenSet; }
90 inline void SetOccurrences(const Occurrences& value) { m_occurrencesHasBeenSet = true; m_occurrences = value; }
91 inline void SetOccurrences(Occurrences&& value) { m_occurrencesHasBeenSet = true; m_occurrences = std::move(value); }
92 inline CustomDetection& WithOccurrences(const Occurrences& value) { SetOccurrences(value); return *this;}
93 inline CustomDetection& WithOccurrences(Occurrences&& value) { SetOccurrences(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_arn;
98 bool m_arnHasBeenSet = false;
99
100 long long m_count;
101 bool m_countHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 Occurrences m_occurrences;
107 bool m_occurrencesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Macie2
112} // namespace Aws
AWS_MACIE2_API CustomDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomDetection & WithArn(const char *value)
CustomDetection & WithName(const Aws::String &value)
const Aws::String & GetArn() const
CustomDetection & WithOccurrences(const Occurrences &value)
void SetOccurrences(Occurrences &&value)
AWS_MACIE2_API CustomDetection(Aws::Utils::Json::JsonView jsonValue)
CustomDetection & WithOccurrences(Occurrences &&value)
CustomDetection & WithArn(Aws::String &&value)
CustomDetection & WithCount(long long value)
void SetArn(const Aws::String &value)
void SetArn(Aws::String &&value)
void SetName(const Aws::String &value)
void SetName(Aws::String &&value)
void SetOccurrences(const Occurrences &value)
CustomDetection & WithName(const char *value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Occurrences & GetOccurrences() const
CustomDetection & WithName(Aws::String &&value)
CustomDetection & WithArn(const Aws::String &value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue