AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
DefaultDetection.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 DefaultDetection() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline long long GetCount() const { return m_count; }
43 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
44 inline void SetCount(long long value) {
45 m_countHasBeenSet = true;
46 m_count = value;
47 }
48 inline DefaultDetection& WithCount(long long value) {
49 SetCount(value);
50 return *this;
51 }
53
55
60 inline const Occurrences& GetOccurrences() const { return m_occurrences; }
61 inline bool OccurrencesHasBeenSet() const { return m_occurrencesHasBeenSet; }
62 template <typename OccurrencesT = Occurrences>
63 void SetOccurrences(OccurrencesT&& value) {
64 m_occurrencesHasBeenSet = true;
65 m_occurrences = std::forward<OccurrencesT>(value);
66 }
67 template <typename OccurrencesT = Occurrences>
68 DefaultDetection& WithOccurrences(OccurrencesT&& value) {
69 SetOccurrences(std::forward<OccurrencesT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 template <typename TypeT = Aws::String>
82 void SetType(TypeT&& value) {
83 m_typeHasBeenSet = true;
84 m_type = std::forward<TypeT>(value);
85 }
86 template <typename TypeT = Aws::String>
87 DefaultDetection& WithType(TypeT&& value) {
88 SetType(std::forward<TypeT>(value));
89 return *this;
90 }
92 private:
93 long long m_count{0};
94
95 Occurrences m_occurrences;
96
97 Aws::String m_type;
98 bool m_countHasBeenSet = false;
99 bool m_occurrencesHasBeenSet = false;
100 bool m_typeHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Macie2
105} // namespace Aws
DefaultDetection & WithOccurrences(OccurrencesT &&value)
void SetOccurrences(OccurrencesT &&value)
const Aws::String & GetType() const
DefaultDetection & WithCount(long long value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
DefaultDetection & WithType(TypeT &&value)
AWS_MACIE2_API DefaultDetection()=default
AWS_MACIE2_API DefaultDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Occurrences & GetOccurrences() const
AWS_MACIE2_API DefaultDetection(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue