AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EventSource.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/EventSourceValues.h>
9#include <aws/dlm/model/EventParameters.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 DLM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DLM_API EventSource() = default;
40
41
43
47 inline EventSourceValues GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(EventSourceValues value) { m_typeHasBeenSet = true; m_type = value; }
50 inline EventSource& WithType(EventSourceValues value) { SetType(value); return *this;}
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) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
61 template<typename ParametersT = EventParameters>
62 EventSource& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
64 private:
65
67 bool m_typeHasBeenSet = false;
68
69 EventParameters m_parameters;
70 bool m_parametersHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace DLM
75} // 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:50
bool ParametersHasBeenSet() const
Definition EventSource.h:58
EventSource & WithParameters(ParametersT &&value)
Definition EventSource.h:62
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:49
void SetParameters(ParametersT &&value)
Definition EventSource.h:60
EventSourceValues GetType() const
Definition EventSource.h:47
Aws::Utils::Json::JsonValue JsonValue