Class CfnSegmentProps.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnSegmentProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegmentProps>
- Enclosing interface:
CfnSegmentProps
@Stability(Stable)
public static final class CfnSegmentProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegmentProps>
A builder for
CfnSegmentProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnSegmentProps.getDescription()
Sets the value ofCfnSegmentProps.getName()
Sets the value ofCfnSegmentProps.getPattern()
Sets the value ofCfnSegmentProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnSegmentProps.getName()
- Parameters:
name
- A name for the segment. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnSegmentProps.getDescription()
- Parameters:
description
- An optional description for this segment.- Returns:
this
-
pattern
Sets the value ofCfnSegmentProps.getPattern()
- Parameters:
pattern
- The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax .- Returns:
this
-
tags
Sets the value ofCfnSegmentProps.getTags()
- Parameters:
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 .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSegmentProps>
- Returns:
- a new instance of
CfnSegmentProps
- Throws:
NullPointerException
- if any required attribute was not provided
-