Interface ActionParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ActionParameters.Builder,ActionParameters>,SdkBuilder<ActionParameters.Builder,ActionParameters>,SdkPojo
- Enclosing class:
- ActionParameters
public static interface ActionParameters.Builder extends SdkPojo, CopyableBuilder<ActionParameters.Builder,ActionParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ActionParameters.Builderanchor(Consumer<ComponentProperty.Builder> anchor)The HTML anchor link to the location to open.ActionParameters.Builderanchor(ComponentProperty anchor)The HTML anchor link to the location to open.ActionParameters.Builderfields(Map<String,ComponentProperty> fields)A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model.default ActionParameters.Builderglobal(Consumer<ComponentProperty.Builder> global)Specifies whether the user should be signed out globally.ActionParameters.Builderglobal(ComponentProperty global)Specifies whether the user should be signed out globally.default ActionParameters.Builderid(Consumer<ComponentProperty.Builder> id)The unique ID of the component that theActionParametersapply to.ActionParameters.Builderid(ComponentProperty id)The unique ID of the component that theActionParametersapply to.ActionParameters.Buildermodel(String model)The name of the data model.default ActionParameters.Builderstate(Consumer<MutationActionSetStateParameter.Builder> state)A key-value pair that specifies the state property name and its initial value.ActionParameters.Builderstate(MutationActionSetStateParameter state)A key-value pair that specifies the state property name and its initial value.default ActionParameters.Buildertarget(Consumer<ComponentProperty.Builder> target)The element within the same component to modify when the action occurs.ActionParameters.Buildertarget(ComponentProperty target)The element within the same component to modify when the action occurs.default ActionParameters.Buildertype(Consumer<ComponentProperty.Builder> type)The type of navigation action.ActionParameters.Buildertype(ComponentProperty type)The type of navigation action.default ActionParameters.Builderurl(Consumer<ComponentProperty.Builder> url)The URL to the location to open.ActionParameters.Builderurl(ComponentProperty url)The URL to the location to open.-
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
-
type
ActionParameters.Builder type(ComponentProperty type)
The type of navigation action. Valid values are
urlandanchor. This value is required for a navigation action.- Parameters:
type- The type of navigation action. Valid values areurlandanchor. This value is required for a navigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
default ActionParameters.Builder type(Consumer<ComponentProperty.Builder> type)
The type of navigation action. Valid values are
This is a convenience method that creates an instance of theurlandanchor. This value is required for a navigation action.ComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totype(ComponentProperty).- Parameters:
type- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
type(ComponentProperty)
-
url
ActionParameters.Builder url(ComponentProperty url)
The URL to the location to open. Specify this value for a navigation action.
- Parameters:
url- The URL to the location to open. Specify this value for a navigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
url
default ActionParameters.Builder url(Consumer<ComponentProperty.Builder> url)
The URL to the location to open. Specify this value for a navigation action.
This is a convenience method that creates an instance of theComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tourl(ComponentProperty).- Parameters:
url- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
url(ComponentProperty)
-
anchor
ActionParameters.Builder anchor(ComponentProperty anchor)
The HTML anchor link to the location to open. Specify this value for a navigation action.
- Parameters:
anchor- The HTML anchor link to the location to open. Specify this value for a navigation action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anchor
default ActionParameters.Builder anchor(Consumer<ComponentProperty.Builder> anchor)
The HTML anchor link to the location to open. Specify this value for a navigation action.
This is a convenience method that creates an instance of theComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanchor(ComponentProperty).- Parameters:
anchor- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
anchor(ComponentProperty)
-
target
ActionParameters.Builder target(ComponentProperty target)
The element within the same component to modify when the action occurs.
- Parameters:
target- The element within the same component to modify when the action occurs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
default ActionParameters.Builder target(Consumer<ComponentProperty.Builder> target)
The element within the same component to modify when the action occurs.
This is a convenience method that creates an instance of theComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totarget(ComponentProperty).- Parameters:
target- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
target(ComponentProperty)
-
global
ActionParameters.Builder global(ComponentProperty global)
Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
- Parameters:
global- Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
global
default ActionParameters.Builder global(Consumer<ComponentProperty.Builder> global)
Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.
This is a convenience method that creates an instance of theComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toglobal(ComponentProperty).- Parameters:
global- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
global(ComponentProperty)
-
model
ActionParameters.Builder model(String model)
The name of the data model. Use when the action performs an operation on an Amplify DataStore model.
- Parameters:
model- The name of the data model. Use when the action performs an operation on an Amplify DataStore model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
ActionParameters.Builder id(ComponentProperty id)
The unique ID of the component that the
ActionParametersapply to.- Parameters:
id- The unique ID of the component that theActionParametersapply to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
default ActionParameters.Builder id(Consumer<ComponentProperty.Builder> id)
The unique ID of the component that the
This is a convenience method that creates an instance of theActionParametersapply to.ComponentProperty.Builderavoiding the need to create one manually viaComponentProperty.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toid(ComponentProperty).- Parameters:
id- a consumer that will call methods onComponentProperty.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
id(ComponentProperty)
-
fields
ActionParameters.Builder fields(Map<String,ComponentProperty> fields)
A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.
- Parameters:
fields- A dictionary of key-value pairs mapping Amplify Studio properties to fields in a data model. Use when the action performs an operation on an Amplify DataStore model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
ActionParameters.Builder state(MutationActionSetStateParameter state)
A key-value pair that specifies the state property name and its initial value.
- Parameters:
state- A key-value pair that specifies the state property name and its initial value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default ActionParameters.Builder state(Consumer<MutationActionSetStateParameter.Builder> state)
A key-value pair that specifies the state property name and its initial value.
This is a convenience method that creates an instance of theMutationActionSetStateParameter.Builderavoiding the need to create one manually viaMutationActionSetStateParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostate(MutationActionSetStateParameter).- Parameters:
state- a consumer that will call methods onMutationActionSetStateParameter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(MutationActionSetStateParameter)
-
-