@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 |
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
|
List<String> |
getAllowableValues() |
String |
getArrayType() |
CollectionFormat |
getCollectionFormat() |
String |
getDataType() |
String |
getDescription() |
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 |
setDataType(String dataType)
Sets the Swagger header data type.
|
void |
setDescription(String description) |
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 List<String> getAllowableValues()
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 allowableValues(List<String> allowableValues)
public RestOperationResponseHeaderDefinition allowableValues(String... allowableValues)
public RestOperationResponseMsgDefinition endHeader()
Apache Camel