public interface ModelBuilder
ModelBuilder can be used to create properly initialized instance of the Model.| Modifier and Type | Method and Description |
|---|---|
ModelBuilder |
asPublic(boolean isPublic)
Updates the visibility of this model.
|
Model |
build()
Creates properly initialized
Model instance using defined by this builder configuration options. |
ModelBuilder |
withComment(String comment)
Updates the short comment associated with model's record.
|
ModelBuilder |
withDescription(String description)
Updates the long description associated with this model's record.
|
ModelBuilder |
withRegistryName(String registryModelName)
Updates the name of the model as defined in the Comet registry.
|
ModelBuilder |
withStages(List<String> tags)
Updates the TAGs associated with the model.
|
ModelBuilder |
withVersion(String version)
Updates the version of the model.
|
ModelBuilder |
withWorkspace(String workspace)
Updates the workspace name of the model.
|
ModelBuilder withVersion(String version)
1.2.3-beta.4+sha899d8g79f87
1 is the major part (required)2 is the minor part (required)3 is the patch part (required)beta and 4 are the version suffixes (optional)sha899d8g79f87 is the build information (optional)version - the version of the model to be applied.ModelBuilder instance.ModelBuilder withWorkspace(String workspace)
workspace - the name of the workspace.ModelBuilder instance.ModelBuilder withRegistryName(String registryModelName)
registryModelName - the name of the mode in the Comet registryModelBuilder instance.ModelBuilder asPublic(boolean isPublic)
isPublic - if true the model registry will be listed as public.ModelBuilder instance.ModelBuilder withDescription(String description)
description - the long description of the model.ModelBuilder instance.ModelBuilder withComment(String comment)
comment - the short comment about the model.ModelBuilder instance.ModelBuilder withStages(List<String> tags)
tags - the list of TAGs to associate with the model.ModelBuilder instance.Copyright © 2022. All rights reserved.