Interface ActionParameters.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ActionParameters.Builder,
,ActionParameters> SdkBuilder<ActionParameters.Builder,
,ActionParameters> SdkPojo
- Enclosing class:
ActionParameters
-
Method Summary
Modifier and TypeMethodDescriptiondefault ActionParameters.Builder
anchor
(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.Builder
global
(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.Builder
The unique ID of the component that theActionParameters
apply to.id
(ComponentProperty id) The unique ID of the component that theActionParameters
apply to.The name of the data model.default ActionParameters.Builder
A 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.Builder
target
(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.Builder
The type of navigation action.type
(ComponentProperty type) The type of navigation action.default ActionParameters.Builder
The 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
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
-
type
The type of navigation action. Valid values are
url
andanchor
. This value is required for a navigation action.- Parameters:
type
- The type of navigation action. Valid values areurl
andanchor
. 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 theurl
andanchor
. This value is required for a navigation action.ComponentProperty.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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
ActionParameters
apply to.- Parameters:
id
- The unique ID of the component that theActionParameters
apply 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 theActionParameters
apply to.ComponentProperty.Builder
avoiding the need to create one manually viaComponentProperty.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaMutationActionSetStateParameter.builder()
.When the
Consumer
completes,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:
-