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
Modifier and Type Method Description ChannelsCreateRequest
build()
ChannelsCreateRequest.ChannelsCreateRequestBuilder
name(String name)
Name of channel to createChannelsCreateRequest.ChannelsCreateRequestBuilder
teamId(String teamId)
Required for org-wide apps.ChannelsCreateRequest.ChannelsCreateRequestBuilder
token(String token)
Authentication token.String
toString()
ChannelsCreateRequest.ChannelsCreateRequestBuilder
validate(boolean validate)
Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.
-
Method Details
-
token
Authentication token. Requires scope: `channels:write`- Returns:
this
.
-
name
Name of channel to create- Returns:
this
.
-
validate
Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.- Returns:
this
.
-
teamId
Required for org-wide apps.- Returns:
this
.
-
build
-
toString
-