Class ChallengeEvent
java.lang.Object
com.hubspot.slack.client.models.events.ChallengeEvent
- All Implemented Interfaces:
ChallengeEventIF
@Generated(from="ChallengeEventIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChallengeEvent
extends Object
implements ChallengeEventIF
Immutable implementation of
ChallengeEventIF.
Use the builder to create immutable instances:
ChallengeEvent.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChallengeEvent.Builderbuilder()Creates a builder forChallengeEvent.static ChallengeEventcopyOf(ChallengeEventIF instance) Creates an immutable copy of aChallengeEventIFvalue.booleanThis instance is equal to all instances ofChallengeEventthat have equal attribute values.getToken()getType()inthashCode()Computes a hash code from attributes:token,challenge,type.toString()Prints the immutable valueChallengeEventwith attribute values.final ChallengeEventwithChallenge(String value) Copy the current immutable object by setting a value for thechallengeattribute.final ChallengeEventCopy the current immutable object by setting a value for thetokenattribute.final ChallengeEventCopy the current immutable object by setting a value for thetypeattribute.
-
Method Details
-
getToken
- Specified by:
getTokenin interfaceChallengeEventIF- Returns:
- The value of the
tokenattribute
-
getChallenge
- Specified by:
getChallengein interfaceChallengeEventIF- Returns:
- The value of the
challengeattribute
-
getType
- Specified by:
getTypein interfaceChallengeEventIF- Returns:
- The value of the
typeattribute
-
withToken
Copy the current immutable object by setting a value for thetokenattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for token- Returns:
- A modified copy or the
thisobject
-
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
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChallengeEventthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:token,challenge,type. -
toString
Prints the immutable valueChallengeEventwith attribute values. -
copyOf
Creates an immutable copy of aChallengeEventIFvalue. 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 ChallengeEvent instance
-
builder
Creates a builder forChallengeEvent.ChallengeEvent.builder() .setToken(String) // requiredtoken.setChallenge(String) // requiredchallenge.setType(String) // requiredtype.build();- Returns:
- A new ChallengeEvent builder
-