Interface FormCTA.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<FormCTA.Builder,
,FormCTA> SdkBuilder<FormCTA.Builder,
,FormCTA> SdkPojo
- Enclosing class:
FormCTA
@Mutable
@NotThreadSafe
public static interface FormCTA.Builder
extends SdkPojo, CopyableBuilder<FormCTA.Builder,FormCTA>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FormCTA.Builder
cancel
(Consumer<FormButton.Builder> cancel) Displays a cancel button.cancel
(FormButton cancel) Displays a cancel button.default FormCTA.Builder
clear
(Consumer<FormButton.Builder> clear) Displays a clear button.clear
(FormButton clear) Displays a clear button.The position of the button.position
(FormButtonsPosition position) The position of the button.default FormCTA.Builder
submit
(Consumer<FormButton.Builder> submit) Displays a submit button.submit
(FormButton submit) Displays a submit button.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, sdkFieldNameToField, sdkFields
-
Method Details
-
position
The position of the button.
- Parameters:
position
- The position of the button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
position
The position of the button.
- Parameters:
position
- The position of the button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clear
Displays a clear button.
- Parameters:
clear
- Displays a clear button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clear
Displays a clear button.
This is a convenience method that creates an instance of theFormButton.Builder
avoiding the need to create one manually viaFormButton.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclear(FormButton)
.- Parameters:
clear
- a consumer that will call methods onFormButton.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
cancel
Displays a cancel button.
- Parameters:
cancel
- Displays a cancel button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cancel
Displays a cancel button.
This is a convenience method that creates an instance of theFormButton.Builder
avoiding the need to create one manually viaFormButton.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocancel(FormButton)
.- Parameters:
cancel
- a consumer that will call methods onFormButton.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
submit
Displays a submit button.
- Parameters:
submit
- Displays a submit button.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
submit
Displays a submit button.
This is a convenience method that creates an instance of theFormButton.Builder
avoiding the need to create one manually viaFormButton.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubmit(FormButton)
.- Parameters:
submit
- a consumer that will call methods onFormButton.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-