Class SlackCall
java.lang.Object
com.hubspot.slack.client.models.calls.SlackCall
- All Implemented Interfaces:
SlackCallIF
@Generated(from="SlackCallIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SlackCall
extends Object
implements SlackCallIF
Immutable implementation of
SlackCallIF.
Use the builder to create immutable instances:
SlackCall.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SlackCall.Builderbuilder()Creates a builder forSlackCall.static SlackCallcopyOf(SlackCallIF instance) Creates an immutable copy of aSlackCallIFvalue.booleanThis instance is equal to all instances ofSlackCallthat have equal attribute values.getId()getTitle()getUsers()inthashCode()Computes a hash code from attributes:externalUniqueId,id,startDateEpochSeconds,startDate,desktopAppJoinUrl,externalDisplayId,title,users.toString()Prints the immutable valueSlackCallwith attribute values.final SlackCallwithDesktopAppJoinUrl(String value) Copy the current immutable object by setting a present value for the optionaldesktopAppJoinUrlattribute.final SlackCallwithDesktopAppJoinUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for thedesktopAppJoinUrlattribute.final SlackCallwithExternalDisplayId(String value) Copy the current immutable object by setting a present value for the optionalexternalDisplayIdattribute.final SlackCallwithExternalDisplayId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalDisplayIdattribute.final SlackCallwithExternalUniqueId(String value) Copy the current immutable object by setting a value for theexternalUniqueIdattribute.final SlackCallCopy the current immutable object by setting a value for theidattribute.final SlackCallwithStartDateEpochSeconds(Integer value) Copy the current immutable object by setting a present value for the optionalstartDateEpochSecondsattribute.final SlackCallwithStartDateEpochSeconds(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thestartDateEpochSecondsattribute.final SlackCallCopy the current immutable object by setting a present value for the optionaltitleattribute.final SlackCallCopy the current immutable object by setting an optional value for thetitleattribute.final SlackCallwithUsers(SlackInternalOrExternalUser... elements) Copy the current immutable object with elements that replace the content ofusers.final SlackCallwithUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Copy the current immutable object with elements that replace the content ofusers.
-
Method Details
-
getExternalUniqueId
- Specified by:
getExternalUniqueIdin interfaceSlackCallIF- Returns:
- The value of the
externalUniqueIdattribute
-
getId
- Specified by:
getIdin interfaceSlackCallIF- Returns:
- The value of the
idattribute
-
getStartDateEpochSeconds
- Specified by:
getStartDateEpochSecondsin interfaceSlackCallIF- Returns:
- The value of the
startDateEpochSecondsattribute
-
getStartDate
- Specified by:
getStartDatein interfaceSlackCallIF- Returns:
- The computed-at-construction value of the
startDateattribute
-
getDesktopAppJoinUrl
- Specified by:
getDesktopAppJoinUrlin interfaceSlackCallIF- Returns:
- The value of the
desktopAppJoinUrlattribute
-
getExternalDisplayId
- Specified by:
getExternalDisplayIdin interfaceSlackCallIF- Returns:
- The value of the
externalDisplayIdattribute
-
getTitle
- Specified by:
getTitlein interfaceSlackCallIF- Returns:
- The value of the
titleattribute
-
getUsers
- Specified by:
getUsersin interfaceSlackCallIF- Returns:
- The value of the
usersattribute
-
withExternalUniqueId
Copy the current immutable object by setting a value for theexternalUniqueIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for externalUniqueId- Returns:
- A modified copy or the
thisobject
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withStartDateEpochSeconds
Copy the current immutable object by setting a present value for the optionalstartDateEpochSecondsattribute.- Parameters:
value- The value for startDateEpochSeconds,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withStartDateEpochSeconds
Copy the current immutable object by setting an optional value for thestartDateEpochSecondsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for startDateEpochSeconds- Returns:
- A modified copy or
thisif not changed
-
withDesktopAppJoinUrl
Copy the current immutable object by setting a present value for the optionaldesktopAppJoinUrlattribute.- Parameters:
value- The value for desktopAppJoinUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDesktopAppJoinUrl
Copy the current immutable object by setting an optional value for thedesktopAppJoinUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for desktopAppJoinUrl- Returns:
- A modified copy or
thisif not changed
-
withExternalDisplayId
Copy the current immutable object by setting a present value for the optionalexternalDisplayIdattribute.- Parameters:
value- The value for externalDisplayId,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withExternalDisplayId
Copy the current immutable object by setting an optional value for theexternalDisplayIdattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for externalDisplayId- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting a present value for the optionaltitleattribute.- Parameters:
value- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting an optional value for thetitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for title- Returns:
- A modified copy or
thisif not changed
-
withUsers
Copy the current immutable object with elements that replace the content ofusers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withUsers
Copy the current immutable object with elements that replace the content ofusers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of users elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSlackCallthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:externalUniqueId,id,startDateEpochSeconds,startDate,desktopAppJoinUrl,externalDisplayId,title,users. -
toString
Prints the immutable valueSlackCallwith attribute values. -
copyOf
Creates an immutable copy of aSlackCallIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SlackCall instance
-
builder
Creates a builder forSlackCall.SlackCall.builder() .setExternalUniqueId(String) // requiredexternalUniqueId.setId(String) // requiredid.setStartDateEpochSeconds(Optional<Integer>) // optionalstartDateEpochSeconds.setDesktopAppJoinUrl(Optional<String>) // optionaldesktopAppJoinUrl.setExternalDisplayId(Optional<String>) // optionalexternalDisplayId.setTitle(Optional<String>) // optionaltitle.addUsers|addAllUsers(com.hubspot.slack.client.models.calls.SlackInternalOrExternalUser) //userselements .build();- Returns:
- A new SlackCall builder
-