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().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChallengeResponse.Builderbuilder()Creates a builder forChallengeResponse.static ChallengeResponsecopyOf(ChallengeResponseIF instance) Creates an immutable copy of aChallengeResponseIFvalue.booleanThis instance is equal to all instances ofChallengeResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:challenge.toString()Prints the immutable valueChallengeResponsewith attribute values.final ChallengeResponsewithChallenge(String value) Copy the current immutable object by setting a value for thechallengeattribute.
-
Method Details
-
getChallenge
- Specified by:
getChallengein interfaceChallengeResponseIF- Returns:
- The value of the
challengeattribute
-
withChallenge
Copy the current immutable object by setting a value for thechallengeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for challenge- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChallengeResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:challenge. -
toString
Prints the immutable valueChallengeResponsewith attribute values. -
copyOf
Creates an immutable copy of aChallengeResponseIFvalue. 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
Creates a builder forChallengeResponse.ChallengeResponse.builder() .setChallenge(String) // requiredchallenge.build();- Returns:
- A new ChallengeResponse builder
-