Interface CreateHubContentPresignedUrlsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateHubContentPresignedUrlsRequest.Builder,,CreateHubContentPresignedUrlsRequest> SageMakerRequest.Builder,SdkBuilder<CreateHubContentPresignedUrlsRequest.Builder,,CreateHubContentPresignedUrlsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateHubContentPresignedUrlsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccessConfig(Consumer<PresignedUrlAccessConfig.Builder> accessConfig) Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.accessConfig(PresignedUrlAccessConfig accessConfig) Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.hubContentName(String hubContentName) The name of the hub content for which to generate presigned URLs.hubContentType(String hubContentType) The type of hub content to access.hubContentType(HubContentType hubContentType) The type of hub content to access.hubContentVersion(String hubContentVersion) The version of the hub content.The name or Amazon Resource Name (ARN) of the hub that contains the content.maxResults(Integer maxResults) The maximum number of presigned URLs to return in the response.A token for pagination.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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, sdkFieldNameToField, sdkFields
-
Method Details
-
hubName
The name or Amazon Resource Name (ARN) of the hub that contains the content. For public content, use
SageMakerPublicHub.- Parameters:
hubName- The name or Amazon Resource Name (ARN) of the hub that contains the content. For public content, useSageMakerPublicHub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hubContentType
The type of hub content to access. Valid values include
Model,Notebook, andModelReference.- Parameters:
hubContentType- The type of hub content to access. Valid values includeModel,Notebook, andModelReference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hubContentType
The type of hub content to access. Valid values include
Model,Notebook, andModelReference.- Parameters:
hubContentType- The type of hub content to access. Valid values includeModel,Notebook, andModelReference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hubContentName
The name of the hub content for which to generate presigned URLs. This identifies the specific model or content within the hub.
- Parameters:
hubContentName- The name of the hub content for which to generate presigned URLs. This identifies the specific model or content within the hub.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hubContentVersion
The version of the hub content. If not specified, the latest version is used.
- Parameters:
hubContentVersion- The version of the hub content. If not specified, the latest version is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfig
Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.
- Parameters:
accessConfig- Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessConfig
default CreateHubContentPresignedUrlsRequest.Builder accessConfig(Consumer<PresignedUrlAccessConfig.Builder> accessConfig) Configuration settings for accessing the hub content, including end-user license agreement acceptance for gated models and expected S3 URL validation.
This is a convenience method that creates an instance of thePresignedUrlAccessConfig.Builderavoiding the need to create one manually viaPresignedUrlAccessConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccessConfig(PresignedUrlAccessConfig).- Parameters:
accessConfig- a consumer that will call methods onPresignedUrlAccessConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of presigned URLs to return in the response. Default value is 100. Large models may contain hundreds of files, requiring pagination to retrieve all URLs.
- Parameters:
maxResults- The maximum number of presigned URLs to return in the response. Default value is 100. Large models may contain hundreds of files, requiring pagination to retrieve all URLs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A token for pagination. Use this token to retrieve the next set of presigned URLs when the response is truncated.
- Parameters:
nextToken- A token for pagination. Use this token to retrieve the next set of presigned URLs when the response is truncated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateHubContentPresignedUrlsRequest.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
CreateHubContentPresignedUrlsRequest.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.
-