AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AutoImportPolicy.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
38 {
39 public:
40 AWS_FSX_API AutoImportPolicy() = default;
44
45
47
58 inline const Aws::Vector<EventType>& GetEvents() const { return m_events; }
59 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
60 template<typename EventsT = Aws::Vector<EventType>>
61 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
62 template<typename EventsT = Aws::Vector<EventType>>
63 AutoImportPolicy& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
64 inline AutoImportPolicy& AddEvents(EventType value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
66 private:
67
69 bool m_eventsHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace FSx
74} // 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