Class SegmentDefinitionReference.Builder
java.lang.Object
software.amazon.awscdk.services.customerprofiles.SegmentDefinitionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SegmentDefinitionReference>
- Enclosing interface:
SegmentDefinitionReference
@Stability(Stable)
public static final class SegmentDefinitionReference.Builder
extends Object
implements software.amazon.jsii.Builder<SegmentDefinitionReference>
A builder for
SegmentDefinitionReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofSegmentDefinitionReference.getDomainName()
segmentDefinitionArn
(String segmentDefinitionArn) Sets the value ofSegmentDefinitionReference.getSegmentDefinitionArn()
segmentDefinitionName
(String segmentDefinitionName) Sets the value ofSegmentDefinitionReference.getSegmentDefinitionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofSegmentDefinitionReference.getDomainName()
- Parameters:
domainName
- The DomainName of the SegmentDefinition resource. This parameter is required.- Returns:
this
-
segmentDefinitionArn
@Stability(Stable) public SegmentDefinitionReference.Builder segmentDefinitionArn(String segmentDefinitionArn) Sets the value ofSegmentDefinitionReference.getSegmentDefinitionArn()
- Parameters:
segmentDefinitionArn
- The ARN of the SegmentDefinition resource. This parameter is required.- Returns:
this
-
segmentDefinitionName
@Stability(Stable) public SegmentDefinitionReference.Builder segmentDefinitionName(String segmentDefinitionName) Sets the value ofSegmentDefinitionReference.getSegmentDefinitionName()
- Parameters:
segmentDefinitionName
- The SegmentDefinitionName of the SegmentDefinition resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SegmentDefinitionReference>
- Returns:
- a new instance of
SegmentDefinitionReference
- Throws:
NullPointerException
- if any required attribute was not provided
-