Class Prompt.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.Prompt.Builder
- Enclosing class:
Prompt
@Generated(from="PromptIF",
generator="Immutables")
@NotThreadSafe
public static final class Prompt.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newPrompt.final Prompt.BuilderFill a builder with attribute values from the providedPromptIFinstance.final Prompt.BuildersetMessage(String message) Initializes the value for themessageattribute.final Prompt.BuilderInitializes the value for thetitleattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPromptIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the value for thetitleattribute.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
setMessage
Initializes the value for themessageattribute.- Parameters:
message- The value for message- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPrompt.- Returns:
- An immutable instance of Prompt
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-