AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AutoImportPolicy.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
34 public:
35 AWS_FSX_API AutoImportPolicy() = default;
39
41
52 inline const Aws::Vector<EventType>& GetEvents() const { return m_events; }
53 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
54 template <typename EventsT = Aws::Vector<EventType>>
55 void SetEvents(EventsT&& value) {
56 m_eventsHasBeenSet = true;
57 m_events = std::forward<EventsT>(value);
58 }
59 template <typename EventsT = Aws::Vector<EventType>>
60 AutoImportPolicy& WithEvents(EventsT&& value) {
61 SetEvents(std::forward<EventsT>(value));
62 return *this;
63 }
65 m_eventsHasBeenSet = true;
66 m_events.push_back(value);
67 return *this;
68 }
70 private:
72 bool m_eventsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace FSx
77} // namespace Aws
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API AutoImportPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EventType > & GetEvents() const
AWS_FSX_API AutoImportPolicy()=default
AWS_FSX_API AutoImportPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoImportPolicy & AddEvents(EventType value)
AutoImportPolicy & WithEvents(EventsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue