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().

  • Method Details

    • getExternalUniqueId

      public String getExternalUniqueId()
      Specified by:
      getExternalUniqueId in interface CallsAddParamsIF
      Returns:
      The value of the externalUniqueId attribute
    • getJoinUrl

      public String getJoinUrl()
      Specified by:
      getJoinUrl in interface CallsAddParamsIF
      Returns:
      The value of the joinUrl attribute
    • getCreatedBy

      public Optional<String> getCreatedBy()
      Specified by:
      getCreatedBy in interface CallsAddParamsIF
      Returns:
      The value of the createdBy attribute
    • getDateStart

      public Optional<Integer> getDateStart()
      Specified by:
      getDateStart in interface CallsAddParamsIF
      Returns:
      The value of the dateStart attribute
    • getDesktopAppJoinUrl

      public Optional<String> getDesktopAppJoinUrl()
      Specified by:
      getDesktopAppJoinUrl in interface CallsAddParamsIF
      Returns:
      The value of the desktopAppJoinUrl attribute
    • getExternalDisplayId

      public Optional<String> getExternalDisplayId()
      Specified by:
      getExternalDisplayId in interface CallsAddParamsIF
      Returns:
      The value of the externalDisplayId attribute
    • getTitle

      public Optional<String> getTitle()
      Specified by:
      getTitle in interface CallsAddParamsIF
      Returns:
      The value of the title attribute
    • getUsers

      public List<SlackInternalOrExternalUser> getUsers()
      Specified by:
      getUsers in interface CallsAddParamsIF
      Returns:
      The value of the users attribute
    • withExternalUniqueId

      public final CallsAddParams withExternalUniqueId(String value)
      Copy the current immutable object by setting a value for the externalUniqueId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for externalUniqueId
      Returns:
      A modified copy or the this object
    • withJoinUrl

      public final CallsAddParams withJoinUrl(String value)
      Copy the current immutable object by setting a value for the joinUrl attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for joinUrl
      Returns:
      A modified copy or the this object
    • withCreatedBy

      public final CallsAddParams withCreatedBy(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional createdBy attribute.
      Parameters:
      value - The value for createdBy, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withCreatedBy

      public final CallsAddParams withCreatedBy(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the createdBy attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for createdBy
      Returns:
      A modified copy or this if not changed
    • withDateStart

      public final CallsAddParams withDateStart(@Nullable Integer value)
      Copy the current immutable object by setting a present value for the optional dateStart attribute.
      Parameters:
      value - The value for dateStart, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withDateStart

      public final CallsAddParams withDateStart(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the dateStart attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for dateStart
      Returns:
      A modified copy or this if not changed
    • withDesktopAppJoinUrl

      public final CallsAddParams withDesktopAppJoinUrl(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional desktopAppJoinUrl attribute.
      Parameters:
      value - The value for desktopAppJoinUrl, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withDesktopAppJoinUrl

      public final CallsAddParams withDesktopAppJoinUrl(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the desktopAppJoinUrl attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for desktopAppJoinUrl
      Returns:
      A modified copy or this if not changed
    • withExternalDisplayId

      public final CallsAddParams withExternalDisplayId(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional externalDisplayId attribute.
      Parameters:
      value - The value for externalDisplayId, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withExternalDisplayId

      public final CallsAddParams withExternalDisplayId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the externalDisplayId attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for externalDisplayId
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final CallsAddParams withTitle(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional title attribute.
      Parameters:
      value - The value for title, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final CallsAddParams withTitle(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the title attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for title
      Returns:
      A modified copy or this if not changed
    • withUsers

      public final CallsAddParams withUsers(SlackInternalOrExternalUser... elements)
      Copy the current immutable object with elements that replace the content of users.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withUsers

      public final CallsAddParams withUsers(Iterable<? extends SlackInternalOrExternalUser> elements)
      Copy the current immutable object with elements that replace the content of users. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of users elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of CallsAddParams that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: externalUniqueId, joinUrl, createdBy, dateStart, desktopAppJoinUrl, externalDisplayId, title, users.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value CallsAddParams with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static CallsAddParams copyOf(CallsAddParamsIF instance)
      Creates an immutable copy of a CallsAddParamsIF value. 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

      public static CallsAddParams.Builder builder()
      Creates a builder for CallsAddParams.
       CallsAddParams.builder()
          .setExternalUniqueId(String) // required externalUniqueId
          .setJoinUrl(String) // required joinUrl
          .setCreatedBy(Optional<String>) // optional createdBy
          .setDateStart(Optional<Integer>) // optional dateStart
          .setDesktopAppJoinUrl(Optional<String>) // optional desktopAppJoinUrl
          .setExternalDisplayId(Optional<String>) // optional externalDisplayId
          .setTitle(Optional<String>) // optional title
          .addUsers|addAllUsers(com.hubspot.slack.client.models.calls.SlackInternalOrExternalUser) // users elements
          .build();
       
      Returns:
      A new CallsAddParams builder