AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EventParameters.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dlm/DLM_EXPORTS.h>
10#include <aws/dlm/model/EventTypeValues.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DLM {
22namespace Model {
23
31 public:
32 AWS_DLM_API EventParameters() = default;
36
38
41 inline EventTypeValues GetEventType() const { return m_eventType; }
42 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
43 inline void SetEventType(EventTypeValues value) {
44 m_eventTypeHasBeenSet = true;
45 m_eventType = value;
46 }
48 SetEventType(value);
49 return *this;
50 }
52
54
59 inline const Aws::Vector<Aws::String>& GetSnapshotOwner() const { return m_snapshotOwner; }
60 inline bool SnapshotOwnerHasBeenSet() const { return m_snapshotOwnerHasBeenSet; }
61 template <typename SnapshotOwnerT = Aws::Vector<Aws::String>>
62 void SetSnapshotOwner(SnapshotOwnerT&& value) {
63 m_snapshotOwnerHasBeenSet = true;
64 m_snapshotOwner = std::forward<SnapshotOwnerT>(value);
65 }
66 template <typename SnapshotOwnerT = Aws::Vector<Aws::String>>
67 EventParameters& WithSnapshotOwner(SnapshotOwnerT&& value) {
68 SetSnapshotOwner(std::forward<SnapshotOwnerT>(value));
69 return *this;
70 }
71 template <typename SnapshotOwnerT = Aws::String>
72 EventParameters& AddSnapshotOwner(SnapshotOwnerT&& value) {
73 m_snapshotOwnerHasBeenSet = true;
74 m_snapshotOwner.emplace_back(std::forward<SnapshotOwnerT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::String& GetDescriptionRegex() const { return m_descriptionRegex; }
90 inline bool DescriptionRegexHasBeenSet() const { return m_descriptionRegexHasBeenSet; }
91 template <typename DescriptionRegexT = Aws::String>
92 void SetDescriptionRegex(DescriptionRegexT&& value) {
93 m_descriptionRegexHasBeenSet = true;
94 m_descriptionRegex = std::forward<DescriptionRegexT>(value);
95 }
96 template <typename DescriptionRegexT = Aws::String>
97 EventParameters& WithDescriptionRegex(DescriptionRegexT&& value) {
98 SetDescriptionRegex(std::forward<DescriptionRegexT>(value));
99 return *this;
100 }
102 private:
104
105 Aws::Vector<Aws::String> m_snapshotOwner;
106
107 Aws::String m_descriptionRegex;
108 bool m_eventTypeHasBeenSet = false;
109 bool m_snapshotOwnerHasBeenSet = false;
110 bool m_descriptionRegexHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace DLM
115} // namespace Aws
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
EventParameters & AddSnapshotOwner(SnapshotOwnerT &&value)
AWS_DLM_API EventParameters(Aws::Utils::Json::JsonView jsonValue)
EventTypeValues GetEventType() const
EventParameters & WithSnapshotOwner(SnapshotOwnerT &&value)
void SetSnapshotOwner(SnapshotOwnerT &&value)
const Aws::Vector< Aws::String > & GetSnapshotOwner() const
void SetEventType(EventTypeValues value)
AWS_DLM_API EventParameters & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API EventParameters()=default
void SetDescriptionRegex(DescriptionRegexT &&value)
EventParameters & WithEventType(EventTypeValues value)
EventParameters & WithDescriptionRegex(DescriptionRegexT &&value)
const Aws::String & GetDescriptionRegex() 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