Class ModelUpdateRequest.SetModelPropertyRequest
java.lang.Object
org.apache.gravitino.dto.requests.ModelUpdateRequest.SetModelPropertyRequest
- All Implemented Interfaces:
ModelUpdateRequest
,RESTMessage
,RESTRequest
- Enclosing interface:
- ModelUpdateRequest
public static class ModelUpdateRequest.SetModelPropertyRequest
extends Object
implements ModelUpdateRequest
The model update request for set property of model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.requests.ModelUpdateRequest
ModelUpdateRequest.RemoveModelPropertyRequest, ModelUpdateRequest.RenameModelRequest, ModelUpdateRequest.SetModelPropertyRequest, ModelUpdateRequest.UpdateModelCommentRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the model change.void
validate()
Validates the request, i.e., checks if the property and value are not empty and not null.
-
Constructor Details
-
SetModelPropertyRequest
public SetModelPropertyRequest()
-
-
Method Details
-
modelChange
Returns the model change.- Specified by:
modelChange
in interfaceModelUpdateRequest
- Returns:
- the model change.
-
validate
Validates the request, i.e., checks if the property and value are not empty and not null.- Specified by:
validate
in interfaceRESTMessage
- Throws:
IllegalArgumentException
- If the request is invalid, this exception is thrown.
-