AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 CustomDetection& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
60 inline long long GetCount() const { return m_count; }
61 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
62 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
63 inline CustomDetection& WithCount(long long value) { SetCount(value); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 CustomDetection& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
84 inline const Occurrences& GetOccurrences() const { return m_occurrences; }
85 inline bool OccurrencesHasBeenSet() const { return m_occurrencesHasBeenSet; }
86 template<typename OccurrencesT = Occurrences>
87 void SetOccurrences(OccurrencesT&& value) { m_occurrencesHasBeenSet = true; m_occurrences = std::forward<OccurrencesT>(value); }
88 template<typename OccurrencesT = Occurrences>
89 CustomDetection& WithOccurrences(OccurrencesT&& value) { SetOccurrences(std::forward<OccurrencesT>(value)); return *this;}
91 private:
92
93 Aws::String m_arn;
94 bool m_arnHasBeenSet = false;
95
96 long long m_count{0};
97 bool m_countHasBeenSet = false;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 Occurrences m_occurrences;
103 bool m_occurrencesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Macie2
108} // namespace Aws
CustomDetection & WithOccurrences(OccurrencesT &&value)
AWS_MACIE2_API CustomDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
AWS_MACIE2_API CustomDetection(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API CustomDetection()=default
CustomDetection & WithCount(long long value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Occurrences & GetOccurrences() const
CustomDetection & WithArn(ArnT &&value)
CustomDetection & WithName(NameT &&value)
void SetOccurrences(OccurrencesT &&value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue