Class Prompt
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.Prompt
- All Implemented Interfaces:
PromptIF
@Generated(from="PromptIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Prompt
extends Object
implements PromptIF
Immutable implementation of
PromptIF.
Use the builder to create immutable instances:
Prompt.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Prompt.Builderbuilder()Creates a builder forPrompt.static PromptCreates an immutable copy of aPromptIFvalue.booleanThis instance is equal to all instances ofPromptthat have equal attribute values.getTitle()inthashCode()Computes a hash code from attributes:title,message.toString()Prints the immutable valuePromptwith attribute values.final PromptwithMessage(String value) Copy the current immutable object by setting a value for themessageattribute.final PromptCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getTitle
-
getMessage
- Specified by:
getMessagein interfacePromptIF- Returns:
- The value of the
messageattribute
-
withTitle
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title- Returns:
- A modified copy or the
thisobject
-
withMessage
Copy the current immutable object by setting a value for themessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofPromptthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:title,message. -
toString
Prints the immutable valuePromptwith attribute values. -
copyOf
Creates an immutable copy of aPromptIFvalue. 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 Prompt instance
-
builder
Creates a builder forPrompt.Prompt.builder() .setTitle(String) // requiredtitle.setMessage(String) // requiredmessage.build();- Returns:
- A new Prompt builder
-