@Metadata(label="rest") public class RestOperationResponseMsgDefinition extends Object
| Constructor and Description |
|---|
RestOperationResponseMsgDefinition() |
RestOperationResponseMsgDefinition(VerbDefinition verb) |
| Modifier and Type | Method and Description |
|---|---|
RestOperationResponseMsgDefinition |
code(int code)
The return code
|
RestDefinition |
endResponseMessage()
Ends the configuration of this response message
|
int |
getCode() |
String |
getMessage() |
String |
getResponseModel() |
RestOperationResponseMsgDefinition |
message(String msg)
The return message
|
RestOperationResponseMsgDefinition |
responseModel(Class<?> type)
The response model
|
void |
setCode(int code)
Sets the Swagger Operation's ResponseMessage code
|
void |
setMessage(String message)
Sets the Swagger Operation's ResponseMessage message
|
void |
setResponseModel(String responseModel)
Sets the Swagger Operation's ResponseMessage responseModel
|
public RestOperationResponseMsgDefinition(VerbDefinition verb)
public RestOperationResponseMsgDefinition()
public int getCode()
public void setCode(int code)
public String getResponseModel()
public void setResponseModel(String responseModel)
public String getMessage()
public void setMessage(String message)
public RestOperationResponseMsgDefinition code(int code)
public RestOperationResponseMsgDefinition message(String msg)
public RestOperationResponseMsgDefinition responseModel(Class<?> type)
public RestDefinition endResponseMessage()
Apache Camel