Interface CustomAction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomAction.Builder,CustomAction>,SdkBuilder<CustomAction.Builder,CustomAction>,SdkPojo
- Enclosing class:
- CustomAction
public static interface CustomAction.Builder extends SdkPojo, CopyableBuilder<CustomAction.Builder,CustomAction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CustomAction.BuilderactionDefinition(Consumer<ActionDefinition.Builder> actionDefinition)The custom action associated with the action name.CustomAction.BuilderactionDefinition(ActionDefinition actionDefinition)The custom action associated with the action name.CustomAction.BuilderactionName(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 Detail
-
actionName
CustomAction.Builder actionName(String 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
CustomAction.Builder actionDefinition(ActionDefinition 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
default CustomAction.Builder actionDefinition(Consumer<ActionDefinition.Builder> actionDefinition)
The custom action associated with the action name.
This is a convenience method that creates an instance of theActionDefinition.Builderavoiding the need to create one manually viaActionDefinition.builder().When the
Consumercompletes,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:
actionDefinition(ActionDefinition)
-
-