Class CfnSegmentDefinition.SortAttributeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.CfnSegmentDefinition.SortAttributeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentDefinition.SortAttributeProperty>
- Enclosing interface:
CfnSegmentDefinition.SortAttributeProperty
@Stability(Stable)
public static final class CfnSegmentDefinition.SortAttributeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentDefinition.SortAttributeProperty>
A builder for
CfnSegmentDefinition.SortAttributeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getDataType()Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getName()Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getOrder()Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getName()- Parameters:
name- The name of the attribute to sort by. This parameter is required.- Returns:
this
-
order
Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getOrder()- Parameters:
order- The sort order for the attribute (ascending or descending). This parameter is required.- Returns:
this
-
dataType
@Stability(Stable) public CfnSegmentDefinition.SortAttributeProperty.Builder dataType(String dataType) Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getDataType()- Parameters:
dataType- The data type of the sort attribute (e.g., string, number, date).- Returns:
this
-
type
Sets the value ofCfnSegmentDefinition.SortAttributeProperty.getType()- Parameters:
type- The type of attribute (e.g., profile, calculated).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSegmentDefinition.SortAttributeProperty>- Returns:
- a new instance of
CfnSegmentDefinition.SortAttributeProperty - Throws:
NullPointerException- if any required attribute was not provided
-