public static final class CfnSegment.Builder
extends java.lang.Object
CfnSegment
.Modifier and Type | Method and Description |
---|---|
CfnSegment |
build() |
static CfnSegment.Builder |
create(Construct scope,
java.lang.String id) |
CfnSegment.Builder |
description(java.lang.String description)
An optional description for this segment.
|
CfnSegment.Builder |
name(java.lang.String name)
A name for the segment.
|
CfnSegment.Builder |
pattern(java.lang.String pattern)
The pattern to use for the segment.
|
CfnSegment.Builder |
tags(java.util.List<? extends CfnTag> tags)
Assigns one or more tags (key-value pairs) to the feature.
|
public static CfnSegment.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnSegment.Builder
.public CfnSegment.Builder name(java.lang.String name)
name
- A name for the segment. This parameter is required.this
public CfnSegment.Builder description(java.lang.String description)
description
- An optional description for this segment. This parameter is required.this
public CfnSegment.Builder pattern(java.lang.String pattern)
For more information about pattern syntax, see Segment rule pattern syntax .
pattern
- The pattern to use for the segment. This parameter is required.this
public CfnSegment.Builder tags(java.util.List<? extends CfnTag> tags)
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 .
tags
- Assigns one or more tags (key-value pairs) to the feature. This parameter is required.this
public CfnSegment build()