AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
50 inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
51 inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
52 inline LambdaEventSource& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
53 inline LambdaEventSource& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
54 inline LambdaEventSource& WithTopic(const char* value) { SetTopic(value); return *this;}
56
58
67 inline const LambdaEventSourceType& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const LambdaEventSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(LambdaEventSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline LambdaEventSource& WithType(const LambdaEventSourceType& value) { SetType(value); return *this;}
72 inline LambdaEventSource& WithType(LambdaEventSourceType&& value) { SetType(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_topic;
77 bool m_topicHasBeenSet = false;
78
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace GreengrassV2
85} // namespace Aws
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
LambdaEventSource & WithType(const LambdaEventSourceType &value)
void SetType(LambdaEventSourceType &&value)
LambdaEventSource & WithType(LambdaEventSourceType &&value)
void SetType(const LambdaEventSourceType &value)
const LambdaEventSourceType & GetType() const
AWS_GREENGRASSV2_API LambdaEventSource(Aws::Utils::Json::JsonView jsonValue)
void SetTopic(const Aws::String &value)
LambdaEventSource & WithTopic(const Aws::String &value)
AWS_GREENGRASSV2_API LambdaEventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
LambdaEventSource & WithTopic(Aws::String &&value)
LambdaEventSource & WithTopic(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue