Class ChatStopStreamResponse
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatStopStreamResponse
- All Implemented Interfaces:
ChatStopStreamResponseIF,SlackResponse
@Generated(from="ChatStopStreamResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatStopStreamResponse
extends Object
implements ChatStopStreamResponseIF
Immutable implementation of
ChatStopStreamResponseIF.
Use the builder to create immutable instances:
ChatStopStreamResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatStopStreamResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatStopStreamResponse.static ChatStopStreamResponsecopyOf(ChatStopStreamResponseIF instance) Creates an immutable copy of aChatStopStreamResponseIFvalue.booleanThis instance is equal to all instances ofChatStopStreamResponsethat have equal attribute values.getTs()inthashCode()Computes a hash code from attributes:ok,responseMetadata,channel,ts,message.booleanisOk()toString()Prints the immutable valueChatStopStreamResponsewith attribute values.final ChatStopStreamResponsewithChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.final ChatStopStreamResponsewithMessage(Map<String, ? extends Object> entries) Copy the current immutable object by replacing themessagemap with the specified map.final ChatStopStreamResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ChatStopStreamResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ChatStopStreamResponsewithResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.final ChatStopStreamResponseCopy 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 interfaceChatStopStreamResponseIF- Returns:
- The value of the
channelattribute
-
getTs
- Specified by:
getTsin interfaceChatStopStreamResponseIF- Returns:
- The value of the
tsattribute
-
getMessage
- Specified by:
getMessagein interfaceChatStopStreamResponseIF- Returns:
- The value of the
messageattribute
-
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 ChatStopStreamResponse 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
-
withMessage
Copy the current immutable object by replacing themessagemap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the message map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofChatStopStreamResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,channel,ts,message. -
toString
Prints the immutable valueChatStopStreamResponsewith attribute values. -
copyOf
Creates an immutable copy of aChatStopStreamResponseIFvalue. 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 ChatStopStreamResponse instance
-
builder
Creates a builder forChatStopStreamResponse.ChatStopStreamResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setChannel(String) // requiredchannel.setTs(String) // requiredts.putMessage|putAllMessage(String => Object) //messagemappings .build();- Returns:
- A new ChatStopStreamResponse builder
-