@Generated(value="software.amazon.awssdk:codegen") public final class Payload extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Payload.Builder,Payload>
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all
attribute-value pairs that have the information about the detector model instance and the event triggered the action.
To configure the action payload, you can use contentExpression.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Payload.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Payload.Builder |
builder() |
String |
contentExpression()
The content of the payload.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Payload.Builder> |
serializableBuilderClass() |
Payload.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PayloadType |
type()
The value of the payload type can be either
STRING or JSON. |
String |
typeAsString()
The value of the payload type can be either
STRING or JSON. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String contentExpression()
The content of the payload. You can use a string expression that includes quoted strings (
'<string>'), variables ($variable.<variable-name>), input values (
$input.<input-name>.<path-to-datum>), string concatenations, and quoted strings that
contain ${} as the content. The recommended maximum size of a content expression is 1 KB.
'<string>'), variables ($variable.<variable-name>), input values (
$input.<input-name>.<path-to-datum>), string concatenations, and quoted strings
that contain ${} as the content. The recommended maximum size of a content expression is 1
KB.public final PayloadType type()
The value of the payload type can be either STRING or JSON.
If the service returns an enum value that is not available in the current SDK version, type will return
PayloadType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
STRING or JSON.PayloadTypepublic final String typeAsString()
The value of the payload type can be either STRING or JSON.
If the service returns an enum value that is not available in the current SDK version, type will return
PayloadType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
STRING or JSON.PayloadTypepublic Payload.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Payload.Builder,Payload>public static Payload.Builder builder()
public static Class<? extends Payload.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.