Class ConversationsInfoParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationsInfoParams
- All Implemented Interfaces:
ConversationsInfoParamsIF
@Generated(from="ConversationsInfoParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationsInfoParams
extends Object
implements ConversationsInfoParamsIF
Immutable implementation of
ConversationsInfoParamsIF.
Use the builder to create immutable instances:
ConversationsInfoParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationsInfoParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationsInfoParams.static ConversationsInfoParamscopyOf(ConversationsInfoParamsIF instance) Creates an immutable copy of aConversationsInfoParamsIFvalue.booleanThis instance is equal to all instances ofConversationsInfoParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:conversationId,includeLocale,includeNumMembers.toString()Prints the immutable valueConversationsInfoParamswith attribute values.final ConversationsInfoParamswithConversationId(String value) Copy the current immutable object by setting a value for theconversationIdattribute.final ConversationsInfoParamswithIncludeLocale(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeLocaleattribute.final ConversationsInfoParamswithIncludeLocale(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeLocaleattribute.final ConversationsInfoParamswithIncludeNumMembers(Boolean value) Copy the current immutable object by setting a present value for the optionalincludeNumMembersattribute.final ConversationsInfoParamswithIncludeNumMembers(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theincludeNumMembersattribute.
-
Method Details
-
getConversationId
- Specified by:
getConversationIdin interfaceConversationsInfoParamsIF- Returns:
- The value of the
conversationIdattribute
-
getIncludeLocale
- Specified by:
getIncludeLocalein interfaceConversationsInfoParamsIF- Returns:
- The value of the
includeLocaleattribute
-
getIncludeNumMembers
- Specified by:
getIncludeNumMembersin interfaceConversationsInfoParamsIF- Returns:
- The value of the
includeNumMembersattribute
-
withConversationId
Copy the current immutable object by setting a value for theconversationIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for conversationId- Returns:
- A modified copy or the
thisobject
-
withIncludeLocale
Copy the current immutable object by setting a present value for the optionalincludeLocaleattribute.- Parameters:
value- The value for includeLocale,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeLocale
Copy the current immutable object by setting an optional value for theincludeLocaleattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeLocale- Returns:
- A modified copy or
thisif not changed
-
withIncludeNumMembers
Copy the current immutable object by setting a present value for the optionalincludeNumMembersattribute.- Parameters:
value- The value for includeNumMembers,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withIncludeNumMembers
Copy the current immutable object by setting an optional value for theincludeNumMembersattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for includeNumMembers- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofConversationsInfoParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:conversationId,includeLocale,includeNumMembers. -
toString
Prints the immutable valueConversationsInfoParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationsInfoParamsIFvalue. 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 ConversationsInfoParams instance
-
builder
Creates a builder forConversationsInfoParams.ConversationsInfoParams.builder() .setConversationId(String) // requiredconversationId.setIncludeLocale(Optional<Boolean>) // optionalincludeLocale.setIncludeNumMembers(Optional<Boolean>) // optionalincludeNumMembers.build();- Returns:
- A new ConversationsInfoParams builder
-