Class CfnSegment.GroupsProperty.Builder

java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.GroupsProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.GroupsProperty>
Enclosing interface:
CfnSegment.GroupsProperty

@Stability(Stable) public static final class CfnSegment.GroupsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnSegment.GroupsProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dimensions

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder dimensions(IResolvable dimensions)
      Parameters:
      dimensions - An array that defines the dimensions to include or exclude from the segment.
      Returns:
      this
    • dimensions

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder dimensions(List<? extends Object> dimensions)
      Parameters:
      dimensions - An array that defines the dimensions to include or exclude from the segment.
      Returns:
      this
    • sourceSegments

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder sourceSegments(IResolvable sourceSegments)
      Parameters:
      sourceSegments - The base segment to build the segment on. A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.

      You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.

      Returns:
      this
    • sourceSegments

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder sourceSegments(List<? extends Object> sourceSegments)
      Parameters:
      sourceSegments - The base segment to build the segment on. A base segment, also called a source segment , defines the initial population of endpoints for a segment. When you add dimensions to the segment, Amazon Pinpoint filters the base segment by using the dimensions that you specify.

      You can specify more than one dimensional segment or only one imported segment. If you specify an imported segment, the segment size estimate that displays on the Amazon Pinpoint console indicates the size of the imported segment without any filters applied to it.

      Returns:
      this
    • sourceType

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder sourceType(String sourceType)
      Parameters:
      sourceType - Specifies how to handle multiple base segments for the segment. For example, if you specify three base segments for the segment, whether the resulting segment is based on all, any, or none of the base segments.
      Returns:
      this
    • type

      @Stability(Stable) public CfnSegment.GroupsProperty.Builder type(String type)
      Parameters:
      type - Specifies how to handle multiple dimensions for the segment. For example, if you specify three dimensions for the segment, whether the resulting segment includes endpoints that match all, any, or none of the dimensions.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSegment.GroupsProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSegment.GroupsProperty>
      Returns:
      a new instance of CfnSegment.GroupsProperty
      Throws:
      NullPointerException - if any required attribute was not provided