@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LambdaEventSource extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
LambdaEventSource() |
Modifier and Type | Method and Description |
---|---|
LambdaEventSource |
clone() |
boolean |
equals(Object obj) |
String |
getTopic()
The topic to which to subscribe to receive event messages.
|
String |
getType()
The type of event source.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setTopic(String topic)
The topic to which to subscribe to receive event messages.
|
void |
setType(String type)
The type of event source.
|
String |
toString()
Returns a string representation of this object.
|
LambdaEventSource |
withTopic(String topic)
The topic to which to subscribe to receive event messages.
|
LambdaEventSource |
withType(LambdaEventSourceType type)
The type of event source.
|
LambdaEventSource |
withType(String type)
The type of event source.
|
public void setTopic(String topic)
The topic to which to subscribe to receive event messages.
topic
- The topic to which to subscribe to receive event messages.public String getTopic()
The topic to which to subscribe to receive event messages.
public LambdaEventSource withTopic(String topic)
The topic to which to subscribe to receive event messages.
topic
- The topic to which to subscribe to receive event messages.public void setType(String type)
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.
type
- 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.
LambdaEventSourceType
public String getType()
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.
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.
LambdaEventSourceType
public LambdaEventSource withType(String type)
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.
type
- 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.
LambdaEventSourceType
public LambdaEventSource withType(LambdaEventSourceType type)
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.
type
- 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.
LambdaEventSourceType
public String toString()
toString
in class Object
Object.toString()
public LambdaEventSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.