@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class OpenApiResponseHeader extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
OpenApiResponseHeader.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CONVERSATION_ID |
static String |
SERIALIZED_NAME_RESPONSE_ID |
static String |
SERIALIZED_NAME_STATUS_CODE |
static String |
SERIALIZED_NAME_STATUS_MESSAGE |
static String |
SERIALIZED_NAME_SUB_STATUS_CODE |
| 构造器和说明 |
|---|
OpenApiResponseHeader() |
| 限定符和类型 | 方法和说明 |
|---|---|
OpenApiResponseHeader |
conversationId(String conversationId) |
boolean |
equals(Object o) |
static OpenApiResponseHeader |
fromJson(String jsonString)
Create an instance of OpenApiResponseHeader 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 |
getConversationId()
会话id,对应请求中的conversation_id,若请求中conversation_id非空,则该值非空
|
String |
getResponseId()
响应id,对应请求中的request_id。
|
String |
getStatusCode()
自定义状态码
|
String |
getStatusMessage()
状态信息
|
String |
getSubStatusCode()
子状态码
|
int |
hashCode() |
OpenApiResponseHeader |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
OpenApiResponseHeader |
responseId(String responseId) |
void |
setConversationId(String conversationId) |
void |
setResponseId(String responseId) |
void |
setStatusCode(String statusCode) |
void |
setStatusMessage(String statusMessage) |
void |
setSubStatusCode(String subStatusCode) |
OpenApiResponseHeader |
statusCode(String statusCode) |
OpenApiResponseHeader |
statusMessage(String statusMessage) |
OpenApiResponseHeader |
subStatusCode(String subStatusCode) |
String |
toJson()
Convert an instance of OpenApiResponseHeader 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 static final String SERIALIZED_NAME_CONVERSATION_ID
public static final String SERIALIZED_NAME_STATUS_MESSAGE
public static final String SERIALIZED_NAME_SUB_STATUS_CODE
public OpenApiResponseHeader conversationId(String conversationId)
@Nullable public String getConversationId()
public void setConversationId(String conversationId)
public OpenApiResponseHeader responseId(String responseId)
@Nullable public String getResponseId()
public void setResponseId(String responseId)
public OpenApiResponseHeader statusCode(String statusCode)
public void setStatusCode(String statusCode)
public OpenApiResponseHeader statusMessage(String statusMessage)
public void setStatusMessage(String statusMessage)
public OpenApiResponseHeader subStatusCode(String subStatusCode)
public void setSubStatusCode(String subStatusCode)
public OpenApiResponseHeader 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 OpenApiResponseHeaderpublic static OpenApiResponseHeader fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to OpenApiResponseHeaderpublic String toJson()
Copyright © 2024. All rights reserved.