Class AccountStatusEvent

java.lang.Object
markets.alpaca.client.openapi.broker.model.AccountStatusEvent
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class AccountStatusEvent extends Object implements Serializable
Represents a change to certain account properties, sent over the events streaming API.
See Also:
  • Field Details

  • Constructor Details

    • AccountStatusEvent

      public AccountStatusEvent()
  • Method Details

    • accountBlocked

      public AccountStatusEvent accountBlocked(@Nullable Boolean accountBlocked)
    • getAccountBlocked

      @Nullable public Boolean getAccountBlocked()
      If true the account was blocked, if false, the account got unblocked
      Returns:
      accountBlocked
    • setAccountBlocked

      public void setAccountBlocked(@Nullable Boolean accountBlocked)
    • accountId

      public AccountStatusEvent accountId(@Nonnull String accountId)
    • getAccountId

      @Nonnull public String getAccountId()
      The unique identifier of the account that was changed
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nonnull String accountId)
    • accountNumber

      public AccountStatusEvent accountNumber(@Nullable String accountNumber)
    • getAccountNumber

      @Nullable public String getAccountNumber()
      The account number of the account that was changed
      Returns:
      accountNumber
    • setAccountNumber

      public void setAccountNumber(@Nullable String accountNumber)
    • adminConfigurations

      public AccountStatusEvent adminConfigurations(@Nullable AdminConfigurationsEvent adminConfigurations)
    • getAdminConfigurations

      @Nullable public AdminConfigurationsEvent getAdminConfigurations()
      Get adminConfigurations
      Returns:
      adminConfigurations
    • setAdminConfigurations

      public void setAdminConfigurations(@Nullable AdminConfigurationsEvent adminConfigurations)
    • at

      public AccountStatusEvent at(@Nonnull String at)
    • getAt

      @Nonnull public String getAt()
      timestamp of event
      Returns:
      at
    • setAt

      public void setAt(@Nonnull String at)
    • cashInterest

      public AccountStatusEvent cashInterest(@Nullable AccountCashInterestEvent cashInterest)
    • getCashInterest

      @Nullable public AccountCashInterestEvent getCashInterest()
      Get cashInterest
      Returns:
      cashInterest
    • setCashInterest

      public void setCashInterest(@Nullable AccountCashInterestEvent cashInterest)
    • cryptoStatusFrom

      public AccountStatusEvent cryptoStatusFrom(@Nullable String cryptoStatusFrom)
    • getCryptoStatusFrom

      @Nullable public String getCryptoStatusFrom()
      account crypto_status changed from
      Returns:
      cryptoStatusFrom
    • setCryptoStatusFrom

      public void setCryptoStatusFrom(@Nullable String cryptoStatusFrom)
    • cryptoStatusTo

      public AccountStatusEvent cryptoStatusTo(@Nullable String cryptoStatusTo)
    • getCryptoStatusTo

      @Nullable public String getCryptoStatusTo()
      account crypto_status changed to
      Returns:
      cryptoStatusTo
    • setCryptoStatusTo

      public void setCryptoStatusTo(@Nullable String cryptoStatusTo)
    • eventId

      public AccountStatusEvent eventId(@Nullable Integer eventId)
    • getEventId

      @Nullable public Integer getEventId()
      Monotonically increasing 64-bit integer not available to new partners, and for backward compatibility purposes only; use `event_ulid` as the stable identifier where possible
      Returns:
      eventId
    • setEventId

      public void setEventId(@Nullable Integer eventId)
    • eventUlid

      public AccountStatusEvent eventUlid(@Nonnull String eventUlid)
    • getEventUlid

      @Nonnull public String getEventUlid()
      lexically sortable, monotonically increasing character array
      Returns:
      eventUlid
    • setEventUlid

      public void setEventUlid(@Nonnull String eventUlid)
    • fpsl

      public AccountStatusEvent fpsl(@Nullable AccountFPSLEvent fpsl)
    • getFpsl

      @Nullable public AccountFPSLEvent getFpsl()
      Get fpsl
      Returns:
      fpsl
    • setFpsl

      public void setFpsl(@Nullable AccountFPSLEvent fpsl)
    • kycResults

      public AccountStatusEvent kycResults(@Nullable KYCResults kycResults)
    • getKycResults

      @Nullable public KYCResults getKycResults()
      Get kycResults
      Returns:
      kycResults
    • setKycResults

      public void setKycResults(@Nullable KYCResults kycResults)
    • options

      public AccountStatusEvent options(@Nullable OptionsApprovalEvent options)
    • getOptions

      @Nullable public OptionsApprovalEvent getOptions()
      Get options
      Returns:
      options
    • setOptions

      public void setOptions(@Nullable OptionsApprovalEvent options)
    • reason

      @Deprecated public AccountStatusEvent reason(@Nullable String reason)
      Deprecated.
    • getReason

      @Deprecated @Nullable public String getReason()
      Deprecated.
      Get reason
      Returns:
      reason
    • setReason

      @Deprecated public void setReason(@Nullable String reason)
      Deprecated.
    • statusFrom

      public AccountStatusEvent statusFrom(@Nullable String statusFrom)
    • getStatusFrom

      @Nullable public String getStatusFrom()
      The account status before the change
      Returns:
      statusFrom
    • setStatusFrom

      public void setStatusFrom(@Nullable String statusFrom)
    • statusTo

      public AccountStatusEvent statusTo(@Nullable String statusTo)
    • getStatusTo

      @Nullable public String getStatusTo()
      The account status after the change
      Returns:
      statusTo
    • setStatusTo

      public void setStatusTo(@Nullable String statusTo)
    • tradingBlocked

      public AccountStatusEvent tradingBlocked(@Nullable Boolean tradingBlocked)
    • getTradingBlocked

      @Nullable public Boolean getTradingBlocked()
      If true the account cannot trade going forward, if false, the ban has been lifed
      Returns:
      tradingBlocked
    • setTradingBlocked

      public void setTradingBlocked(@Nullable Boolean tradingBlocked)
    • putAdditionalProperty

      public AccountStatusEvent putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the AccountStatusEvent instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • 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
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to AccountStatusEvent
    • fromJson

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

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