AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AutoExportPolicy.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fsx/model/EventType.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 FSx
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_FSX_API AutoExportPolicy() = default;
46
47
49
60 inline const Aws::Vector<EventType>& GetEvents() const { return m_events; }
61 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
62 template<typename EventsT = Aws::Vector<EventType>>
63 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
64 template<typename EventsT = Aws::Vector<EventType>>
65 AutoExportPolicy& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
66 inline AutoExportPolicy& AddEvents(EventType value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
68 private:
69
71 bool m_eventsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace FSx
76} // namespace Aws
AWS_FSX_API AutoExportPolicy()=default
AWS_FSX_API AutoExportPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_FSX_API AutoExportPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoExportPolicy & AddEvents(EventType value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AutoExportPolicy & WithEvents(EventsT &&value)
const Aws::Vector< EventType > & GetEvents() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue