Interface CustomAction.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomAction.Builder,
,CustomAction> SdkBuilder<CustomAction.Builder,
,CustomAction> SdkPojo
- Enclosing class:
CustomAction
@Mutable
@NotThreadSafe
public static interface CustomAction.Builder
extends SdkPojo, CopyableBuilder<CustomAction.Builder,CustomAction>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CustomAction.Builder
actionDefinition
(Consumer<ActionDefinition.Builder> actionDefinition) The custom action associated with the action name.actionDefinition
(ActionDefinition actionDefinition) The custom action associated with the action name.actionName
(String actionName) The descriptive name of the custom action.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
-
actionName
The descriptive name of the custom action. You can't change the name of a custom action after you create it.
- Parameters:
actionName
- The descriptive name of the custom action. You can't change the name of a custom action after you create it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionDefinition
The custom action associated with the action name.
- Parameters:
actionDefinition
- The custom action associated with the action name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionDefinition
The custom action associated with the action name.
This is a convenience method that creates an instance of theActionDefinition.Builder
avoiding the need to create one manually viaActionDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionDefinition(ActionDefinition)
.- Parameters:
actionDefinition
- a consumer that will call methods onActionDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-