Class ModelVersionLinkRequest

java.lang.Object
org.apache.gravitino.dto.requests.ModelVersionLinkRequest
All Implemented Interfaces:
RESTMessage, RESTRequest

public class ModelVersionLinkRequest extends Object implements RESTRequest
Represents a request to link a model version.
  • 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

      public void validate() throws IllegalArgumentException
      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 interface RESTMessage
      Throws:
      IllegalArgumentException