Class CallsUpdateResponse

java.lang.Object
com.hubspot.slack.client.models.response.calls.CallsUpdateResponse
All Implemented Interfaces:
CallsUpdateResponseIF, SlackResponse

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

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

  • Method Details

    • isOk

      public boolean isOk()
      Specified by:
      isOk in interface SlackResponse
      Returns:
      The value of the ok attribute
    • getResponseMetadata

      public Optional<ResponseMetadata> getResponseMetadata()
      Specified by:
      getResponseMetadata in interface SlackResponse
      Returns:
      The value of the responseMetadata attribute
    • getCall

      public SlackCall getCall()
      Specified by:
      getCall in interface CallsUpdateResponseIF
      Returns:
      The value of the call attribute
    • withOk

      public final CallsUpdateResponse withOk(boolean value)
      Copy the current immutable object by setting a value for the ok attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for ok
      Returns:
      A modified copy or the this object
    • withResponseMetadata

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

      public final CallsUpdateResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional)
      Copy the current immutable object by setting an optional value for the responseMetadata attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for responseMetadata
      Returns:
      A modified copy or this if not changed
    • withCall

      public final CallsUpdateResponse withCall(SlackCall value)
      Copy the current immutable object by setting a value for the call attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for call
      Returns:
      A modified copy or the this object
    • equals

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

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

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

      public static CallsUpdateResponse.Builder builder()
      Creates a builder for CallsUpdateResponse.
       CallsUpdateResponse.builder()
          .setOk(boolean) // required ok
          .setResponseMetadata(Optional<ResponseMetadata>) // optional responseMetadata
          .setCall(com.hubspot.slack.client.models.calls.SlackCall) // required call
          .build();
       
      Returns:
      A new CallsUpdateResponse builder