Interface ActionParameters.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ActionParameters.Builder,,ActionParameters> SdkBuilder<ActionParameters.Builder,,ActionParameters> SdkPojo
- Enclosing class:
ActionParameters
-
Method Summary
Modifier and TypeMethodDescriptiondefault ActionParameters.Builderanchor(Consumer<ComponentProperty.Builder> anchor) The HTML anchor link to the location to open.anchor(ComponentProperty anchor) The HTML anchor link to the location to open.fields(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.global(ComponentProperty global) Specifies whether the user should be signed out globally.default ActionParameters.BuilderThe unique ID of the component that theActionParametersapply to.id(ComponentProperty id) The unique ID of the component that theActionParametersapply to.The name of the data model.default ActionParameters.BuilderA key-value pair that specifies the state property name and its initial value.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.target(ComponentProperty target) The element within the same component to modify when the action occurs.default ActionParameters.BuilderThe type of navigation action.type(ComponentProperty type) The type of navigation action.default ActionParameters.BuilderThe URL to the location to open.url(ComponentProperty url) The URL to the location to open.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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:
-
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
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:
-
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
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:
-
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
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:
-
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
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:
-
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
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
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:
-
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
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
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:
-