Class UsergroupEnableParams

java.lang.Object
com.hubspot.slack.client.methods.params.usergroups.UsergroupEnableParams
All Implemented Interfaces:
UsergroupEnableParamsIF

@Generated(from="UsergroupEnableParamsIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class UsergroupEnableParams extends Object implements UsergroupEnableParamsIF
Immutable implementation of UsergroupEnableParamsIF.

Use the builder to create immutable instances: UsergroupEnableParams.builder().

  • Method Details

    • getUsergroupId

      public String getUsergroupId()
      Specified by:
      getUsergroupId in interface UsergroupEnableParamsIF
      Returns:
      The value of the usergroupId attribute
    • getIncludeCount

      public Optional<Boolean> getIncludeCount()
      Specified by:
      getIncludeCount in interface UsergroupEnableParamsIF
      Returns:
      The value of the includeCount attribute
    • withUsergroupId

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

      public final UsergroupEnableParams withIncludeCount(@Nullable Boolean value)
      Copy the current immutable object by setting a present value for the optional includeCount attribute.
      Parameters:
      value - The value for includeCount, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withIncludeCount

      public final UsergroupEnableParams withIncludeCount(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the includeCount attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for includeCount
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of UsergroupEnableParams 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: usergroupId, includeCount.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static UsergroupEnableParams copyOf(UsergroupEnableParamsIF instance)
      Creates an immutable copy of a UsergroupEnableParamsIF 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 UsergroupEnableParams instance
    • builder

      public static UsergroupEnableParams.Builder builder()
      Creates a builder for UsergroupEnableParams.
       UsergroupEnableParams.builder()
          .setUsergroupId(String) // required usergroupId
          .setIncludeCount(Optional<Boolean>) // optional includeCount
          .build();
       
      Returns:
      A new UsergroupEnableParams builder