Class OAuthTokenRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.OAuthTokenRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class OAuthTokenRequest
extends Object
implements Serializable
This model is used for both the Issue and Authorize OAuth token routes
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientSecret(String clientSecret) booleanstatic OAuthTokenRequestCreate an instance of OAuthTokenRequest given an JSON stringend-user account IDReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.OAuth client IDOAuth client secretredirect URI for the OAuth flowgetScope()scopes requested by the OAuth flowinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.redirectUri(String redirectUri) voidsetAccountId(UUID accountId) voidsetClientId(String clientId) voidsetClientSecret(String clientSecret) voidsetRedirectUri(String redirectUri) voidtoJson()Convert an instance of OAuthTokenRequest 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_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_CLIENT_ID
- See Also:
-
SERIALIZED_NAME_CLIENT_SECRET
- See Also:
-
SERIALIZED_NAME_REDIRECT_URI
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
OAuthTokenRequest
public OAuthTokenRequest()
-
-
Method Details
-
accountId
-
getAccountId
end-user account ID- Returns:
- accountId
-
setAccountId
-
clientId
-
getClientId
OAuth client ID- Returns:
- clientId
-
setClientId
-
clientSecret
-
getClientSecret
OAuth client secret- Returns:
- clientSecret
-
setClientSecret
-
redirectUri
-
getRedirectUri
redirect URI for the OAuth flow- Returns:
- redirectUri
-
setRedirectUri
-
scope
-
getScope
scopes requested by the OAuth flow- Returns:
- scope
-
setScope
-
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 OAuthTokenRequest 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 OAuthTokenRequest
-
fromJson
Create an instance of OAuthTokenRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OAuthTokenRequest
- Throws:
IOException- if the JSON string is invalid with respect to OAuthTokenRequest
-
toJson
Convert an instance of OAuthTokenRequest to an JSON string- Returns:
- JSON string
-