Class CountryInfo

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class CountryInfo extends Object implements Serializable
Represents the info for a country.
See Also:
  • Field Details

  • Constructor Details

    • CountryInfo

      public CountryInfo()
  • Method Details

    • cryptoRiskRating

      public CountryInfo cryptoRiskRating(@Nonnull CountryInfo.CryptoRiskRatingEnum cryptoRiskRating)
    • getCryptoRiskRating

      @Nonnull public CountryInfo.CryptoRiskRatingEnum getCryptoRiskRating()
      crypto risk rating of the country
      Returns:
      cryptoRiskRating
    • setCryptoRiskRating

      public void setCryptoRiskRating(@Nonnull CountryInfo.CryptoRiskRatingEnum cryptoRiskRating)
    • cryptoSupportedStates

      public CountryInfo cryptoSupportedStates(@Nullable List<String> cryptoSupportedStates)
    • addCryptoSupportedStatesItem

      public CountryInfo addCryptoSupportedStatesItem(String cryptoSupportedStatesItem)
    • getCryptoSupportedStates

      @Nullable public List<String> getCryptoSupportedStates()
      states where Alpaca supports crypto trading
      Returns:
      cryptoSupportedStates
    • setCryptoSupportedStates

      public void setCryptoSupportedStates(@Nullable List<String> cryptoSupportedStates)
    • fullName

      public CountryInfo fullName(@Nonnull String fullName)
    • getFullName

      @Nonnull public String getFullName()
      The full name of the country definded by ISO 3166-1
      Returns:
      fullName
    • setFullName

      public void setFullName(@Nonnull String fullName)
    • securitiesRiskRating

      public CountryInfo securitiesRiskRating(@Nonnull CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating)
    • getSecuritiesRiskRating

      @Nonnull public CountryInfo.SecuritiesRiskRatingEnum getSecuritiesRiskRating()
      the securities risk rating of the country
      Returns:
      securitiesRiskRating
    • setSecuritiesRiskRating

      public void setSecuritiesRiskRating(@Nonnull CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating)
    • putAdditionalProperty

      public CountryInfo 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 CountryInfo 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 CountryInfo
    • fromJson

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

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