AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LogsConfigurationPolicy.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CleanRoomsML
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLEANROOMSML_API LogsConfigurationPolicy() = default;
37 AWS_CLEANROOMSML_API LogsConfigurationPolicy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetAllowedAccountIds() const { return m_allowedAccountIds; }
47 inline bool AllowedAccountIdsHasBeenSet() const { return m_allowedAccountIdsHasBeenSet; }
48 template<typename AllowedAccountIdsT = Aws::Vector<Aws::String>>
49 void SetAllowedAccountIds(AllowedAccountIdsT&& value) { m_allowedAccountIdsHasBeenSet = true; m_allowedAccountIds = std::forward<AllowedAccountIdsT>(value); }
50 template<typename AllowedAccountIdsT = Aws::Vector<Aws::String>>
51 LogsConfigurationPolicy& WithAllowedAccountIds(AllowedAccountIdsT&& value) { SetAllowedAccountIds(std::forward<AllowedAccountIdsT>(value)); return *this;}
52 template<typename AllowedAccountIdsT = Aws::String>
53 LogsConfigurationPolicy& AddAllowedAccountIds(AllowedAccountIdsT&& value) { m_allowedAccountIdsHasBeenSet = true; m_allowedAccountIds.emplace_back(std::forward<AllowedAccountIdsT>(value)); return *this; }
55
57
61 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
62 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
63 template<typename FilterPatternT = Aws::String>
64 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
65 template<typename FilterPatternT = Aws::String>
66 LogsConfigurationPolicy& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
68 private:
69
70 Aws::Vector<Aws::String> m_allowedAccountIds;
71 bool m_allowedAccountIdsHasBeenSet = false;
72
73 Aws::String m_filterPattern;
74 bool m_filterPatternHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CleanRoomsML
79} // namespace Aws
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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue