AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventSelector.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/ReadWriteType.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/DataResource.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail
25{
26namespace Model
27{
28
43 {
44 public:
45 AWS_CLOUDTRAIL_API EventSelector();
46 AWS_CLOUDTRAIL_API EventSelector(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CLOUDTRAIL_API EventSelector& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
58 inline const ReadWriteType& GetReadWriteType() const{ return m_readWriteType; }
59 inline bool ReadWriteTypeHasBeenSet() const { return m_readWriteTypeHasBeenSet; }
60 inline void SetReadWriteType(const ReadWriteType& value) { m_readWriteTypeHasBeenSet = true; m_readWriteType = value; }
61 inline void SetReadWriteType(ReadWriteType&& value) { m_readWriteTypeHasBeenSet = true; m_readWriteType = std::move(value); }
62 inline EventSelector& WithReadWriteType(const ReadWriteType& value) { SetReadWriteType(value); return *this;}
63 inline EventSelector& WithReadWriteType(ReadWriteType&& value) { SetReadWriteType(std::move(value)); return *this;}
65
67
78 inline bool GetIncludeManagementEvents() const{ return m_includeManagementEvents; }
79 inline bool IncludeManagementEventsHasBeenSet() const { return m_includeManagementEventsHasBeenSet; }
80 inline void SetIncludeManagementEvents(bool value) { m_includeManagementEventsHasBeenSet = true; m_includeManagementEvents = value; }
81 inline EventSelector& WithIncludeManagementEvents(bool value) { SetIncludeManagementEvents(value); return *this;}
83
85
103 inline const Aws::Vector<DataResource>& GetDataResources() const{ return m_dataResources; }
104 inline bool DataResourcesHasBeenSet() const { return m_dataResourcesHasBeenSet; }
105 inline void SetDataResources(const Aws::Vector<DataResource>& value) { m_dataResourcesHasBeenSet = true; m_dataResources = value; }
106 inline void SetDataResources(Aws::Vector<DataResource>&& value) { m_dataResourcesHasBeenSet = true; m_dataResources = std::move(value); }
107 inline EventSelector& WithDataResources(const Aws::Vector<DataResource>& value) { SetDataResources(value); return *this;}
108 inline EventSelector& WithDataResources(Aws::Vector<DataResource>&& value) { SetDataResources(std::move(value)); return *this;}
109 inline EventSelector& AddDataResources(const DataResource& value) { m_dataResourcesHasBeenSet = true; m_dataResources.push_back(value); return *this; }
110 inline EventSelector& AddDataResources(DataResource&& value) { m_dataResourcesHasBeenSet = true; m_dataResources.push_back(std::move(value)); return *this; }
112
114
124 inline const Aws::Vector<Aws::String>& GetExcludeManagementEventSources() const{ return m_excludeManagementEventSources; }
125 inline bool ExcludeManagementEventSourcesHasBeenSet() const { return m_excludeManagementEventSourcesHasBeenSet; }
126 inline void SetExcludeManagementEventSources(const Aws::Vector<Aws::String>& value) { m_excludeManagementEventSourcesHasBeenSet = true; m_excludeManagementEventSources = value; }
127 inline void SetExcludeManagementEventSources(Aws::Vector<Aws::String>&& value) { m_excludeManagementEventSourcesHasBeenSet = true; m_excludeManagementEventSources = std::move(value); }
130 inline EventSelector& AddExcludeManagementEventSources(const Aws::String& value) { m_excludeManagementEventSourcesHasBeenSet = true; m_excludeManagementEventSources.push_back(value); return *this; }
131 inline EventSelector& AddExcludeManagementEventSources(Aws::String&& value) { m_excludeManagementEventSourcesHasBeenSet = true; m_excludeManagementEventSources.push_back(std::move(value)); return *this; }
132 inline EventSelector& AddExcludeManagementEventSources(const char* value) { m_excludeManagementEventSourcesHasBeenSet = true; m_excludeManagementEventSources.push_back(value); return *this; }
134 private:
135
136 ReadWriteType m_readWriteType;
137 bool m_readWriteTypeHasBeenSet = false;
138
139 bool m_includeManagementEvents;
140 bool m_includeManagementEventsHasBeenSet = false;
141
142 Aws::Vector<DataResource> m_dataResources;
143 bool m_dataResourcesHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_excludeManagementEventSources;
146 bool m_excludeManagementEventSourcesHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace CloudTrail
151} // namespace Aws
void SetExcludeManagementEventSources(Aws::Vector< Aws::String > &&value)
EventSelector & WithExcludeManagementEventSources(Aws::Vector< Aws::String > &&value)
AWS_CLOUDTRAIL_API EventSelector & operator=(Aws::Utils::Json::JsonView jsonValue)
EventSelector & WithIncludeManagementEvents(bool value)
const Aws::Vector< DataResource > & GetDataResources() const
EventSelector & WithExcludeManagementEventSources(const Aws::Vector< Aws::String > &value)
EventSelector & AddDataResources(const DataResource &value)
void SetReadWriteType(const ReadWriteType &value)
void SetDataResources(Aws::Vector< DataResource > &&value)
EventSelector & AddExcludeManagementEventSources(const Aws::String &value)
EventSelector & WithDataResources(const Aws::Vector< DataResource > &value)
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API EventSelector(Aws::Utils::Json::JsonView jsonValue)
EventSelector & AddDataResources(DataResource &&value)
EventSelector & AddExcludeManagementEventSources(Aws::String &&value)
EventSelector & WithReadWriteType(ReadWriteType &&value)
void SetReadWriteType(ReadWriteType &&value)
EventSelector & AddExcludeManagementEventSources(const char *value)
const Aws::Vector< Aws::String > & GetExcludeManagementEventSources() const
void SetDataResources(const Aws::Vector< DataResource > &value)
EventSelector & WithReadWriteType(const ReadWriteType &value)
void SetExcludeManagementEventSources(const Aws::Vector< Aws::String > &value)
EventSelector & WithDataResources(Aws::Vector< DataResource > &&value)
const ReadWriteType & GetReadWriteType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue