Class ChallengeResponse

java.lang.Object
com.hubspot.slack.client.models.events.ChallengeResponse
All Implemented Interfaces:
ChallengeResponseIF

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

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

  • Method Details

    • getChallenge

      public String getChallenge()
      Specified by:
      getChallenge in interface ChallengeResponseIF
      Returns:
      The value of the challenge attribute
    • withChallenge

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

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

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

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

      public static ChallengeResponse.Builder builder()
      Creates a builder for ChallengeResponse.
       ChallengeResponse.builder()
          .setChallenge(String) // required challenge
          .build();
       
      Returns:
      A new ChallengeResponse builder