Class JobTemplateListResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.JobTemplateListResponse
- All Implemented Interfaces:
RESTMessage
,RESTResponse
Represents a response containing a list of job templates.
-
Constructor Summary
ConstructorsConstructorDescriptionJobTemplateListResponse
(List<JobTemplateDTO> jobTemplates) Creates a new JobTemplateListResponse with the specified list of job templates. -
Method Summary
-
Constructor Details
-
JobTemplateListResponse
Creates a new JobTemplateListResponse with the specified list of job templates.- Parameters:
jobTemplates
- The list of job templates to include in the response.
-
-
Method Details
-
validate
Description copied from class:BaseResponse
Validates the response code.- Specified by:
validate
in interfaceRESTMessage
- Overrides:
validate
in classBaseResponse
- Throws:
IllegalArgumentException
- if code value is negative.
-