Class ChatScheduleMessageResponse
java.lang.Object
com.hubspot.slack.client.models.response.chat.ChatScheduleMessageResponse
- All Implemented Interfaces:
ChatScheduleMessageResponseIF,SlackResponse
@Generated(from="ChatScheduleMessageResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ChatScheduleMessageResponse
extends Object
implements ChatScheduleMessageResponseIF
Immutable implementation of
ChatScheduleMessageResponseIF.
Use the builder to create immutable instances:
ChatScheduleMessageResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeChatScheduleMessageResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forChatScheduleMessageResponse.static ChatScheduleMessageResponsecopyOf(ChatScheduleMessageResponseIF instance) Creates an immutable copy of aChatScheduleMessageResponseIFvalue.booleanThis instance is equal to all instances ofChatScheduleMessageResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,channel,scheduledMessageId,postAt,message.booleanisOk()toString()Prints the immutable valueChatScheduleMessageResponsewith attribute values.withChannel(String value) Copy the current immutable object by setting a value for thechannelattribute.withMessage(Map<String, ? extends Object> entries) Copy the current immutable object by replacing themessagemap with the specified map.withOk(boolean value) Copy the current immutable object by setting a value for theokattribute.withPostAt(String value) Copy the current immutable object by setting a value for thepostAtattribute.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.withScheduledMessageId(String value) Copy the current immutable object by setting a value for thescheduledMessageIdattribute.
-
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 interfaceChatScheduleMessageResponseIF- Returns:
- The value of the
channelattribute
-
getScheduledMessageId
- Specified by:
getScheduledMessageIdin interfaceChatScheduleMessageResponseIF- Returns:
- The value of the
scheduledMessageIdattribute
-
getPostAt
- Specified by:
getPostAtin interfaceChatScheduleMessageResponseIF- Returns:
- The value of the
postAtattribute
-
getMessage
- Specified by:
getMessagein interfaceChatScheduleMessageResponseIF- 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 ChatScheduleMessageResponse 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
-
withScheduledMessageId
Copy the current immutable object by setting a value for thescheduledMessageIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for scheduledMessageId- Returns:
- A modified copy or the
thisobject
-
withPostAt
Copy the current immutable object by setting a value for thepostAtattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for postAt- 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 ofChatScheduleMessageResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,channel,scheduledMessageId,postAt,message. -
toString
Prints the immutable valueChatScheduleMessageResponsewith attribute values. -
copyOf
Creates an immutable copy of aChatScheduleMessageResponseIFvalue. 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 ChatScheduleMessageResponse instance
-
builder
Creates a builder forChatScheduleMessageResponse.ChatScheduleMessageResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.setChannel(String) // requiredchannel.setScheduledMessageId(String) // requiredscheduledMessageId.setPostAt(String) // requiredpostAt.putMessage|putAllMessage(String => Object) //messagemappings .build();- Returns:
- A new ChatScheduleMessageResponse builder
-