Class CfnSegment.RecencyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.RecencyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.RecencyProperty>
- Enclosing interface:
CfnSegment.RecencyProperty
@Stability(Stable)
public static final class CfnSegment.RecencyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment.RecencyProperty>
A builder for
CfnSegment.RecencyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSegment.RecencyProperty.getDuration()recencyType(String recencyType) Sets the value ofCfnSegment.RecencyProperty.getRecencyType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
Sets the value ofCfnSegment.RecencyProperty.getDuration()- Parameters:
duration- The duration to use when determining which users have been active or inactive with your app. This parameter is required. Possible values:HR_24|DAY_7|DAY_14|DAY_30.- Returns:
this
-
recencyType
Sets the value ofCfnSegment.RecencyProperty.getRecencyType()- Parameters:
recencyType- The type of recency dimension to use for the segment. This parameter is required. 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<CfnSegment.RecencyProperty>- Returns:
- a new instance of
CfnSegment.RecencyProperty - Throws:
NullPointerException- if any required attribute was not provided
-