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
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
contextName
CreateContextRequest.Builder contextName(String 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
CreateContextRequest.Builder source(ContextSource 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
default CreateContextRequest.Builder source(Consumer<ContextSource.Builder> source)
The source type, ID, and URI.
This is a convenience method that creates an instance of theContextSource.Builder
avoiding the need to create one manually viaContextSource.builder()
.When the
Consumer
completes,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:
source(ContextSource)
-
contextType
CreateContextRequest.Builder contextType(String 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
CreateContextRequest.Builder description(String 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
CreateContextRequest.Builder properties(Map<String,String> 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
CreateContextRequest.Builder tags(Collection<Tag> 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
CreateContextRequest.Builder tags(Tag... 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
CreateContextRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags to apply to the context.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
overrideConfiguration
CreateContextRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateContextRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-