Class SlackChannelData.Builder
-
- All Implemented Interfaces:
public final class SlackChannelData.BuilderA builder for SlackChannelData.
-
-
Method Summary
-
-
Method Detail
-
connections
final SlackChannelData.Builder connections(List<SlackChannelData.Connection> connections)
List of Slack channel connections.
-
connections
final SlackChannelData.Builder connections(JsonField<List<SlackChannelData.Connection>> connections)
Sets Builder.connections to an arbitrary JSON value.
You should usually call Builder.connections with a well-typed
List<Connection>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addConnection
final SlackChannelData.Builder addConnection(SlackChannelData.Connection connection)
Adds a single Connection to connections.
-
addConnection
final SlackChannelData.Builder addConnection(SlackChannelData.Connection.SlackTokenConnection slackToken)
Alias for calling addConnection with
Connection.ofSlackToken(slackToken).
-
addConnection
final SlackChannelData.Builder addConnection(SlackChannelData.Connection.SlackIncomingWebhookConnection slackIncomingWebhook)
Alias for calling addConnection with
Connection.ofSlackIncomingWebhook(slackIncomingWebhook).
-
token
final SlackChannelData.Builder token(SlackChannelData.Token token)
A Slack connection token.
-
token
final SlackChannelData.Builder token(Optional<SlackChannelData.Token> token)
Alias for calling Builder.token with
token.orElse(null).
-
token
final SlackChannelData.Builder token(JsonField<SlackChannelData.Token> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed Token value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SlackChannelData.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SlackChannelData.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SlackChannelData.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SlackChannelData.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SlackChannelData.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SlackChannelData build()
Returns an immutable instance of SlackChannelData.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.connections()
-
-
-
-