Class ChatUpdateMessageResponse
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatUpdateMessageResponse
- All Implemented Interfaces:
ChatUpdateMessageResponseIF,SlackResponse
@Generated(from="ChatUpdateMessageResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatUpdateMessageResponse
extends Object
implements ChatUpdateMessageResponseIF
Immutable implementation of
ChatUpdateMessageResponseIF.
Use the builder to create immutable instances:
ChatUpdateMessageResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatUpdateMessageResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatUpdateMessageResponse.static ChatUpdateMessageResponsecopyOf(ChatUpdateMessageResponseIF instance) Creates an immutable copy of aChatUpdateMessageResponseIFvalue.booleanThis instance is equal to all instances ofChatUpdateMessageResponsethat have equal attribute values.getText()getTs()inthashCode()Computes a hash code from attributes:ok,responseMetadata,ts,channel,text.booleanisOk()toString()Prints the immutable valueChatUpdateMessageResponsewith attribute values.withChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.withOk(boolean value) Copy the current immutable object by setting a value for theokattribute.Copy the current immutable object by setting a present value for the optionalresponseMetadataattribute.withResponseMetadata(Optional<? extends ResponseMetadata> optional) Copy the current immutable object by setting an optional value for theresponseMetadataattribute.Copy the current immutable object by setting a value for thetextattribute.Copy 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
-
getTs
- Specified by:
getTsin interfaceChatUpdateMessageResponseIF- Returns:
- The value of the
tsattribute
-
getChannel
- Specified by:
getChannelin interfaceChatUpdateMessageResponseIF- Returns:
- The value of the
channelattribute
-
getText
- Specified by:
getTextin interfaceChatUpdateMessageResponseIF- Returns:
- The value of the
textattribute
-
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 ChatUpdateMessageResponse 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
-
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
-
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
-
withText
Copy the current immutable object by setting a value for thetextattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for text- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofChatUpdateMessageResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,ts,channel,text. -
toString
Prints the immutable valueChatUpdateMessageResponsewith attribute values. -
copyOf
Creates an immutable copy of aChatUpdateMessageResponseIFvalue. 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 ChatUpdateMessageResponse instance
-
builder
Creates a builder forChatUpdateMessageResponse.ChatUpdateMessageResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setTs(String) // requiredts.setChannel(String) // requiredchannel.setText(String) // requiredtext.build();- Returns:
- A new ChatUpdateMessageResponse builder
-