Class ChatStartStreamResponse
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatStartStreamResponse
- All Implemented Interfaces:
ChatStartStreamResponseIF,SlackResponse
@Generated(from="ChatStartStreamResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatStartStreamResponse
extends Object
implements ChatStartStreamResponseIF
Immutable implementation of
ChatStartStreamResponseIF.
Use the builder to create immutable instances:
ChatStartStreamResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatStartStreamResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatStartStreamResponse.static ChatStartStreamResponsecopyOf(ChatStartStreamResponseIF instance) Creates an immutable copy of aChatStartStreamResponseIFvalue.booleanThis instance is equal to all instances ofChatStartStreamResponsethat have equal attribute values.getTs()inthashCode()Computes a hash code from attributes:ok,responseMetadata,channel,ts.booleanisOk()toString()Prints the immutable valueChatStartStreamResponsewith attribute values.final ChatStartStreamResponsewithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatStartStreamResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ChatStartStreamResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ChatStartStreamResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.final ChatStartStreamResponseCopy the current immutable object by setting a value for thetsattribute.
-
Method Details
-
isOk
public boolean isOk()- Specified by:
isOkin interfaceSlackResponse- Returns:
- The value of the
okattribute
-
getResponseMetadata
- Specified by:
getResponseMetadatain interfaceSlackResponse- Returns:
- The value of the
responseMetadataattribute
-
getChannel
- Specified by:
getChannelin interfaceChatStartStreamResponseIF- Returns:
- The value of the
channelattribute
-
getTs
- Specified by:
getTsin interfaceChatStartStreamResponseIF- Returns:
- The value of the
tsattribute
-
withOk
Copy the current immutable object by setting a value for theokattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ok- Returns:
- A modified copy or the
thisobject
-
withResponseMetadata
Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.- Parameters:
value- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseMetadata
public final ChatStartStreamResponse withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute. 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 responseMetadata- Returns:
- A modified copy or
thisif not changed
-
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
-
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 ofChatStartStreamResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,channel,ts. -
toString
Prints the immutable valueChatStartStreamResponsewith attribute values. -
copyOf
Creates an immutable copy of aChatStartStreamResponseIFvalue. 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 ChatStartStreamResponse instance
-
builder
Creates a builder forChatStartStreamResponse.ChatStartStreamResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setChannel(String) // requiredchannel.setTs(String) // requiredts.build();- Returns:
- A new ChatStartStreamResponse builder
-