AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CustomDetection.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/Occurrences.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
31 public:
32 AWS_MACIE2_API CustomDetection() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 CustomDetection& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
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) {
63 m_countHasBeenSet = true;
64 m_count = value;
65 }
66 inline CustomDetection& WithCount(long long value) {
67 SetCount(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 CustomDetection& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
96 inline const Occurrences& GetOccurrences() const { return m_occurrences; }
97 inline bool OccurrencesHasBeenSet() const { return m_occurrencesHasBeenSet; }
98 template <typename OccurrencesT = Occurrences>
99 void SetOccurrences(OccurrencesT&& value) {
100 m_occurrencesHasBeenSet = true;
101 m_occurrences = std::forward<OccurrencesT>(value);
102 }
103 template <typename OccurrencesT = Occurrences>
104 CustomDetection& WithOccurrences(OccurrencesT&& value) {
105 SetOccurrences(std::forward<OccurrencesT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_arn;
111
112 long long m_count{0};
113
114 Aws::String m_name;
115
116 Occurrences m_occurrences;
117 bool m_arnHasBeenSet = false;
118 bool m_countHasBeenSet = false;
119 bool m_nameHasBeenSet = false;
120 bool m_occurrencesHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Macie2
125} // 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