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 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 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
.
-
teamId
public ChannelsCreateRequest.ChannelsCreateRequestBuilder teamId(String teamId)
Required for org-wide apps.- Returns:
this
.
-
build
public ChannelsCreateRequest build()
-
-