Class OwnerSetRequest
java.lang.Object
org.apache.gravitino.dto.requests.OwnerSetRequest
- All Implemented Interfaces:
RESTMessage
,RESTRequest
Request to set the owner for a metadata object.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for OwnerSetRequest.OwnerSetRequest
(String name, Owner.Type type) Creates a new OwnerSetRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
-
Constructor Details
-
OwnerSetRequest
public OwnerSetRequest()Default constructor for OwnerSetRequest. (Used for Jackson deserialization.) -
OwnerSetRequest
Creates a new OwnerSetRequest.- Parameters:
name
- The name of the owner.type
- The type of the owner.
-
-
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
-