Class ConversationCreateParams
java.lang.Object
com.hubspot.slack.client.methods.params.conversations.ConversationCreateParams
- All Implemented Interfaces:
ConversationCreateParamsIF
@Generated(from="ConversationCreateParamsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ConversationCreateParams
extends Object
implements ConversationCreateParamsIF
Immutable implementation of
ConversationCreateParamsIF.
Use the builder to create immutable instances:
ConversationCreateParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeConversationCreateParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forConversationCreateParams.static ConversationCreateParamscopyOf(ConversationCreateParamsIF instance) Creates an immutable copy of aConversationCreateParamsIFvalue.booleanThis instance is equal to all instances ofConversationCreateParamsthat have equal attribute values.getName()inthashCode()Computes a hash code from attributes:name,isPrivate.booleantoString()Prints the immutable valueConversationCreateParamswith attribute values.final ConversationCreateParamsCopy the current immutable object by setting a value for thenameattribute.final ConversationCreateParamswithPrivate(boolean value) Copy the current immutable object by setting a value for theprivateattribute.
-
Method Details
-
getName
- Specified by:
getNamein interfaceConversationCreateParamsIF- Returns:
- The value of the
nameattribute
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceConversationCreateParamsIF- Returns:
- The value of the
isPrivateattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withPrivate
Copy the current immutable object by setting a value for theprivateattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isPrivate- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofConversationCreateParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,isPrivate. -
toString
Prints the immutable valueConversationCreateParamswith attribute values. -
copyOf
Creates an immutable copy of aConversationCreateParamsIFvalue. 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 ConversationCreateParams instance
-
builder
Creates a builder forConversationCreateParams.ConversationCreateParams.builder() .setName(String) // requiredname.setPrivate(boolean) // requiredprivate.build();- Returns:
- A new ConversationCreateParams builder
-