@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class AlipaySystemOauthTokenModel extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AlipaySystemOauthTokenModel.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CODE |
static String |
SERIALIZED_NAME_GRANT_TYPE |
static String |
SERIALIZED_NAME_REFRESH_TOKEN |
| 构造器和说明 |
|---|
AlipaySystemOauthTokenModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
AlipaySystemOauthTokenModel |
code(String code) |
boolean |
equals(Object o) |
static AlipaySystemOauthTokenModel |
fromJson(String jsonString)
Create an instance of AlipaySystemOauthTokenModel given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getCode()
授权码,用户对应用授权后得到。
|
String |
getGrantType()
授权方式
|
String |
getRefreshToken()
刷新令牌,上次换取访问令牌时得到。
|
AlipaySystemOauthTokenModel |
grantType(String grantType) |
int |
hashCode() |
AlipaySystemOauthTokenModel |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
AlipaySystemOauthTokenModel |
refreshToken(String refreshToken) |
void |
setCode(String code) |
void |
setGrantType(String grantType) |
void |
setRefreshToken(String refreshToken) |
String |
toJson()
Convert an instance of AlipaySystemOauthTokenModel to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public AlipaySystemOauthTokenModel code(String code)
@Nullable public String getCode()
public void setCode(String code)
public AlipaySystemOauthTokenModel grantType(String grantType)
public void setGrantType(String grantType)
public AlipaySystemOauthTokenModel refreshToken(String refreshToken)
@Nullable public String getRefreshToken()
public void setRefreshToken(String refreshToken)
public AlipaySystemOauthTokenModel putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to AlipaySystemOauthTokenModelpublic static AlipaySystemOauthTokenModel fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to AlipaySystemOauthTokenModelpublic String toJson()
Copyright © 2024. All rights reserved.