Class CfnSegment.SourceSegmentsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnSegment.SourceSegmentsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSegment.SourceSegmentsProperty>
- Enclosing interface:
- CfnSegment.SourceSegmentsProperty
@Stability(Stable)
public static final class CfnSegment.SourceSegmentsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSegment.SourceSegmentsProperty>
A builder for
CfnSegment.SourceSegmentsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnSegment.SourceSegmentsProperty.getId()Sets the value ofCfnSegment.SourceSegmentsProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnSegment.SourceSegmentsProperty.getId()- Parameters:
id- The unique identifier for the source segment. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnSegment.SourceSegmentsProperty.getVersion()- Parameters:
version- The version number of the source segment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSegment.SourceSegmentsProperty>- Returns:
- a new instance of
CfnSegment.SourceSegmentsProperty - Throws:
NullPointerException- if any required attribute was not provided
-