Class CfnSegmentPropsMixin.RecencyProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnSegmentPropsMixin.RecencyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentPropsMixin.RecencyProperty>
- Enclosing interface:
CfnSegmentPropsMixin.RecencyProperty
@Stability(Stable)
public static final class CfnSegmentPropsMixin.RecencyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentPropsMixin.RecencyProperty>
A builder for
CfnSegmentPropsMixin.RecencyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSegmentPropsMixin.RecencyProperty.getDuration()recencyType(String recencyType) Sets the value ofCfnSegmentPropsMixin.RecencyProperty.getRecencyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
Sets the value ofCfnSegmentPropsMixin.RecencyProperty.getDuration()- Parameters:
duration- The duration to use when determining which users have been active or inactive with your app. Possible values:HR_24|DAY_7|DAY_14|DAY_30.- Returns:
this
-
recencyType
@Stability(Stable) public CfnSegmentPropsMixin.RecencyProperty.Builder recencyType(String recencyType) Sets the value ofCfnSegmentPropsMixin.RecencyProperty.getRecencyType()- Parameters:
recencyType- The type of recency dimension to use for the segment. Valid values are:ACTIVEandINACTIVE. If the value isACTIVE, the segment includes users who have used your app within the specified duration are included in the segment. If the value isINACTIVE, the segment includes users who haven't used your app within the specified duration are included in the segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSegmentPropsMixin.RecencyProperty>- Returns:
- a new instance of
CfnSegmentPropsMixin.RecencyProperty - Throws:
NullPointerException- if any required attribute was not provided
-