AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EventParameters.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/EventTypeValues.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DLM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DLM_API EventParameters() = default;
41
42
44
47 inline EventTypeValues GetEventType() const { return m_eventType; }
48 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
49 inline void SetEventType(EventTypeValues value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
50 inline EventParameters& WithEventType(EventTypeValues value) { SetEventType(value); return *this;}
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) { m_snapshotOwnerHasBeenSet = true; m_snapshotOwner = std::forward<SnapshotOwnerT>(value); }
63 template<typename SnapshotOwnerT = Aws::Vector<Aws::String>>
64 EventParameters& WithSnapshotOwner(SnapshotOwnerT&& value) { SetSnapshotOwner(std::forward<SnapshotOwnerT>(value)); return *this;}
65 template<typename SnapshotOwnerT = Aws::String>
66 EventParameters& AddSnapshotOwner(SnapshotOwnerT&& value) { m_snapshotOwnerHasBeenSet = true; m_snapshotOwner.emplace_back(std::forward<SnapshotOwnerT>(value)); return *this; }
68
70
79 inline const Aws::String& GetDescriptionRegex() const { return m_descriptionRegex; }
80 inline bool DescriptionRegexHasBeenSet() const { return m_descriptionRegexHasBeenSet; }
81 template<typename DescriptionRegexT = Aws::String>
82 void SetDescriptionRegex(DescriptionRegexT&& value) { m_descriptionRegexHasBeenSet = true; m_descriptionRegex = std::forward<DescriptionRegexT>(value); }
83 template<typename DescriptionRegexT = Aws::String>
84 EventParameters& WithDescriptionRegex(DescriptionRegexT&& value) { SetDescriptionRegex(std::forward<DescriptionRegexT>(value)); return *this;}
86 private:
87
89 bool m_eventTypeHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_snapshotOwner;
92 bool m_snapshotOwnerHasBeenSet = false;
93
94 Aws::String m_descriptionRegex;
95 bool m_descriptionRegexHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace DLM
100} // 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