Class ConversationListResponse
java.lang.Object
com.hubspot.slack.client.models.response.conversations.ConversationListResponse
- All Implemented Interfaces:
ConversationListResponseIF,SlackResponse
@Generated(from="ConversationListResponseIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationListResponse
extends Object
implements ConversationListResponseIF
Immutable implementation of
ConversationListResponseIF.
Use the builder to create immutable instances:
ConversationListResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationListResponse. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationListResponse.static ConversationListResponsecopyOf(ConversationListResponseIF instance) Creates an immutable copy of aConversationListResponseIFvalue.booleanThis instance is equal to all instances ofConversationListResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:ok,responseMetadata,conversations.booleanisOk()toString()Prints the immutable valueConversationListResponsewith attribute values.final ConversationListResponsewithConversations(Conversation... elements) Copy the current immutable object with elements that replace the content ofconversations.final ConversationListResponsewithConversations(Iterable<? extends Conversation> elements) Copy the current immutable object with elements that replace the content ofconversations.final ConversationListResponsewithOk(boolean value) Copy the current immutable object by setting a value for theokattribute.final ConversationListResponseCopy the current immutable object by setting a present value for the optionalresponseMetadataattribute.final ConversationListResponsewithResponseMetadata(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
-
getConversations
- Specified by:
getConversationsin interfaceConversationListResponseIF- Returns:
- The value of the
conversationsattribute
-
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 ConversationListResponse 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
-
withConversations
Copy the current immutable object with elements that replace the content ofconversations.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withConversations
Copy the current immutable object with elements that replace the content ofconversations. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of conversations elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationListResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ok,responseMetadata,conversations. -
toString
Prints the immutable valueConversationListResponsewith attribute values. -
copyOf
Creates an immutable copy of aConversationListResponseIFvalue. 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 ConversationListResponse instance
-
builder
Creates a builder forConversationListResponse.ConversationListResponse.builder() .setOk(boolean) // requiredok.setResponseMetadata(Optional<ResponseMetadata>) // optionalresponseMetadata.addConversations|addAllConversations(com.hubspot.slack.client.models.conversations.Conversation) //conversationselements .build();- Returns:
- A new ConversationListResponse builder
-