Class LambdaEventSource
- java.lang.Object
-
- software.amazon.awssdk.services.greengrassv2.model.LambdaEventSource
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LambdaEventSource.Builder,LambdaEventSource>
@Generated("software.amazon.awssdk:codegen") public final class LambdaEventSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LambdaEventSource.Builder,LambdaEventSource>
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLambdaEventSource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LambdaEventSource.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends LambdaEventSource.Builder>serializableBuilderClass()LambdaEventSource.BuildertoBuilder()Stringtopic()The topic to which to subscribe to receive event messages.StringtoString()Returns a string representation of this object.LambdaEventSourceTypetype()The type of event source.StringtypeAsString()The type of event source.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
topic
public final String topic()
The topic to which to subscribe to receive event messages.
- Returns:
- The topic to which to subscribe to receive event messages.
-
type
public final 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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnLambdaEventSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
LambdaEventSourceType
-
-
typeAsString
public final String typeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnLambdaEventSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
LambdaEventSourceType
-
-
toBuilder
public LambdaEventSource.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LambdaEventSource.Builder,LambdaEventSource>
-
builder
public static LambdaEventSource.Builder builder()
-
serializableBuilderClass
public static Class<? extends LambdaEventSource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-