AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LambdaEventSource.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/model/LambdaEventSourceType.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 GreengrassV2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_GREENGRASSV2_API LambdaEventSource() = default;
38 AWS_GREENGRASSV2_API LambdaEventSource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GREENGRASSV2_API LambdaEventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTopic() const { return m_topic; }
48 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
49 template<typename TopicT = Aws::String>
50 void SetTopic(TopicT&& value) { m_topicHasBeenSet = true; m_topic = std::forward<TopicT>(value); }
51 template<typename TopicT = Aws::String>
52 LambdaEventSource& WithTopic(TopicT&& value) { SetTopic(std::forward<TopicT>(value)); return *this;}
54
56
65 inline LambdaEventSourceType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(LambdaEventSourceType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline LambdaEventSource& WithType(LambdaEventSourceType value) { SetType(value); return *this;}
70 private:
71
72 Aws::String m_topic;
73 bool m_topicHasBeenSet = false;
74
76 bool m_typeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GreengrassV2
81} // namespace Aws
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaEventSource & WithTopic(TopicT &&value)
AWS_GREENGRASSV2_API LambdaEventSource(Aws::Utils::Json::JsonView jsonValue)
void SetType(LambdaEventSourceType value)
AWS_GREENGRASSV2_API LambdaEventSource()=default
AWS_GREENGRASSV2_API LambdaEventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaEventSource & WithType(LambdaEventSourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue