Class CfnContext.SourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnContext.SourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContext.SourceProperty>
- Enclosing interface:
CfnContext.SourceProperty
@Stability(Stable)
public static final class CfnContext.SourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContext.SourceProperty>
A builder for
CfnContext.SourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContext.SourceProperty.getSourceId()sourceType(String sourceType) Sets the value ofCfnContext.SourceProperty.getSourceType()Sets the value ofCfnContext.SourceProperty.getSourceUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceUri
Sets the value ofCfnContext.SourceProperty.getSourceUri()- Parameters:
sourceUri- The URI of the source. This parameter is required.- Returns:
this
-
sourceId
Sets the value ofCfnContext.SourceProperty.getSourceId()- Parameters:
sourceId- The ID of the source.- Returns:
this
-
sourceType
Sets the value ofCfnContext.SourceProperty.getSourceType()- Parameters:
sourceType- The type of the source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContext.SourceProperty>- Returns:
- a new instance of
CfnContext.SourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-