Class ChannelsCreateRequest.ChannelsCreateRequestBuilder
- java.lang.Object
-
- com.slack.api.methods.request.channels.ChannelsCreateRequest.ChannelsCreateRequestBuilder
-
- Enclosing class:
- ChannelsCreateRequest
public static class ChannelsCreateRequest.ChannelsCreateRequestBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelsCreateRequestbuild()ChannelsCreateRequest.ChannelsCreateRequestBuildername(String name)Name of channel to createChannelsCreateRequest.ChannelsCreateRequestBuildertoken(String token)Authentication token.StringtoString()ChannelsCreateRequest.ChannelsCreateRequestBuildervalidate(boolean validate)Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.
-
-
-
Method Detail
-
token
public ChannelsCreateRequest.ChannelsCreateRequestBuilder token(String token)
Authentication token. Requires scope: `channels:write`- Returns:
this.
-
name
public ChannelsCreateRequest.ChannelsCreateRequestBuilder name(String name)
Name of channel to create- Returns:
this.
-
validate
public ChannelsCreateRequest.ChannelsCreateRequestBuilder validate(boolean validate)
Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.- Returns:
this.
-
build
public ChannelsCreateRequest build()
-
-