Class ExtensionBitsProduct.Cost

java.lang.Object
com.github.twitch4j.helix.domain.ExtensionBitsProduct.Cost
Enclosing class:
ExtensionBitsProduct

public static class ExtensionBitsProduct.Cost extends Object
  • Constructor Details

    • Cost

      public Cost()
    • Cost

      public Cost(Integer amount, String type)
      Creates a new Cost instance.
      Parameters:
      amount - Number of Bits for which the product will be exchanged.
      type - Cost type.

      The one valid value is "bits".

  • Method Details

    • builder

      public static ExtensionBitsProduct.Cost.CostBuilder builder()
    • toBuilder

    • withAmount

      public ExtensionBitsProduct.Cost withAmount(Integer amount)
      Number of Bits for which the product will be exchanged.
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      public ExtensionBitsProduct.Cost withType(String type)
      Cost type.

      The one valid value is "bits".

      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getAmount

      public Integer getAmount()
      Number of Bits for which the product will be exchanged.
    • getType

      public String getType()
      Cost type.

      The one valid value is "bits".

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object