Class CfnComponent.SortPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.SortPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.SortPropertyProperty>
- Enclosing interface:
CfnComponent.SortPropertyProperty
@Stability(Stable)
public static final class CfnComponent.SortPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.SortPropertyProperty>
A builder for
CfnComponent.SortPropertyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnComponent.SortPropertyProperty.getDirection()
Sets the value ofCfnComponent.SortPropertyProperty.getField()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
direction
Sets the value ofCfnComponent.SortPropertyProperty.getDirection()
- Parameters:
direction
- The direction of the sort, either ascending or descending. This parameter is required.- Returns:
this
-
field
Sets the value ofCfnComponent.SortPropertyProperty.getField()
- Parameters:
field
- The field to perform the sort on. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent.SortPropertyProperty>
- Returns:
- a new instance of
CfnComponent.SortPropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-