Class SegmentReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.pinpoint.SegmentReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SegmentReference>
- Enclosing interface:
SegmentReference
@Stability(Stable)
public static final class SegmentReference.Builder
extends Object
implements software.amazon.jsii.Builder<SegmentReference>
A builder for
SegmentReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.segmentArn(String segmentArn) Sets the value ofSegmentReference.getSegmentArn()Sets the value ofSegmentReference.getSegmentId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
segmentArn
Sets the value ofSegmentReference.getSegmentArn()- Parameters:
segmentArn- The ARN of the Segment resource. This parameter is required.- Returns:
this
-
segmentId
Sets the value ofSegmentReference.getSegmentId()- Parameters:
segmentId- The SegmentId of the Segment resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SegmentReference>- Returns:
- a new instance of
SegmentReference - Throws:
NullPointerException- if any required attribute was not provided
-