Class ChatStopStreamParams
java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatStopStreamParams
- All Implemented Interfaces:
ChatStopStreamParamsIF,StreamParams
@Generated(from="ChatStopStreamParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatStopStreamParams
extends Object
implements ChatStopStreamParamsIF
Immutable implementation of
ChatStopStreamParamsIF.
Use the builder to create immutable instances:
ChatStopStreamParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatStopStreamParams. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatStopStreamParams.Builderbuilder()Creates a builder forChatStopStreamParams.static ChatStopStreamParamscopyOf(ChatStopStreamParamsIF instance) Creates an immutable copy of aChatStopStreamParamsIFvalue.booleanThis instance is equal to all instances ofChatStopStreamParamsthat have equal attribute values.com.google.common.collect.ImmutableList<Block> com.google.common.collect.ImmutableList<StreamChunk> getTs()inthashCode()Computes a hash code from attributes:channel,markdownText,chunks,ts,blocks,metadata.toString()Prints the immutable valueChatStopStreamParamswith attribute values.final ChatStopStreamParamswithBlocks(Block... elements) Copy the current immutable object with elements that replace the content ofblocks.final ChatStopStreamParamswithBlocks(Iterable<? extends Block> elements) Copy the current immutable object with elements that replace the content ofblocks.final ChatStopStreamParamswithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatStopStreamParamswithChunks(StreamChunk... elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatStopStreamParamswithChunks(Iterable<? extends StreamChunk> elements) Copy the current immutable object with elements that replace the content ofchunks.final ChatStopStreamParamswithMarkdownText(String value) Copy the current immutable object by setting a present value for the optionalmarkdownTextattribute.final ChatStopStreamParamswithMarkdownText(Optional<String> optional) Copy the current immutable object by setting an optional value for themarkdownTextattribute.final ChatStopStreamParamswithMetadata(StreamMetadata value) Copy the current immutable object by setting a present value for the optionalmetadataattribute.final ChatStopStreamParamswithMetadata(Optional<? extends StreamMetadata> optional) Copy the current immutable object by setting an optional value for themetadataattribute.final ChatStopStreamParamsCopy the current immutable object by setting a value for thetsattribute.Methods 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 interfaceChatStopStreamParamsIF- Returns:
- The value of the
tsattribute
-
getBlocks
- Specified by:
getBlocksin interfaceChatStopStreamParamsIF- Returns:
- The value of the
blocksattribute
-
getMetadata
- Specified by:
getMetadatain interfaceChatStopStreamParamsIF- Returns:
- The value of the
metadataattribute
-
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
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBlocks
Copy the current immutable object with elements that replace the content ofblocks. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of blocks elements to set- Returns:
- A modified copy or
thisif not changed
-
withMetadata
Copy the current immutable object by setting a present value for the optionalmetadataattribute.- Parameters:
value- The value for metadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMetadata
Copy the current immutable object by setting an optional value for themetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for metadata- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofChatStopStreamParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:channel,markdownText,chunks,ts,blocks,metadata. -
toString
Prints the immutable valueChatStopStreamParamswith attribute values. -
copyOf
Creates an immutable copy of aChatStopStreamParamsIFvalue. 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 ChatStopStreamParams instance
-
builder
Creates a builder forChatStopStreamParams.ChatStopStreamParams.builder() .setChannel(String) // requiredchannel.setMarkdownText(Optional<String>) // optionalmarkdownText.addChunks|addAllChunks(com.hubspot.slack.client.methods.params.stream.chunks.StreamChunk) //chunkselements .setTs(String) // requiredts.addBlocks|addAllBlocks(com.hubspot.slack.client.models.blocks.Block) //blockselements .setMetadata(Optional<StreamMetadata>) // optionalmetadata.build();- Returns:
- A new ChatStopStreamParams builder
-