AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EventSource.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/EventParameters.h>
9#include <aws/dlm/model/EventSourceValues.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DLM {
21namespace Model {
22
30 public:
31 AWS_DLM_API EventSource() = default;
35
37
41 inline EventSourceValues GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(EventSourceValues value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const EventParameters& GetParameters() const { return m_parameters; }
58 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
59 template <typename ParametersT = EventParameters>
60 void SetParameters(ParametersT&& value) {
61 m_parametersHasBeenSet = true;
62 m_parameters = std::forward<ParametersT>(value);
63 }
64 template <typename ParametersT = EventParameters>
65 EventSource& WithParameters(ParametersT&& value) {
66 SetParameters(std::forward<ParametersT>(value));
67 return *this;
68 }
70 private:
72
73 EventParameters m_parameters;
74 bool m_typeHasBeenSet = false;
75 bool m_parametersHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DLM
80} // namespace Aws
const EventParameters & GetParameters() const
Definition EventSource.h:57
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
EventSource & WithType(EventSourceValues value)
Definition EventSource.h:47
bool ParametersHasBeenSet() const
Definition EventSource.h:58
EventSource & WithParameters(ParametersT &&value)
Definition EventSource.h:65
AWS_DLM_API EventSource(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API EventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API EventSource()=default
void SetType(EventSourceValues value)
Definition EventSource.h:43
void SetParameters(ParametersT &&value)
Definition EventSource.h:60
EventSourceValues GetType() const
Definition EventSource.h:41
Aws::Utils::Json::JsonValue JsonValue