AWS SDK for C++  1.9.161
AWS SDK for C++
LambdaEventSource.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GreengrassV2
23 {
24 namespace Model
25 {
26 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetTopic() const{ return m_topic; }
47 
51  inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; }
52 
56  inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; }
57 
61  inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); }
62 
66  inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); }
67 
71  inline LambdaEventSource& WithTopic(const Aws::String& value) { SetTopic(value); return *this;}
72 
76  inline LambdaEventSource& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;}
77 
81  inline LambdaEventSource& WithTopic(const char* value) { SetTopic(value); return *this;}
82 
83 
93  inline const LambdaEventSourceType& GetType() const{ return m_type; }
94 
104  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 
115  inline void SetType(const LambdaEventSourceType& value) { m_typeHasBeenSet = true; m_type = value; }
116 
126  inline void SetType(LambdaEventSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
127 
137  inline LambdaEventSource& WithType(const LambdaEventSourceType& value) { SetType(value); return *this;}
138 
148  inline LambdaEventSource& WithType(LambdaEventSourceType&& value) { SetType(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_topic;
153  bool m_topicHasBeenSet;
154 
155  LambdaEventSourceType m_type;
156  bool m_typeHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace GreengrassV2
161 } // namespace Aws
LambdaEventSourceType.h
Aws::GreengrassV2::Model::LambdaEventSource::SetTopic
void SetTopic(Aws::String &&value)
Definition: LambdaEventSource.h:61
Aws::GreengrassV2::Model::LambdaEventSource::SetTopic
void SetTopic(const char *value)
Definition: LambdaEventSource.h:66
Aws::GreengrassV2::Model::LambdaEventSource::LambdaEventSource
LambdaEventSource()
Aws::GreengrassV2::Model::LambdaEventSource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::LambdaEventSource::SetType
void SetType(const LambdaEventSourceType &value)
Definition: LambdaEventSource.h:115
Aws::GreengrassV2::Model::LambdaEventSource::LambdaEventSource
LambdaEventSource(Aws::Utils::Json::JsonView jsonValue)
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::LambdaEventSource::TopicHasBeenSet
bool TopicHasBeenSet() const
Definition: LambdaEventSource.h:51
Aws::GreengrassV2::Model::LambdaEventSourceType
LambdaEventSourceType
Definition: LambdaEventSourceType.h:17
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::LambdaEventSource::GetTopic
const Aws::String & GetTopic() const
Definition: LambdaEventSource.h:46
Aws::GreengrassV2::Model::LambdaEventSource::operator=
LambdaEventSource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::LambdaEventSource::WithTopic
LambdaEventSource & WithTopic(const Aws::String &value)
Definition: LambdaEventSource.h:71
Aws::GreengrassV2::Model::LambdaEventSource::SetTopic
void SetTopic(const Aws::String &value)
Definition: LambdaEventSource.h:56
Aws::GreengrassV2::Model::LambdaEventSource::WithTopic
LambdaEventSource & WithTopic(Aws::String &&value)
Definition: LambdaEventSource.h:76
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::GreengrassV2::Model::LambdaEventSource::GetType
const LambdaEventSourceType & GetType() const
Definition: LambdaEventSource.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::LambdaEventSource::WithType
LambdaEventSource & WithType(const LambdaEventSourceType &value)
Definition: LambdaEventSource.h:137
Aws::GreengrassV2::Model::LambdaEventSource::SetType
void SetType(LambdaEventSourceType &&value)
Definition: LambdaEventSource.h:126
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::LambdaEventSource
Definition: LambdaEventSource.h:35
Aws::GreengrassV2::Model::LambdaEventSource::WithType
LambdaEventSource & WithType(LambdaEventSourceType &&value)
Definition: LambdaEventSource.h:148
Aws::GreengrassV2::Model::LambdaEventSource::WithTopic
LambdaEventSource & WithTopic(const char *value)
Definition: LambdaEventSource.h:81
Aws::GreengrassV2::Model::LambdaEventSource::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: LambdaEventSource.h:104