AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
AllowListCriteria.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/S3WordsList.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 AllowListCriteria() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetRegex() const { return m_regex; }
43 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
44 template <typename RegexT = Aws::String>
45 void SetRegex(RegexT&& value) {
46 m_regexHasBeenSet = true;
47 m_regex = std::forward<RegexT>(value);
48 }
49 template <typename RegexT = Aws::String>
50 AllowListCriteria& WithRegex(RegexT&& value) {
51 SetRegex(std::forward<RegexT>(value));
52 return *this;
53 }
55
57
61 inline const S3WordsList& GetS3WordsList() const { return m_s3WordsList; }
62 inline bool S3WordsListHasBeenSet() const { return m_s3WordsListHasBeenSet; }
63 template <typename S3WordsListT = S3WordsList>
64 void SetS3WordsList(S3WordsListT&& value) {
65 m_s3WordsListHasBeenSet = true;
66 m_s3WordsList = std::forward<S3WordsListT>(value);
67 }
68 template <typename S3WordsListT = S3WordsList>
69 AllowListCriteria& WithS3WordsList(S3WordsListT&& value) {
70 SetS3WordsList(std::forward<S3WordsListT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_regex;
76
77 S3WordsList m_s3WordsList;
78 bool m_regexHasBeenSet = false;
79 bool m_s3WordsListHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Macie2
84} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AllowListCriteria & WithS3WordsList(S3WordsListT &&value)
const S3WordsList & GetS3WordsList() const
AWS_MACIE2_API AllowListCriteria(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRegex() const
AllowListCriteria & WithRegex(RegexT &&value)
AWS_MACIE2_API AllowListCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API AllowListCriteria()=default
void SetS3WordsList(S3WordsListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue