Class ChatAppendStreamParams
java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatAppendStreamParams
- All Implemented Interfaces:
ChatAppendStreamParamsIF,StreamParams
@Generated(from="ChatAppendStreamParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatAppendStreamParams
extends Object
implements ChatAppendStreamParamsIF
Immutable implementation of
ChatAppendStreamParamsIF.
Use the builder to create immutable instances:
ChatAppendStreamParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatAppendStreamParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatAppendStreamParams.static ChatAppendStreamParamscopyOf(ChatAppendStreamParamsIF instance) Creates an immutable copy of aChatAppendStreamParamsIFvalue.booleanThis instance is equal to all instances ofChatAppendStreamParamsthat have equal attribute values.com.google.common.collect.ImmutableList<StreamChunk> getTs()inthashCode()Computes a hash code from attributes:channel,markdownText,chunks,ts.toString()Prints the immutable valueChatAppendStreamParamswith attribute values.final ChatAppendStreamParamswithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatAppendStreamParamswithChunks(StreamChunk... elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatAppendStreamParamswithChunks(Iterable<? extends StreamChunk> elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatAppendStreamParamswithMarkdownText(String value) Copy the current immutable object by setting a present value for the optionalmarkdownTextattribute.final ChatAppendStreamParamswithMarkdownText(Optional<String> optional) Copy the current immutable object by setting an optional value for themarkdownTextattribute.final ChatAppendStreamParamsCopy the current immutable object by setting a value for thetsattribute.Methods inherited from interface com.hubspot.slack.client.methods.params.stream.ChatAppendStreamParamsIF
checkExactlyOnePresentMethods inherited from interface com.hubspot.slack.client.methods.params.stream.StreamParams
checkMutuallyExclusive
-
Method Details
-
getChannel
- Specified by:
getChannelin interfaceStreamParams- Returns:
- The value of the
channelattribute
-
getMarkdownText
- Specified by:
getMarkdownTextin interfaceStreamParams- Returns:
- The value of the
markdownTextattribute
-
getChunks
- Specified by:
getChunksin interfaceStreamParams- Returns:
- The value of the
chunksattribute
-
getTs
- Specified by:
getTsin interfaceChatAppendStreamParamsIF- Returns:
- The value of the
tsattribute
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- Returns:
- A modified copy or the
thisobject
-
withMarkdownText
Copy the current immutable object by setting a present value for the optionalmarkdownTextattribute.- Parameters:
value- The value for markdownText,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMarkdownText
Copy the current immutable object by setting an optional value for themarkdownTextattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for markdownText- Returns:
- A modified copy or
thisif not changed
-
withChunks
Copy the current immutable object with elements that replace the content ofchunks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withChunks
Copy the current immutable object with elements that replace the content ofchunks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of chunks elements to set- Returns:
- A modified copy or
thisif not changed
-
withTs
Copy the current immutable object by setting a value for thetsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ts- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatAppendStreamParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channel,markdownText,chunks,ts. -
toString
Prints the immutable valueChatAppendStreamParamswith attribute values. -
copyOf
Creates an immutable copy of aChatAppendStreamParamsIFvalue. 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 ChatAppendStreamParams instance
-
builder
Creates a builder forChatAppendStreamParams.ChatAppendStreamParams.builder() .setChannel(String) // requiredchannel.setMarkdownText(Optional<String>) // optionalmarkdownText.addChunks|addAllChunks(com.hubspot.slack.client.methods.params.stream.chunks.StreamChunk) //chunkselements .setTs(String) // requiredts.build();- Returns:
- A new ChatAppendStreamParams builder
-