Class CreateDataExportApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.server.request.CreateDataExportApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Integer>
public class CreateDataExportApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Integer>
Zulip API request builder for creating a data export.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Executes the Zulip API request for creating a data export.withExportType
(DataExportType exportType) Sets the type of the data export.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
Constructor Details
-
CreateDataExportApiRequest
Constructs aCreateDataExportApiRequest
.- Parameters:
client
- The Zulip HTTP client
-
-
Method Details
-
withExportType
Sets the type of the data export.- Parameters:
exportType
- The type of data export- Returns:
- This
CreateDataExportApiRequest
instance
-
execute
Executes the Zulip API request for creating a data export.- Specified by:
execute
in interfaceExecutableApiRequest<Integer>
- Returns:
- The id of the created
DataExport
- Throws:
ZulipClientException
- if the request was not successful
-