Class SlackCall.Builder
java.lang.Object
com.hubspot.slack.client.models.calls.SlackCall.Builder
- Enclosing class:
SlackCall
@Generated(from="SlackCallIF",
generator="Immutables")
@NotThreadSafe
public static final class SlackCall.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionfinal SlackCall.BuilderaddAllUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Adds elements touserslist.final SlackCall.BuilderaddUsers(SlackInternalOrExternalUser element) Adds one element touserslist.final SlackCall.BuilderaddUsers(SlackInternalOrExternalUser... elements) Adds elements touserslist.build()Builds a newSlackCall.final SlackCall.Builderfrom(SlackCallIF instance) Fill a builder with attribute values from the providedSlackCallIFinstance.final SlackCall.BuildersetDesktopAppJoinUrl(String desktopAppJoinUrl) Initializes the optional valuedesktopAppJoinUrlto desktopAppJoinUrl.final SlackCall.BuildersetDesktopAppJoinUrl(Optional<String> desktopAppJoinUrl) Initializes the optional valuedesktopAppJoinUrlto desktopAppJoinUrl.final SlackCall.BuildersetExternalDisplayId(String externalDisplayId) Initializes the optional valueexternalDisplayIdto externalDisplayId.final SlackCall.BuildersetExternalDisplayId(Optional<String> externalDisplayId) Initializes the optional valueexternalDisplayIdto externalDisplayId.final SlackCall.BuildersetExternalUniqueId(String externalUniqueId) Initializes the value for theexternalUniqueIdattribute.final SlackCall.BuilderInitializes the value for theidattribute.final SlackCall.BuildersetStartDateEpochSeconds(Integer startDateEpochSeconds) Initializes the optional valuestartDateEpochSecondsto startDateEpochSeconds.final SlackCall.BuildersetStartDateEpochSeconds(Optional<Integer> startDateEpochSeconds) Initializes the optional valuestartDateEpochSecondsto startDateEpochSeconds.final SlackCall.BuilderInitializes the optional valuetitleto title.final SlackCall.BuilderInitializes the optional valuetitleto title.final SlackCall.BuildersetUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Sets or replaces all elements foruserslist.
-
Method Details
-
from
Fill a builder with attribute values from the providedSlackCallIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setExternalUniqueId
Initializes the value for theexternalUniqueIdattribute.- Parameters:
externalUniqueId- The value for externalUniqueId- Returns:
thisbuilder for use in a chained invocation
-
setId
Initializes the value for theidattribute.- Parameters:
id- The value for id- Returns:
thisbuilder for use in a chained invocation
-
setStartDateEpochSeconds
Initializes the optional valuestartDateEpochSecondsto startDateEpochSeconds.- Parameters:
startDateEpochSeconds- The value for startDateEpochSeconds,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setStartDateEpochSeconds
Initializes the optional valuestartDateEpochSecondsto startDateEpochSeconds.- Parameters:
startDateEpochSeconds- The value for startDateEpochSeconds- Returns:
thisbuilder for use in a chained invocation
-
setDesktopAppJoinUrl
Initializes the optional valuedesktopAppJoinUrlto desktopAppJoinUrl.- Parameters:
desktopAppJoinUrl- The value for desktopAppJoinUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setDesktopAppJoinUrl
Initializes the optional valuedesktopAppJoinUrlto desktopAppJoinUrl.- Parameters:
desktopAppJoinUrl- The value for desktopAppJoinUrl- Returns:
thisbuilder for use in a chained invocation
-
setExternalDisplayId
Initializes the optional valueexternalDisplayIdto externalDisplayId.- Parameters:
externalDisplayId- The value for externalDisplayId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setExternalDisplayId
Initializes the optional valueexternalDisplayIdto externalDisplayId.- Parameters:
externalDisplayId- The value for externalDisplayId- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
addUsers
Adds one element touserslist.- Parameters:
element- A users element- Returns:
thisbuilder for use in a chained invocation
-
addUsers
Adds elements touserslist.- Parameters:
elements- An array of users elements- Returns:
thisbuilder for use in a chained invocation
-
setUsers
Sets or replaces all elements foruserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
addAllUsers
public final SlackCall.Builder addAllUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Adds elements touserslist.- Parameters:
elements- An iterable of users elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSlackCall.- Returns:
- An immutable instance of SlackCall
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-