Interface ImportModelVersionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ImportModelVersionRequest.Builder,
,ImportModelVersionRequest> LookoutEquipmentRequest.Builder
,SdkBuilder<ImportModelVersionRequest.Builder,
,ImportModelVersionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ImportModelVersionRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique identifier for the request.datasetName
(String datasetName) The name of the dataset for the machine learning model being imported.inferenceDataImportStrategy
(String inferenceDataImportStrategy) Indicates how to import the accumulated inference data when a model version is imported.inferenceDataImportStrategy
(InferenceDataImportStrategy inferenceDataImportStrategy) Indicates how to import the accumulated inference data when a model version is imported.labelsInputConfiguration
(Consumer<LabelsInputConfiguration.Builder> labelsInputConfiguration) Sets the value of the LabelsInputConfiguration property for this object.labelsInputConfiguration
(LabelsInputConfiguration labelsInputConfiguration) Sets the value of the LabelsInputConfiguration property for this object.The name for the machine learning model to be created.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model.serverSideKmsKeyId
(String serverSideKmsKeyId) Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.sourceModelVersionArn
(String sourceModelVersionArn) The Amazon Resource Name (ARN) of the model version to import.tags
(Collection<Tag> tags) The tags associated with the machine learning model to be created.tags
(Consumer<Tag.Builder>... tags) The tags associated with the machine learning model to be created.The tags associated with the machine learning model to be created.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.lookoutequipment.model.LookoutEquipmentRequest.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 Details
-
sourceModelVersionArn
The Amazon Resource Name (ARN) of the model version to import.
- Parameters:
sourceModelVersionArn
- The Amazon Resource Name (ARN) of the model version to import.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelName
The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment creates a new version. If you do not specify this field, it is filled with the name of the source model.
- Parameters:
modelName
- The name for the machine learning model to be created. If the model already exists, Amazon Lookout for Equipment creates a new version. If you do not specify this field, it is filled with the name of the source model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetName
The name of the dataset for the machine learning model being imported.
- Parameters:
datasetName
- The name of the dataset for the machine learning model being imported.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelsInputConfiguration
ImportModelVersionRequest.Builder labelsInputConfiguration(LabelsInputConfiguration labelsInputConfiguration) Sets the value of the LabelsInputConfiguration property for this object.- Parameters:
labelsInputConfiguration
- The new value for the LabelsInputConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
labelsInputConfiguration
default ImportModelVersionRequest.Builder labelsInputConfiguration(Consumer<LabelsInputConfiguration.Builder> labelsInputConfiguration) Sets the value of the LabelsInputConfiguration property for this object. This is a convenience method that creates an instance of theLabelsInputConfiguration.Builder
avoiding the need to create one manually viaLabelsInputConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolabelsInputConfiguration(LabelsInputConfiguration)
.- Parameters:
labelsInputConfiguration
- a consumer that will call methods onLabelsInputConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.
- Parameters:
clientToken
- A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the data source being used to create the machine learning model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serverSideKmsKeyId
Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.
- Parameters:
serverSideKmsKeyId
- Provides the identifier of the KMS key key used to encrypt model data by Amazon Lookout for Equipment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the machine learning model to be created.
- Parameters:
tags
- The tags associated with the machine learning model to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the machine learning model to be created.
- Parameters:
tags
- The tags associated with the machine learning model to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags associated with the machine learning model to be created.
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 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:
-
inferenceDataImportStrategy
Indicates how to import the accumulated inference data when a model version is imported. The possible values are as follows:
-
NO_IMPORT – Don't import the data.
-
ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model.
-
OVERWRITE – Import the data from the source model and overwrite the existing data in the target model.
- Parameters:
inferenceDataImportStrategy
- Indicates how to import the accumulated inference data when a model version is imported. The possible values are as follows:-
NO_IMPORT – Don't import the data.
-
ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model.
-
OVERWRITE – Import the data from the source model and overwrite the existing data in the target model.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
inferenceDataImportStrategy
ImportModelVersionRequest.Builder inferenceDataImportStrategy(InferenceDataImportStrategy inferenceDataImportStrategy) Indicates how to import the accumulated inference data when a model version is imported. The possible values are as follows:
-
NO_IMPORT – Don't import the data.
-
ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model.
-
OVERWRITE – Import the data from the source model and overwrite the existing data in the target model.
- Parameters:
inferenceDataImportStrategy
- Indicates how to import the accumulated inference data when a model version is imported. The possible values are as follows:-
NO_IMPORT – Don't import the data.
-
ADD_WHEN_EMPTY – Only import the data from the source model if there is no existing data in the target model.
-
OVERWRITE – Import the data from the source model and overwrite the existing data in the target model.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
ImportModelVersionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ImportModelVersionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-