Class CallsAddParams
java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsAddParams
- All Implemented Interfaces:
CallsAddParamsIF
@Generated(from="CallsAddParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class CallsAddParams
extends Object
implements CallsAddParamsIF
Immutable implementation of
CallsAddParamsIF.
Use the builder to create immutable instances:
CallsAddParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CallsAddParams.Builderbuilder()Creates a builder forCallsAddParams.static CallsAddParamscopyOf(CallsAddParamsIF instance) Creates an immutable copy of aCallsAddParamsIFvalue.booleanThis instance is equal to all instances ofCallsAddParamsthat have equal attribute values.getTitle()getUsers()inthashCode()Computes a hash code from attributes:externalUniqueId,joinUrl,createdBy,dateStart,desktopAppJoinUrl,externalDisplayId,title,users.toString()Prints the immutable valueCallsAddParamswith attribute values.final CallsAddParamswithCreatedBy(String value) Copy the current immutable object by setting a present value for the optionalcreatedByattribute.final CallsAddParamswithCreatedBy(Optional<String> optional) Copy the current immutable object by setting an optional value for thecreatedByattribute.final CallsAddParamswithDateStart(Integer value) Copy the current immutable object by setting a present value for the optionaldateStartattribute.final CallsAddParamswithDateStart(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thedateStartattribute.final CallsAddParamswithDesktopAppJoinUrl(String value) Copy the current immutable object by setting a present value for the optionaldesktopAppJoinUrlattribute.final CallsAddParamswithDesktopAppJoinUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for thedesktopAppJoinUrlattribute.final CallsAddParamswithExternalDisplayId(String value) Copy the current immutable object by setting a present value for the optionalexternalDisplayIdattribute.final CallsAddParamswithExternalDisplayId(Optional<String> optional) Copy the current immutable object by setting an optional value for theexternalDisplayIdattribute.final CallsAddParamswithExternalUniqueId(String value) Copy the current immutable object by setting a value for theexternalUniqueIdattribute.final CallsAddParamswithJoinUrl(String value) Copy the current immutable object by setting a value for thejoinUrlattribute.final CallsAddParamsCopy the current immutable object by setting a present value for the optionaltitleattribute.final CallsAddParamsCopy the current immutable object by setting an optional value for thetitleattribute.final CallsAddParamswithUsers(SlackInternalOrExternalUser... elements) Copy the current immutable object with elements that replace the content ofusers.final CallsAddParamswithUsers(Iterable<? extends SlackInternalOrExternalUser> elements) Copy the current immutable object with elements that replace the content ofusers.
-
Method Details
-
getExternalUniqueId
- Specified by:
getExternalUniqueIdin interfaceCallsAddParamsIF- Returns:
- The value of the
externalUniqueIdattribute
-
getJoinUrl
- Specified by:
getJoinUrlin interfaceCallsAddParamsIF- Returns:
- The value of the
joinUrlattribute
-
getCreatedBy
- Specified by:
getCreatedByin interfaceCallsAddParamsIF- Returns:
- The value of the
createdByattribute
-
getDateStart
- Specified by:
getDateStartin interfaceCallsAddParamsIF- Returns:
- The value of the
dateStartattribute
-
getDesktopAppJoinUrl
- Specified by:
getDesktopAppJoinUrlin interfaceCallsAddParamsIF- Returns:
- The value of the
desktopAppJoinUrlattribute
-
getExternalDisplayId
- Specified by:
getExternalDisplayIdin interfaceCallsAddParamsIF- Returns:
- The value of the
externalDisplayIdattribute
-
getTitle
- Specified by:
getTitlein interfaceCallsAddParamsIF- Returns:
- The value of the
titleattribute
-
getUsers
- Specified by:
getUsersin interfaceCallsAddParamsIF- 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
-
withJoinUrl
Copy the current immutable object by setting a value for thejoinUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for joinUrl- Returns:
- A modified copy or the
thisobject
-
withCreatedBy
Copy the current immutable object by setting a present value for the optionalcreatedByattribute.- Parameters:
value- The value for createdBy,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withCreatedBy
Copy the current immutable object by setting an optional value for thecreatedByattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for createdBy- Returns:
- A modified copy or
thisif not changed
-
withDateStart
Copy the current immutable object by setting a present value for the optionaldateStartattribute.- Parameters:
value- The value for dateStart,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withDateStart
Copy the current immutable object by setting an optional value for thedateStartattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for dateStart- 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 ofCallsAddParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:externalUniqueId,joinUrl,createdBy,dateStart,desktopAppJoinUrl,externalDisplayId,title,users. -
toString
Prints the immutable valueCallsAddParamswith attribute values. -
copyOf
Creates an immutable copy of aCallsAddParamsIFvalue. 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 CallsAddParams instance
-
builder
Creates a builder forCallsAddParams.CallsAddParams.builder() .setExternalUniqueId(String) // requiredexternalUniqueId.setJoinUrl(String) // requiredjoinUrl.setCreatedBy(Optional<String>) // optionalcreatedBy.setDateStart(Optional<Integer>) // optionaldateStart.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 CallsAddParams builder
-