Class IssueOAuthTokenResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.IssueOAuthTokenResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class IssueOAuthTokenResponse
extends Object
implements Serializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumAlways `Bearer` -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) booleanstatic IssueOAuthTokenResponseCreate an instance of IssueOAuthTokenResponse given an JSON stringOAuth tokenReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getScope()Token's scopeAlways `Bearer`inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccessToken(String accessToken) voidvoidtoJson()Convert an instance of IssueOAuthTokenResponse to an JSON stringtokenType(IssueOAuthTokenResponse.TokenTypeEnum tokenType) toString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCESS_TOKEN
- See Also:
-
SERIALIZED_NAME_SCOPE
- See Also:
-
SERIALIZED_NAME_TOKEN_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
IssueOAuthTokenResponse
public IssueOAuthTokenResponse()
-
-
Method Details
-
accessToken
-
getAccessToken
OAuth token- Returns:
- accessToken
-
setAccessToken
-
scope
-
getScope
Token's scope- Returns:
- scope
-
setScope
-
tokenType
-
getTokenType
Always `Bearer`- Returns:
- tokenType
-
setTokenType
-
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 IssueOAuthTokenResponse 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 IssueOAuthTokenResponse
-
fromJson
Create an instance of IssueOAuthTokenResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of IssueOAuthTokenResponse
- Throws:
IOException- if the JSON string is invalid with respect to IssueOAuthTokenResponse
-
toJson
Convert an instance of IssueOAuthTokenResponse to an JSON string- Returns:
- JSON string
-