AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
LambdaEventSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9#include <aws/greengrassv2/model/LambdaEventSourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GreengrassV2 {
21namespace Model {
22
31 public:
32 AWS_GREENGRASSV2_API LambdaEventSource() = default;
33 AWS_GREENGRASSV2_API LambdaEventSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API LambdaEventSource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTopic() const { return m_topic; }
42 inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
43 template <typename TopicT = Aws::String>
44 void SetTopic(TopicT&& value) {
45 m_topicHasBeenSet = true;
46 m_topic = std::forward<TopicT>(value);
47 }
48 template <typename TopicT = Aws::String>
49 LambdaEventSource& WithTopic(TopicT&& value) {
50 SetTopic(std::forward<TopicT>(value));
51 return *this;
52 }
54
56
65 inline LambdaEventSourceType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(LambdaEventSourceType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
72 SetType(value);
73 return *this;
74 }
76 private:
77 Aws::String m_topic;
78
80 bool m_topicHasBeenSet = false;
81 bool m_typeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GreengrassV2
86} // 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