Class MigrationExchangeParams

java.lang.Object
com.hubspot.slack.client.methods.params.migration.MigrationExchangeParams
All Implemented Interfaces:
MigrationExchangeParamsIF

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

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

  • Method Details

    • getTeamId

      public Optional<String> getTeamId()
      Specified by:
      getTeamId in interface MigrationExchangeParamsIF
      Returns:
      The value of the teamId attribute
    • getToOld

      public Optional<Boolean> getToOld()
      Specified by:
      getToOld in interface MigrationExchangeParamsIF
      Returns:
      The value of the toOld attribute
    • getUserIds

      public Set<String> getUserIds()
      Specified by:
      getUserIds in interface MigrationExchangeParamsIF
      Returns:
      The value of the userIds attribute
    • withTeamId

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

      public final MigrationExchangeParams withTeamId(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the teamId 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 teamId
      Returns:
      A modified copy or this if not changed
    • withToOld

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

      public final MigrationExchangeParams withToOld(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the toOld 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 toOld
      Returns:
      A modified copy or this if not changed
    • withUserIds

      public final MigrationExchangeParams withUserIds(String... elements)
      Copy the current immutable object with elements that replace the content of userIds.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withUserIds

      public final MigrationExchangeParams withUserIds(Iterable<String> elements)
      Copy the current immutable object with elements that replace the content of userIds. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of userIds elements to set
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static MigrationExchangeParams.Builder builder()
      Creates a builder for MigrationExchangeParams.
       MigrationExchangeParams.builder()
          .setTeamId(Optional<String>) // optional teamId
          .setToOld(Optional<Boolean>) // optional toOld
          .addUserIds|addAllUserIds(String) // userIds elements
          .build();
       
      Returns:
      A new MigrationExchangeParams builder