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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumcrypto risk rating of the countrystatic classstatic enumthe securities risk rating of the country -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCryptoSupportedStatesItem(String cryptoSupportedStatesItem) cryptoRiskRating(CountryInfo.CryptoRiskRatingEnum cryptoRiskRating) cryptoSupportedStates(List<String> cryptoSupportedStates) booleanstatic CountryInfoCreate an instance of CountryInfo given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.crypto risk rating of the countrystates where Alpaca supports crypto tradingThe full name of the country definded by ISO 3166-1the securities risk rating of the countryinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.securitiesRiskRating(CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating) voidsetCryptoRiskRating(CountryInfo.CryptoRiskRatingEnum cryptoRiskRating) voidsetCryptoSupportedStates(List<String> cryptoSupportedStates) voidsetFullName(String fullName) voidsetSecuritiesRiskRating(CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating) toJson()Convert an instance of CountryInfo to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CRYPTO_RISK_RATING
- See Also:
-
SERIALIZED_NAME_CRYPTO_SUPPORTED_STATES
- See Also:
-
SERIALIZED_NAME_FULL_NAME
- See Also:
-
SERIALIZED_NAME_SECURITIES_RISK_RATING
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CountryInfo
public CountryInfo()
-
-
Method Details
-
cryptoRiskRating
-
getCryptoRiskRating
crypto risk rating of the country- Returns:
- cryptoRiskRating
-
setCryptoRiskRating
-
cryptoSupportedStates
-
addCryptoSupportedStatesItem
-
getCryptoSupportedStates
states where Alpaca supports crypto trading- Returns:
- cryptoSupportedStates
-
setCryptoSupportedStates
-
fullName
-
getFullName
The full name of the country definded by ISO 3166-1- Returns:
- fullName
-
setFullName
-
securitiesRiskRating
public CountryInfo securitiesRiskRating(@Nonnull CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating) -
getSecuritiesRiskRating
the securities risk rating of the country- Returns:
- securitiesRiskRating
-
setSecuritiesRiskRating
public void setSecuritiesRiskRating(@Nonnull CountryInfo.SecuritiesRiskRatingEnum securitiesRiskRating) -
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the CountryInfo instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CountryInfo to an JSON string- Returns:
- JSON string
-