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().

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface ConversationCreateParamsIF
      Returns:
      The value of the name attribute
    • isPrivate

      public boolean isPrivate()
      Specified by:
      isPrivate in interface ConversationCreateParamsIF
      Returns:
      The value of the isPrivate attribute
    • withName

      public final ConversationCreateParams withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy or the this object
    • withPrivate

      public final ConversationCreateParams withPrivate(boolean value)
      Copy the current immutable object by setting a value for the private attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isPrivate
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ConversationCreateParams that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: name, isPrivate.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value ConversationCreateParams with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ConversationCreateParams copyOf(ConversationCreateParamsIF instance)
      Creates an immutable copy of a ConversationCreateParamsIF value. 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

      public static ConversationCreateParams.Builder builder()
      Creates a builder for ConversationCreateParams.
       ConversationCreateParams.builder()
          .setName(String) // required name
          .setPrivate(boolean) // required private
          .build();
       
      Returns:
      A new ConversationCreateParams builder