Interface CreateContextRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateContextRequest.Builder,,CreateContextRequest> SageMakerRequest.Builder,SdkBuilder<CreateContextRequest.Builder,,CreateContextRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateContextRequest
public static interface CreateContextRequest.Builder
extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<CreateContextRequest.Builder,CreateContextRequest>
-
Method Summary
Modifier and TypeMethodDescriptioncontextName(String contextName) The name of the context.contextType(String contextType) The context type.description(String description) The description of the context.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.properties(Map<String, String> properties) A list of properties to add to the context.default CreateContextRequest.Buildersource(Consumer<ContextSource.Builder> source) The source type, ID, and URI.source(ContextSource source) The source type, ID, and URI.tags(Collection<Tag> tags) A list of tags to apply to the context.tags(Consumer<Tag.Builder>... tags) A list of tags to apply to the context.A list of tags to apply to the context.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
contextName
The name of the context. Must be unique to your account in an Amazon Web Services Region.
- Parameters:
contextName- The name of the context. Must be unique to your account in an Amazon Web Services Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source type, ID, and URI.
- Parameters:
source- The source type, ID, and URI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
The source type, ID, and URI.
This is a convenience method that creates an instance of theContextSource.Builderavoiding the need to create one manually viaContextSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(ContextSource).- Parameters:
source- a consumer that will call methods onContextSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contextType
The context type.
- Parameters:
contextType- The context type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the context.
- Parameters:
description- The description of the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
properties
A list of properties to add to the context.
- Parameters:
properties- A list of properties to add to the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the context.
- Parameters:
tags- A list of tags to apply to the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the context.
- Parameters:
tags- A list of tags to apply to the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags to apply to the context.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateContextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateContextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-