Class AuthorizeOAuthTokenResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.AuthorizeOAuthTokenResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AuthorizeOAuthTokenResponse
extends Object
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AuthorizeOAuthTokenResponseCreate an instance of AuthorizeOAuthTokenResponse given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.OAuth `client_id`getCode()OAuth code to exchange with tokenRedirect URI of OAuth flowgetScope()Granted scopesinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.redirectUri(String redirectUri) voidsetClientId(String clientId) voidvoidsetRedirectUri(String redirectUri) voidtoJson()Convert an instance of AuthorizeOAuthTokenResponse 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_CLIENT_ID
- See Also:
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_REDIRECT_URI
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AuthorizeOAuthTokenResponse
public AuthorizeOAuthTokenResponse()
-
-
Method Details
-
clientId
-
getClientId
OAuth `client_id`- Returns:
- clientId
-
setClientId
-
code
-
getCode
OAuth code to exchange with token- Returns:
- code
-
setCode
-
redirectUri
-
getRedirectUri
Redirect URI of OAuth flow- Returns:
- redirectUri
-
setRedirectUri
-
scope
-
getScope
Granted scopes- 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 AuthorizeOAuthTokenResponse 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 AuthorizeOAuthTokenResponse
-
fromJson
Create an instance of AuthorizeOAuthTokenResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthorizeOAuthTokenResponse
- Throws:
IOException- if the JSON string is invalid with respect to AuthorizeOAuthTokenResponse
-
toJson
Convert an instance of AuthorizeOAuthTokenResponse to an JSON string- Returns:
- JSON string
-