Class CallsUpdateParams

java.lang.Object
com.hubspot.slack.client.methods.params.calls.CallsUpdateParams
All Implemented Interfaces:
CallsUpdateParamsIF

@Generated(from="CallsUpdateParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class CallsUpdateParams extends Object implements CallsUpdateParamsIF
Immutable implementation of CallsUpdateParamsIF.

Use the builder to create immutable instances: CallsUpdateParams.builder().

  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface CallsUpdateParamsIF
      Returns:
      The value of the id attribute
    • getDesktopAppJoinUrl

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

      public Optional<String> getJoinUrl()
      Specified by:
      getJoinUrl in interface CallsUpdateParamsIF
      Returns:
      The value of the joinUrl attribute
    • getTitle

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

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

      public final CallsUpdateParams 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 CallsUpdateParams 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
    • withJoinUrl

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

      public final CallsUpdateParams withJoinUrl(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the joinUrl 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 joinUrl
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final CallsUpdateParams 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 CallsUpdateParams 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
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of CallsUpdateParams 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: id, desktopAppJoinUrl, joinUrl, title.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static CallsUpdateParams copyOf(CallsUpdateParamsIF instance)
      Creates an immutable copy of a CallsUpdateParamsIF 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 CallsUpdateParams instance
    • builder

      public static CallsUpdateParams.Builder builder()
      Creates a builder for CallsUpdateParams.
       CallsUpdateParams.builder()
          .setId(String) // required id
          .setDesktopAppJoinUrl(Optional<String>) // optional desktopAppJoinUrl
          .setJoinUrl(Optional<String>) // optional joinUrl
          .setTitle(Optional<String>) // optional title
          .build();
       
      Returns:
      A new CallsUpdateParams builder