Class ConversationsRepliesResponse
java.lang.Object
com.hubspot.slack.client.models.response.conversations.ConversationsRepliesResponse
- All Implemented Interfaces:
ConversationsRepliesResponseIF,SlackResponse
@Generated(from="ConversationsRepliesResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsRepliesResponse
extends Object
implements ConversationsRepliesResponseIF
Immutable implementation of
ConversationsRepliesResponseIF.
Use the builder to create immutable instances:
ConversationsRepliesResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsRepliesResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsRepliesResponse.static ConversationsRepliesResponsecopyOf(ConversationsRepliesResponseIF instance) Creates an immutable copy of aConversationsRepliesResponseIFvalue.booleanThis instance is equal to all instances ofConversationsRepliesResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,messages,hasMore.booleanhasMore()booleanisOk()toString()Prints the immutable valueConversationsRepliesResponsewith attribute values.withHasMore(boolean value) Copy the current immutable object by setting a value for thehasMoreattribute.withMessages(LiteMessage... elements) Copy the current immutable object with elements that replace the content ofmessages.withMessages(Iterable<? extends LiteMessage> elements) Copy the current immutable object with elements that replace the content ofmessages.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.
-
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
-
getMessages
- Specified by:
getMessagesin interfaceConversationsRepliesResponseIF- Returns:
- The value of the
messagesattribute
-
hasMore
public boolean hasMore()- Specified by:
hasMorein interfaceConversationsRepliesResponseIF- Returns:
- The value of the
hasMoreattribute
-
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 ConversationsRepliesResponse 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
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withMessages
Copy the current immutable object with elements that replace the content ofmessages. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of messages elements to set- Returns:
- A modified copy or
thisif not changed
-
withHasMore
Copy the current immutable object by setting a value for thehasMoreattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hasMore- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConversationsRepliesResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,messages,hasMore. -
toString
Prints the immutable valueConversationsRepliesResponsewith attribute values. -
copyOf
Creates an immutable copy of aConversationsRepliesResponseIFvalue. 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 ConversationsRepliesResponse instance
-
builder
Creates a builder forConversationsRepliesResponse.ConversationsRepliesResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.addMessages|addAllMessages(com.hubspot.slack.client.models.LiteMessage) //messageselements .setHasMore(boolean) // requiredhasMore.build();- Returns:
- A new ConversationsRepliesResponse builder
-