Class CfnComponent.ActionParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ActionParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.ActionParametersProperty>
- Enclosing interface:
- CfnComponent.ActionParametersProperty
@Stability(Stable)
public static final class CfnComponent.ActionParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.ActionParametersProperty>
A builder for
CfnComponent.ActionParametersProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanchor(IResolvable anchor) Sets the value ofCfnComponent.ActionParametersProperty.getAnchor()Sets the value ofCfnComponent.ActionParametersProperty.getAnchor()build()Builds the configured instance.Sets the value ofCfnComponent.ActionParametersProperty.getFields()fields(IResolvable fields) Sets the value ofCfnComponent.ActionParametersProperty.getFields()global(IResolvable global) Sets the value ofCfnComponent.ActionParametersProperty.getGlobal()Sets the value ofCfnComponent.ActionParametersProperty.getGlobal()id(IResolvable id) Sets the value ofCfnComponent.ActionParametersProperty.getId()Sets the value ofCfnComponent.ActionParametersProperty.getId()Sets the value ofCfnComponent.ActionParametersProperty.getModel()state(IResolvable state) Sets the value ofCfnComponent.ActionParametersProperty.getState()Sets the value ofCfnComponent.ActionParametersProperty.getState()target(IResolvable target) Sets the value ofCfnComponent.ActionParametersProperty.getTarget()Sets the value ofCfnComponent.ActionParametersProperty.getTarget()type(IResolvable type) Sets the value ofCfnComponent.ActionParametersProperty.getType()Sets the value ofCfnComponent.ActionParametersProperty.getType()url(IResolvable url) Sets the value ofCfnComponent.ActionParametersProperty.getUrl()Sets the value ofCfnComponent.ActionParametersProperty.getUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
anchor
Sets the value ofCfnComponent.ActionParametersProperty.getAnchor()- Parameters:
anchor- The HTML anchor link to the location to open. Specify this value for a navigation action.- Returns:
this
-
anchor
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder anchor(CfnComponent.ComponentPropertyProperty anchor) Sets the value ofCfnComponent.ActionParametersProperty.getAnchor()- Parameters:
anchor- The HTML anchor link to the location to open. Specify this value for a navigation action.- Returns:
this
-
fields
Sets the value ofCfnComponent.ActionParametersProperty.getFields()- 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:
this
-
fields
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder fields(Map<String, ? extends Object> fields) Sets the value ofCfnComponent.ActionParametersProperty.getFields()- 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:
this
-
global
Sets the value ofCfnComponent.ActionParametersProperty.getGlobal()- Parameters:
global- Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.- Returns:
this
-
global
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder global(CfnComponent.ComponentPropertyProperty global) Sets the value ofCfnComponent.ActionParametersProperty.getGlobal()- Parameters:
global- Specifies whether the user should be signed out globally. Specify this value for an auth sign out action.- Returns:
this
-
id
Sets the value ofCfnComponent.ActionParametersProperty.getId()- Parameters:
id- The unique ID of the component that theActionParametersapply to.- Returns:
this
-
id
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder id(CfnComponent.ComponentPropertyProperty id) Sets the value ofCfnComponent.ActionParametersProperty.getId()- Parameters:
id- The unique ID of the component that theActionParametersapply to.- Returns:
this
-
model
Sets the value ofCfnComponent.ActionParametersProperty.getModel()- Parameters:
model- The name of the data model. Use when the action performs an operation on an Amplify DataStore model.- Returns:
this
-
state
Sets the value ofCfnComponent.ActionParametersProperty.getState()- Parameters:
state- A key-value pair that specifies the state property name and its initial value.- Returns:
this
-
state
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder state(CfnComponent.MutationActionSetStateParameterProperty state) Sets the value ofCfnComponent.ActionParametersProperty.getState()- Parameters:
state- A key-value pair that specifies the state property name and its initial value.- Returns:
this
-
target
Sets the value ofCfnComponent.ActionParametersProperty.getTarget()- Parameters:
target- The element within the same component to modify when the action occurs.- Returns:
this
-
target
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder target(CfnComponent.ComponentPropertyProperty target) Sets the value ofCfnComponent.ActionParametersProperty.getTarget()- Parameters:
target- The element within the same component to modify when the action occurs.- Returns:
this
-
type
Sets the value ofCfnComponent.ActionParametersProperty.getType()- Parameters:
type- The type of navigation action. Valid values areurlandanchor. This value is required for a navigation action.- Returns:
this
-
type
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder type(CfnComponent.ComponentPropertyProperty type) Sets the value ofCfnComponent.ActionParametersProperty.getType()- Parameters:
type- The type of navigation action. Valid values areurlandanchor. This value is required for a navigation action.- Returns:
this
-
url
Sets the value ofCfnComponent.ActionParametersProperty.getUrl()- Parameters:
url- The URL to the location to open. Specify this value for a navigation action.- Returns:
this
-
url
@Stability(Stable) public CfnComponent.ActionParametersProperty.Builder url(CfnComponent.ComponentPropertyProperty url) Sets the value ofCfnComponent.ActionParametersProperty.getUrl()- Parameters:
url- The URL to the location to open. Specify this value for a navigation action.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComponent.ActionParametersProperty>- Returns:
- a new instance of
CfnComponent.ActionParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-