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 TypeMethodDescriptionvoid
execute()
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
UpdateChannelFolderApiRequest
instance
-
withDescription
Sets the updated description of the channel folder.- Parameters:
description
- The updated channel folder name- Returns:
- This
UpdateChannelFolderApiRequest
instance
-
withIsArchived
Sets the updated archived status of the channel folder.- Parameters:
isArchived
-true
to archive the channel folder.false to unarchive
the channel folder- Returns:
- This
UpdateChannelFolderApiRequest
instance
-
execute
Executes the Zulip API request for updating a channel folder.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-