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