Class CreateCryptoTransferRequest

java.lang.Object
net.jacobpeterson.alpaca.openapi.broker.model.CreateCryptoTransferRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-23T18:58:47.485165-07:00[America/Los_Angeles]") public class CreateCryptoTransferRequest extends Object
CreateCryptoTransferRequest
  • Field Details

  • Constructor Details

    • CreateCryptoTransferRequest

      public CreateCryptoTransferRequest()
  • Method Details

    • amount

      public CreateCryptoTransferRequest amount(String amount)
    • getAmount

      @Nonnull public String getAmount()
      The amount, denoted in the specified asset, to be withdrawn from the user’s wallet
      Returns:
      amount
    • setAmount

      public void setAmount(String amount)
    • address

      public CreateCryptoTransferRequest address(String address)
    • getAddress

      @Nonnull public String getAddress()
      The destination wallet address
      Returns:
      address
    • setAddress

      public void setAddress(String address)
    • asset

      public CreateCryptoTransferRequest asset(String asset)
    • getAsset

      @Nonnull public String getAsset()
      Get asset
      Returns:
      asset
    • setAsset

      public void setAsset(String asset)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Throws:
      IOException
    • fromJson

      public static CreateCryptoTransferRequest fromJson(String jsonString) throws IOException
      Create an instance of CreateCryptoTransferRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CreateCryptoTransferRequest
      Throws:
      IOException - if the JSON string is invalid with respect to CreateCryptoTransferRequest
    • toJson

      public String toJson()
      Convert an instance of CreateCryptoTransferRequest to an JSON string
      Returns:
      JSON string