Class Conversation
java.lang.Object
com.hubspot.slack.client.models.conversations.Conversation
- All Implemented Interfaces:
ConversationIF
@Generated(from="ConversationIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Conversation
extends Object
implements ConversationIF
Immutable implementation of
ConversationIF.
Use the builder to create immutable instances:
Conversation.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Conversation.Builderbuilder()Creates a builder forConversation.static ConversationcopyOf(ConversationIF instance) Creates an immutable copy of aConversationIFvalue.booleanThis instance is equal to all instances ofConversationthat have equal attribute values.getId()getName()inthashCode()Computes a hash code from attributes:id,name,channel,group,mpim,im,archived,general,isPrivate,member,shared,numMembers.isGroup()isIm()isMember()isMpim()isShared()toString()Prints the immutable valueConversationwith attribute values.final ConversationwithArchived(Boolean value) Copy the current immutable object by setting a present value for the optionalarchivedattribute.final ConversationwithArchived(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thearchivedattribute.final ConversationwithChannel(Boolean value) Copy the current immutable object by setting a present value for the optionalchannelattribute.final ConversationwithChannel(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thechannelattribute.final ConversationwithGeneral(Boolean value) Copy the current immutable object by setting a present value for the optionalgeneralattribute.final ConversationwithGeneral(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thegeneralattribute.final ConversationCopy the current immutable object by setting a present value for the optionalgroupattribute.final ConversationCopy the current immutable object by setting an optional value for thegroupattribute.final ConversationCopy the current immutable object by setting a value for theidattribute.final ConversationCopy the current immutable object by setting a present value for the optionalimattribute.final ConversationCopy the current immutable object by setting an optional value for theimattribute.final ConversationwithMember(Boolean value) Copy the current immutable object by setting a present value for the optionalmemberattribute.final ConversationwithMember(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thememberattribute.final ConversationCopy the current immutable object by setting a present value for the optionalmpimattribute.final ConversationCopy the current immutable object by setting an optional value for thempimattribute.final ConversationCopy the current immutable object by setting a present value for the optionalnameattribute.final ConversationCopy the current immutable object by setting an optional value for thenameattribute.final ConversationwithNumMembers(Integer value) Copy the current immutable object by setting a present value for the optionalnumMembersattribute.final ConversationwithNumMembers(Optional<Integer> optional) Copy the current immutable object by setting an optional value for thenumMembersattribute.final ConversationwithPrivate(Boolean value) Copy the current immutable object by setting a present value for the optionalprivateattribute.final ConversationwithPrivate(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theprivateattribute.final ConversationwithShared(Boolean value) Copy the current immutable object by setting a present value for the optionalsharedattribute.final ConversationwithShared(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thesharedattribute.
-
Method Details
-
getId
- Specified by:
getIdin interfaceConversationIF- Returns:
- The value of the
idattribute
-
getName
- Specified by:
getNamein interfaceConversationIF- Returns:
- The value of the
nameattribute
-
isChannel
- Specified by:
isChannelin interfaceConversationIF- Returns:
- The value of the
channelattribute
-
isGroup
- Specified by:
isGroupin interfaceConversationIF- Returns:
- The value of the
groupattribute
-
isMpim
- Specified by:
isMpimin interfaceConversationIF- Returns:
- The value of the
mpimattribute
-
isIm
- Specified by:
isImin interfaceConversationIF- Returns:
- The value of the
imattribute
-
isArchived
- Specified by:
isArchivedin interfaceConversationIF- Returns:
- The value of the
archivedattribute
-
isGeneral
- Specified by:
isGeneralin interfaceConversationIF- Returns:
- The value of the
generalattribute
-
isPrivate
- Specified by:
isPrivatein interfaceConversationIF- Returns:
- The value of the
isPrivateattribute
-
isMember
- Specified by:
isMemberin interfaceConversationIF- Returns:
- The value of the
memberattribute
-
getNumMembers
- Specified by:
getNumMembersin interfaceConversationIF- Returns:
- The value of the
numMembersattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy or the
thisobject
-
withName
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withName
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for name- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting a present value for the optionalchannelattribute.- Parameters:
value- The value for channel,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withChannel
Copy the current immutable object by setting an optional value for thechannelattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for channel- Returns:
- A modified copy or
thisif not changed
-
withGroup
Copy the current immutable object by setting a present value for the optionalgroupattribute.- Parameters:
value- The value for group,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withGroup
Copy the current immutable object by setting an optional value for thegroupattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for group- Returns:
- A modified copy or
thisif not changed
-
withMpim
Copy the current immutable object by setting a present value for the optionalmpimattribute.- Parameters:
value- The value for mpim,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMpim
Copy the current immutable object by setting an optional value for thempimattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for mpim- Returns:
- A modified copy or
thisif not changed
-
withIm
Copy the current immutable object by setting a present value for the optionalimattribute.- Parameters:
value- The value for im,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIm
Copy the current immutable object by setting an optional value for theimattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for im- Returns:
- A modified copy or
thisif not changed
-
withArchived
Copy the current immutable object by setting a present value for the optionalarchivedattribute.- Parameters:
value- The value for archived,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withArchived
Copy the current immutable object by setting an optional value for thearchivedattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for archived- Returns:
- A modified copy or
thisif not changed
-
withGeneral
Copy the current immutable object by setting a present value for the optionalgeneralattribute.- Parameters:
value- The value for general,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withGeneral
Copy the current immutable object by setting an optional value for thegeneralattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for general- Returns:
- A modified copy or
thisif not changed
-
withPrivate
Copy the current immutable object by setting a present value for the optionalprivateattribute.- Parameters:
value- The value for isPrivate,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withPrivate
Copy the current immutable object by setting an optional value for theprivateattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for isPrivate- Returns:
- A modified copy or
thisif not changed
-
withMember
Copy the current immutable object by setting a present value for the optionalmemberattribute.- Parameters:
value- The value for member,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMember
Copy the current immutable object by setting an optional value for thememberattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for member- Returns:
- A modified copy or
thisif not changed
-
withNumMembers
Copy the current immutable object by setting a present value for the optionalnumMembersattribute.- Parameters:
value- The value for numMembers,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withNumMembers
Copy the current immutable object by setting an optional value for thenumMembersattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for numMembers- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,channel,group,mpim,im,archived,general,isPrivate,member,shared,numMembers. -
toString
Prints the immutable valueConversationwith attribute values. -
copyOf
Creates an immutable copy of aConversationIFvalue. 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 Conversation instance
-
builder
Creates a builder forConversation.Conversation.builder() .setId(String) // requiredid.setName(Optional<String>) // optionalname.setChannel(Optional<Boolean>) // optionalchannel.setGroup(Optional<Boolean>) // optionalgroup.setMpim(Optional<Boolean>) // optionalmpim.setIm(Optional<Boolean>) // optionalim.setArchived(Optional<Boolean>) // optionalarchived.setGeneral(Optional<Boolean>) // optionalgeneral.setPrivate(Optional<Boolean>) // optionalprivate.setMember(Optional<Boolean>) // optionalmember.setShared(Optional<Boolean>) // optionalshared.setNumMembers(Optional<Integer>) // optionalnumMembers.build();- Returns:
- A new Conversation builder
-