Class UpdateChannelFolderApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.channel.request.UpdateChannelFolderApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
public class UpdateChannelFolderApiRequest
extends ZulipApiRequest
implements VoidExecutableApiRequest
Zulip API request builder for updating a channel folder.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateChannelFolderApiRequest(ZulipHttpClient client, int channelFolderId) Constructs aUpdateChannelFolderApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the Zulip API request for updating a channel folder.withDescription(String description) Sets the updated description of the channel folder.withIsArchived(boolean isArchived) Sets the updated archived status of the channel folder.Sets the updated name of the channel folder.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
IS_ARCHIVED
- See Also:
-
-
Constructor Details
-
UpdateChannelFolderApiRequest
Constructs aUpdateChannelFolderApiRequest.- Parameters:
client- The Zulip HTTP clientchannelFolderId- The id of the channel folder to update
-
-
Method Details
-
withName
Sets the updated name of the channel folder.- Parameters:
name- The updated channel folder name- Returns:
- This
UpdateChannelFolderApiRequestinstance
-
withDescription
Sets the updated description of the channel folder.- Parameters:
description- The updated channel folder name- Returns:
- This
UpdateChannelFolderApiRequestinstance
-
withIsArchived
Sets the updated archived status of the channel folder.- Parameters:
isArchived-trueto archive the channel folder.false to unarchivethe channel folder- Returns:
- This
UpdateChannelFolderApiRequestinstance
-
execute
Executes the Zulip API request for updating a channel folder.- Specified by:
executein interfaceVoidExecutableApiRequest- Throws:
ZulipClientException- if the request was not successful
-