Class SetTitleParams
java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetTitleParams
- All Implemented Interfaces:
HasChannel,SetTitleParamsIF
@Generated(from="SetTitleParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class SetTitleParams
extends Object
implements SetTitleParamsIF
Immutable implementation of
SetTitleParamsIF.
Use the builder to create immutable instances:
SetTitleParams.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SetTitleParams.Builderbuilder()Creates a builder forSetTitleParams.static SetTitleParamscopyOf(SetTitleParamsIF instance) Creates an immutable copy of aSetTitleParamsIFvalue.booleanThis instance is equal to all instances ofSetTitleParamsthat have equal attribute values.getTitle()inthashCode()Computes a hash code from attributes:channelId,channel,threadTs,title.toString()Prints the immutable valueSetTitleParamswith attribute values.final SetTitleParamswithChannelId(String value) Copy the current immutable object by setting a value for thechannelIdattribute.final SetTitleParamswithThreadTs(String value) Copy the current immutable object by setting a value for thethreadTsattribute.final SetTitleParamsCopy the current immutable object by setting a value for thetitleattribute.
-
Method Details
-
getChannelId
- Specified by:
getChannelIdin interfaceHasChannel- Returns:
- The value of the
channelIdattribute
-
getChannel
- Specified by:
getChannelin interfaceSetTitleParamsIF- Returns:
- The computed-at-construction value of the
channelattribute
-
getThreadTs
- Specified by:
getThreadTsin interfaceSetTitleParamsIF- Returns:
- The value of the
threadTsattribute
-
getTitle
- Specified by:
getTitlein interfaceSetTitleParamsIF- Returns:
- The value of the
titleattribute
-
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 value for thethreadTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for threadTs- Returns:
- A modified copy or the
thisobject
-
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
-
equals
This instance is equal to all instances ofSetTitleParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channelId,channel,threadTs,title. -
toString
Prints the immutable valueSetTitleParamswith attribute values. -
copyOf
Creates an immutable copy of aSetTitleParamsIFvalue. 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 SetTitleParams instance
-
builder
Creates a builder forSetTitleParams.SetTitleParams.builder() .setChannelId(String) // requiredchannelId.setThreadTs(String) // requiredthreadTs.setTitle(String) // requiredtitle.build();- Returns:
- A new SetTitleParams builder
-