Class SetSuggestedPromptsParams
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParams
- All Implemented Interfaces:
HasChannel,SetSuggestedPromptsParamsIF
@Generated(from="SetSuggestedPromptsParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SetSuggestedPromptsParams
extends Object
implements SetSuggestedPromptsParamsIF
Immutable implementation of
SetSuggestedPromptsParamsIF.
Use the builder to create immutable instances:
SetSuggestedPromptsParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeSetSuggestedPromptsParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forSetSuggestedPromptsParams.static SetSuggestedPromptsParamscopyOf(SetSuggestedPromptsParamsIF instance) Creates an immutable copy of aSetSuggestedPromptsParamsIFvalue.booleanThis instance is equal to all instances ofSetSuggestedPromptsParamsthat have equal attribute values.getTitle()inthashCode()Computes a hash code from attributes:channelId,channel,threadTs,title,prompts.toString()Prints the immutable valueSetSuggestedPromptsParamswith attribute values.withChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.withPrompts(Prompt... elements) Copy the current immutable object with elements that replace the content ofprompts.withPrompts(Iterable<? extends Prompt> elements) Copy the current immutable object with elements that replace the content ofprompts.withThreadTs(String value) Copy the current immutable object by setting a present value for the optionalthreadTsattribute.withThreadTs(Optional<String> optional) Copy the current immutable object by setting an optional value for thethreadTsattribute.Copy the current immutable object by setting a present value for the optionaltitleattribute.Copy the current immutable object by setting an optional value for thetitleattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getChannel
- Specified by:
getChannelin interfaceSetSuggestedPromptsParamsIF- Returns:
- The computed-at-construction value of the
channelattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceSetSuggestedPromptsParamsIF- Returns:
- The value of the
threadTsattribute
-
getTitle
- Specified by:
getTitlein interfaceSetSuggestedPromptsParamsIF- Returns:
- The value of the
titleattribute
-
getPrompts
- Specified by:
getPromptsin interfaceSetSuggestedPromptsParamsIF- Returns:
- The value of the
promptsattribute
-
withChannelId
Copy the current immutable object by setting a value for thechannelIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channelId- Returns:
- A modified copy or the
thisobject
-
withThreadTs
Copy the current immutable object by setting a present value for the optionalthreadTsattribute.- Parameters:
value- The value for threadTs,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withThreadTs
Copy the current immutable object by setting an optional value for thethreadTsattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for threadTs- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting a present value for the optionaltitleattribute.- Parameters:
value- The value for title,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withTitle
Copy the current immutable object by setting an optional value for thetitleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for title- Returns:
- A modified copy or
thisif not changed
-
withPrompts
Copy the current immutable object with elements that replace the content ofprompts.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPrompts
Copy the current immutable object with elements that replace the content ofprompts. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of prompts elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofSetSuggestedPromptsParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,channel,threadTs,title,prompts. -
toString
Prints the immutable valueSetSuggestedPromptsParamswith attribute values. -
copyOf
Creates an immutable copy of aSetSuggestedPromptsParamsIFvalue. 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 SetSuggestedPromptsParams instance
-
builder
Creates a builder forSetSuggestedPromptsParams.SetSuggestedPromptsParams.builder() .setChannelId(String) // requiredchannelId.setThreadTs(Optional<String>) // optionalthreadTs.setTitle(Optional<String>) // optionaltitle.addPrompts|addAllPrompts(Prompt) //promptselements .build();- Returns:
- A new SetSuggestedPromptsParams builder
-