Class SetSuggestedPromptsParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParams.Builder
- Enclosing class:
SetSuggestedPromptsParams
@Generated(from="SetSuggestedPromptsParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class SetSuggestedPromptsParams.Builder
extends Object
Builds instances of type
SetSuggestedPromptsParams.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPrompts(Iterable<? extends Prompt> elements) Adds elements topromptslist.addPrompts(Prompt element) Adds one element topromptslist.addPrompts(Prompt... elements) Adds elements topromptslist.build()Builds a newSetSuggestedPromptsParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(SetSuggestedPromptsParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParamsIFinstance.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setPrompts(Iterable<? extends Prompt> elements) Sets or replaces all elements forpromptslist.setThreadTs(String threadTs) Initializes the optional valuethreadTsto threadTs.setThreadTs(Optional<String> threadTs) Initializes the optional valuethreadTsto threadTs.Initializes the optional valuetitleto title.Initializes the optional valuetitleto title.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- Returns:
thisbuilder for use in a chained invocation
-
setThreadTs
Initializes the optional valuethreadTsto threadTs.- Parameters:
threadTs- The value for threadTs,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setThreadTs
Initializes the optional valuethreadTsto threadTs.- Parameters:
threadTs- The value for threadTs- Returns:
thisbuilder for use in a chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTitle
Initializes the optional valuetitleto title.- Parameters:
title- The value for title- Returns:
thisbuilder for use in a chained invocation
-
addPrompts
Adds one element topromptslist.- Parameters:
element- A prompts element- Returns:
thisbuilder for use in a chained invocation
-
addPrompts
Adds elements topromptslist.- Parameters:
elements- An array of prompts elements- Returns:
thisbuilder for use in a chained invocation
-
setPrompts
Sets or replaces all elements forpromptslist.- Parameters:
elements- An iterable of prompts elements- Returns:
thisbuilder for use in a chained invocation
-
addAllPrompts
Adds elements topromptslist.- Parameters:
elements- An iterable of prompts elements- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newSetSuggestedPromptsParams.- Returns:
- An immutable instance of SetSuggestedPromptsParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-