Class ModelVersionLinkRequest
java.lang.Object
org.apache.gravitino.dto.requests.ModelVersionLinkRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Represents a request to link a model version.
-
Constructor Summary
ConstructorsConstructorDescriptionModelVersionLinkRequest
(String uri, String[] aliases, String comment, Map<String, String> properties) Constructor for ModelVersionLinkRequest.ModelVersionLinkRequest
(Map<String, String> uris, String[] aliases, String comment, Map<String, String> properties) Constructor for ModelVersionLinkRequest -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
ModelVersionLinkRequest
public ModelVersionLinkRequest(String uri, String[] aliases, String comment, Map<String, String> properties) Constructor for ModelVersionLinkRequest.- Parameters:
uri
- the uri of the model version.aliases
- the aliases of the model version.comment
- the comment of the model version.properties
- the properties of the model version.
-
ModelVersionLinkRequest
public ModelVersionLinkRequest(Map<String, String> uris, String[] aliases, String comment, Map<String, String> properties) Constructor for ModelVersionLinkRequest- Parameters:
uris
- the uris of the model version.aliases
- the aliases of the model version.comment
- the comment of the model version.properties
- the properties of the model version.
-
-
Method Details
-
validate
Description copied from interface:RESTMessage
Ensures that a constructed instance of a REST message is valid according to the REST spec.This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
-