/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an event source for an Lambda function. The event
* source defines the topics on which this Lambda function subscribes to receive
* messages that run the function.See Also:
AWS
* API Reference
The topic to which to subscribe to receive event messages.
*/ inline const Aws::String& GetTopic() const{ return m_topic; } /** *The topic to which to subscribe to receive event messages.
*/ inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } /** *The topic to which to subscribe to receive event messages.
*/ inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } /** *The topic to which to subscribe to receive event messages.
*/ inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } /** *The topic to which to subscribe to receive event messages.
*/ inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } /** *The topic to which to subscribe to receive event messages.
*/ inline LambdaEventSource& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} /** *The topic to which to subscribe to receive event messages.
*/ inline LambdaEventSource& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} /** *The topic to which to subscribe to receive event messages.
*/ inline LambdaEventSource& WithTopic(const char* value) { SetTopic(value); return *this;} /** *The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.
The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.
The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.
The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.
The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.
The type of event source. Choose from the following options:
PUB_SUB
– Subscribe to local publish/subscribe messages. This
* event source type doesn't support MQTT wildcards (+
and
* #
) in the event source topic.
* IOT_CORE
– Subscribe to Amazon Web Services IoT Core MQTT messages.
* This event source type supports MQTT wildcards (+
and
* #
) in the event source topic.