Class CfnSegment.Builder

java.lang.Object
software.amazon.awscdk.services.evidently.CfnSegment.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment>
Enclosing class:
CfnSegment

@Stability(Stable) public static final class CfnSegment.Builder extends Object implements software.amazon.jsii.Builder<CfnSegment>
A fluent builder for CfnSegment.
  • Method Details

    • create

      @Stability(Stable) public static CfnSegment.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnSegment.Builder.
    • name

      @Stability(Stable) public CfnSegment.Builder name(String name)
      A name for the segment.

      Parameters:
      name - A name for the segment. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnSegment.Builder description(String description)
      An optional description for this segment.

      Parameters:
      description - An optional description for this segment. This parameter is required.
      Returns:
      this
    • pattern

      @Stability(Stable) public CfnSegment.Builder pattern(String pattern)
      The pattern to use for the segment.

      For more information about pattern syntax, see Segment rule pattern syntax .

      Parameters:
      pattern - The pattern to use for the segment. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnSegment.Builder tags(List<? extends CfnTag> tags)
      Assigns one or more tags (key-value pairs) to the feature.

      Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

      Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.

      You can associate as many as 50 tags with a feature.

      For more information, see Tagging AWS resources .

      Parameters:
      tags - Assigns one or more tags (key-value pairs) to the feature. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnSegment build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnSegment>
      Returns:
      a newly built instance of CfnSegment.