AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
LogsConfigurationPolicy.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/cleanroomsml/model/LogRedactionConfiguration.h>
9#include <aws/cleanroomsml/model/LogType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CleanRoomsML {
23namespace Model {
24
32 public:
33 AWS_CLEANROOMSML_API LogsConfigurationPolicy() = default;
34 AWS_CLEANROOMSML_API LogsConfigurationPolicy(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetAllowedAccountIds() const { return m_allowedAccountIds; }
43 inline bool AllowedAccountIdsHasBeenSet() const { return m_allowedAccountIdsHasBeenSet; }
44 template <typename AllowedAccountIdsT = Aws::Vector<Aws::String>>
45 void SetAllowedAccountIds(AllowedAccountIdsT&& value) {
46 m_allowedAccountIdsHasBeenSet = true;
47 m_allowedAccountIds = std::forward<AllowedAccountIdsT>(value);
48 }
49 template <typename AllowedAccountIdsT = Aws::Vector<Aws::String>>
50 LogsConfigurationPolicy& WithAllowedAccountIds(AllowedAccountIdsT&& value) {
51 SetAllowedAccountIds(std::forward<AllowedAccountIdsT>(value));
52 return *this;
53 }
54 template <typename AllowedAccountIdsT = Aws::String>
55 LogsConfigurationPolicy& AddAllowedAccountIds(AllowedAccountIdsT&& value) {
56 m_allowedAccountIdsHasBeenSet = true;
57 m_allowedAccountIds.emplace_back(std::forward<AllowedAccountIdsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
68 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
69 template <typename FilterPatternT = Aws::String>
70 void SetFilterPattern(FilterPatternT&& value) {
71 m_filterPatternHasBeenSet = true;
72 m_filterPattern = std::forward<FilterPatternT>(value);
73 }
74 template <typename FilterPatternT = Aws::String>
75 LogsConfigurationPolicy& WithFilterPattern(FilterPatternT&& value) {
76 SetFilterPattern(std::forward<FilterPatternT>(value));
77 return *this;
78 }
80
82
86 inline LogType GetLogType() const { return m_logType; }
87 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
88 inline void SetLogType(LogType value) {
89 m_logTypeHasBeenSet = true;
90 m_logType = value;
91 }
93 SetLogType(value);
94 return *this;
95 }
97
99
102 inline const LogRedactionConfiguration& GetLogRedactionConfiguration() const { return m_logRedactionConfiguration; }
103 inline bool LogRedactionConfigurationHasBeenSet() const { return m_logRedactionConfigurationHasBeenSet; }
104 template <typename LogRedactionConfigurationT = LogRedactionConfiguration>
105 void SetLogRedactionConfiguration(LogRedactionConfigurationT&& value) {
106 m_logRedactionConfigurationHasBeenSet = true;
107 m_logRedactionConfiguration = std::forward<LogRedactionConfigurationT>(value);
108 }
109 template <typename LogRedactionConfigurationT = LogRedactionConfiguration>
110 LogsConfigurationPolicy& WithLogRedactionConfiguration(LogRedactionConfigurationT&& value) {
111 SetLogRedactionConfiguration(std::forward<LogRedactionConfigurationT>(value));
112 return *this;
113 }
115 private:
116 Aws::Vector<Aws::String> m_allowedAccountIds;
117
118 Aws::String m_filterPattern;
119
120 LogType m_logType{LogType::NOT_SET};
121
122 LogRedactionConfiguration m_logRedactionConfiguration;
123 bool m_allowedAccountIdsHasBeenSet = false;
124 bool m_filterPatternHasBeenSet = false;
125 bool m_logTypeHasBeenSet = false;
126 bool m_logRedactionConfigurationHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace CleanRoomsML
131} // namespace Aws
void SetLogRedactionConfiguration(LogRedactionConfigurationT &&value)
const LogRedactionConfiguration & GetLogRedactionConfiguration() const
LogsConfigurationPolicy & WithLogRedactionConfiguration(LogRedactionConfigurationT &&value)
AWS_CLEANROOMSML_API LogsConfigurationPolicy()=default
AWS_CLEANROOMSML_API LogsConfigurationPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAllowedAccountIds() const
AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const
LogsConfigurationPolicy & WithAllowedAccountIds(AllowedAccountIdsT &&value)
LogsConfigurationPolicy & AddAllowedAccountIds(AllowedAccountIdsT &&value)
LogsConfigurationPolicy & WithFilterPattern(FilterPatternT &&value)
AWS_CLEANROOMSML_API LogsConfigurationPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
LogsConfigurationPolicy & WithLogType(LogType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue