Interface FulfillmentUpdateResponseSpecification.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FulfillmentUpdateResponseSpecification.Builder,FulfillmentUpdateResponseSpecification>,SdkBuilder<FulfillmentUpdateResponseSpecification.Builder,FulfillmentUpdateResponseSpecification>,SdkPojo
- Enclosing class:
- FulfillmentUpdateResponseSpecification
public static interface FulfillmentUpdateResponseSpecification.Builder extends SdkPojo, CopyableBuilder<FulfillmentUpdateResponseSpecification.Builder,FulfillmentUpdateResponseSpecification>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FulfillmentUpdateResponseSpecification.BuilderallowInterrupt(Boolean allowInterrupt)Determines whether the user can interrupt an update message while it is playing.FulfillmentUpdateResponseSpecification.BuilderfrequencyInSeconds(Integer frequencyInSeconds)The frequency that a message is sent to the user.FulfillmentUpdateResponseSpecification.BuildermessageGroups(Collection<MessageGroup> messageGroups)1 - 5 message groups that contain update messages.FulfillmentUpdateResponseSpecification.BuildermessageGroups(Consumer<MessageGroup.Builder>... messageGroups)1 - 5 message groups that contain update messages.FulfillmentUpdateResponseSpecification.BuildermessageGroups(MessageGroup... messageGroups)1 - 5 message groups that contain update messages.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
frequencyInSeconds
FulfillmentUpdateResponseSpecification.Builder frequencyInSeconds(Integer frequencyInSeconds)
The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.
- Parameters:
frequencyInSeconds- The frequency that a message is sent to the user. When the period ends, Amazon Lex chooses a message from the message groups and plays it to the user. If the fulfillment Lambda returns before the first period ends, an update message is not played to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
FulfillmentUpdateResponseSpecification.Builder messageGroups(Collection<MessageGroup> messageGroups)
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
- Parameters:
messageGroups- 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
FulfillmentUpdateResponseSpecification.Builder messageGroups(MessageGroup... messageGroups)
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
- Parameters:
messageGroups- 1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageGroups
FulfillmentUpdateResponseSpecification.Builder messageGroups(Consumer<MessageGroup.Builder>... messageGroups)
1 - 5 message groups that contain update messages. Amazon Lex chooses one of the messages to play to the user.
This is a convenience method that creates an instance of theMessageGroup.Builderavoiding the need to create one manually viaMessageGroup.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messageGroups(List.) - Parameters:
messageGroups- a consumer that will call methods onMessageGroup.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messageGroups(java.util.Collection)
-
allowInterrupt
FulfillmentUpdateResponseSpecification.Builder allowInterrupt(Boolean allowInterrupt)
Determines whether the user can interrupt an update message while it is playing.
- Parameters:
allowInterrupt- Determines whether the user can interrupt an update message while it is playing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-