@Metadata(label="rest") public class RestOperationResponseHeaderDefinition extends Object
This maps to the Swagger Response Header Object.
Constructor and Description |
---|
RestOperationResponseHeaderDefinition() |
RestOperationResponseHeaderDefinition(RestOperationResponseMsgDefinition response) |
Modifier and Type | Method and Description |
---|---|
RestOperationResponseHeaderDefinition |
allowableValues(List<String> allowableValues)
Allowed values of the header when its an enum type
|
RestOperationResponseHeaderDefinition |
allowableValues(String... allowableValues)
Allowed values of the parameter when its an enum type
|
RestOperationResponseHeaderDefinition |
arrayType(String arrayType)
The data type of the array data type
|
RestOperationResponseHeaderDefinition |
collectionFormat(CollectionFormat collectionFormat)
Sets the collection format.
|
RestOperationResponseHeaderDefinition |
dataFormat(String type)
The data format of the parameter such as binary, date, date-time, password.
|
RestOperationResponseHeaderDefinition |
dataType(String type)
The data type of the header such as string, integer, boolean
|
RestOperationResponseHeaderDefinition |
description(String name)
Description of the parameter.
|
RestOperationResponseMsgDefinition |
endHeader()
Ends the configuration of this header
|
RestOperationResponseMsgDefinition |
endResponseHeader()
Ends the configuration of this response message
|
RestOperationResponseHeaderDefinition |
example(String example)
Sets an example of this header.
|
List<String> |
getAllowableValues() |
String |
getArrayType() |
CollectionFormat |
getCollectionFormat() |
String |
getDataFormat() |
String |
getDataType() |
String |
getDescription() |
String |
getExample() |
String |
getName() |
RestOperationResponseHeaderDefinition |
name(String name)
Name of the parameter.
|
void |
setAllowableValues(List<String> allowableValues)
Sets the Swagger Parameter list of allowable values.
|
void |
setArrayType(String arrayType)
Sets the Swagger Parameter array type.
|
void |
setCollectionFormat(CollectionFormat collectionFormat)
Sets the Swagger Parameter collection format.
|
void |
setDataFormat(String dataFormat)
Sets the Swagger Parameter data format.
|
void |
setDataType(String dataType)
Sets the Swagger header data type.
|
void |
setDescription(String description) |
void |
setExample(String example)
Sets the Swagger example
|
void |
setName(String name) |
public RestOperationResponseHeaderDefinition(RestOperationResponseMsgDefinition response)
public RestOperationResponseHeaderDefinition()
public RestOperationResponseMsgDefinition endResponseHeader()
public String getDescription()
public void setDescription(String description)
public CollectionFormat getCollectionFormat()
public void setCollectionFormat(CollectionFormat collectionFormat)
public String getArrayType()
public void setArrayType(String arrayType)
public String getDataType()
public void setDataType(String dataType)
public String getDataFormat()
public void setDataFormat(String dataFormat)
public List<String> getAllowableValues()
public String getExample()
public void setExample(String example)
public void setAllowableValues(List<String> allowableValues)
public RestOperationResponseHeaderDefinition name(String name)
This option is mandatory.
public RestOperationResponseHeaderDefinition description(String name)
public RestOperationResponseHeaderDefinition collectionFormat(CollectionFormat collectionFormat)
public RestOperationResponseHeaderDefinition arrayType(String arrayType)
public RestOperationResponseHeaderDefinition dataType(String type)
public RestOperationResponseHeaderDefinition dataFormat(String type)
public RestOperationResponseHeaderDefinition allowableValues(List<String> allowableValues)
public RestOperationResponseHeaderDefinition allowableValues(String... allowableValues)
public RestOperationResponseHeaderDefinition example(String example)
public RestOperationResponseMsgDefinition endHeader()
Apache Camel