AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AutoExportPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/EventType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FSx {
21namespace Model {
22
36 public:
37 AWS_FSX_API AutoExportPolicy() = default;
41
43
54 inline const Aws::Vector<EventType>& GetEvents() const { return m_events; }
55 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
56 template <typename EventsT = Aws::Vector<EventType>>
57 void SetEvents(EventsT&& value) {
58 m_eventsHasBeenSet = true;
59 m_events = std::forward<EventsT>(value);
60 }
61 template <typename EventsT = Aws::Vector<EventType>>
62 AutoExportPolicy& WithEvents(EventsT&& value) {
63 SetEvents(std::forward<EventsT>(value));
64 return *this;
65 }
67 m_eventsHasBeenSet = true;
68 m_events.push_back(value);
69 return *this;
70 }
72 private:
74 bool m_eventsHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace FSx
79} // 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