Describes a single header parameter for an operation.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Header.
Controls the style of serialization. |
| Modifier and Type | Method and Description |
|---|---|
| public Header | Returns: the current Header instancestring to represent the example key, Example example of the header. null values will be rejected (implementation will throw an exception) or
ignored. example)Adds an example of the header using the specified key to this Header instance. |
| public default Header | Returns: the current Header instancespecify the ability to pass empty-valued parameters allowEmptyValue)Sets this Header's allowEmptyValue property to the given value. |
| public default Header | |
| public default Header | Returns: the current Header instancewhether the header parameter is deprecated deprecated)Sets this Header's deprecated property to the given value. |
| public default Header | Returns: the current Header instancea brief description of the header parameter description)Sets this Header's description property to the given string. |
| public default Header | |
| public default Header | |
| public default Header | |
| public Boolean | Returns: the ability to pass empty-valued parametersReturns the allowEmptyValue property from a Header instance. |
| public Content | Returns: a map containing the media representations for the parameterReturns the content property from a Header instance. |
| public Boolean | Returns: whether the header parameter is deprecatedReturns the deprecated property from a Header instance. |
| public String | Returns: a brief description of the header parameter.Returns the description property from a Header instance. |
| public Object | |
| public Map | Returns: a copy Map (potentially immutable) of examples of the headerReturns the examples property from a Header instance. |
| public Boolean | Returns: whether parameter values of type "array" or "object" generate separate parameters for each valueReturns the explode property from a Header instance. |
| public Boolean | Returns: whether this parameter is mandatoryReturns the required property from a Header instance. |
| public Schema | Returns: schema defining the type used for the header parameterReturns the schema property from a Header instance. |
| public Header. | Returns: how the parameter value will be serializedReturns the style property from a Header instance. |
| public void | removeExample(String
string to represent the example key)Removes an example of the header using the specified key to this Header instance. |
| public default Header | |
| public default Header | |
| public void | setAllowEmptyValue(Boolean
specify the ability to pass empty-valued parameters allowEmptyValue)Sets this Header's allowEmptyValue property to the given value. |
| public void | setContent(Content
a map containing the media representations for the parameter content)Sets this Header's content property to the given object. |
| public void | setDeprecated(Boolean
whether the header parameter is deprecated deprecated)Sets this Header's deprecated property to the given value. |
| public void | setDescription(String
a brief description of the header parameter description)Sets this Header's description property to the given string. |
| public void | setExample(Object
example of the header example)Sets this Header's example property to the given object. |
| public void | setExamples(Map<String, Example>
examples of the header examples)Sets the examples property of this Header instance to the given map. |
| public void | setExplode(Boolean
whether parameter values of type "array" or "object" generate separate parameters for each value explode)Sets this Header's explode property to the given value. |
| public void | setRequired(Boolean
whether this parameter is mandatory required)Sets this Header's required property to the given value. |
| public void | |
| public void | |
| public default Header |
| addExample | back to summary |
|---|---|
| public Header addExample(String key, Example example) Adds an example of the header using the specified key to this Header instance. The example should contain a value in the correct format as specified in the parameter encoding. | |
| allowEmptyValue | back to summary |
|---|---|
| public default Header allowEmptyValue(Boolean allowEmptyValue) Sets this Header's allowEmptyValue property to the given value. | |
| content | back to summary |
|---|---|
| public default Header content(Content content) Sets this Header's content property to the given object. | |
| deprecated | back to summary |
|---|---|
| public default Header deprecated(Boolean deprecated) Sets this Header's deprecated property to the given value. | |
| description | back to summary |
|---|---|
| public default Header description(String description) Sets this Header's description property to the given string. | |
| example | back to summary |
|---|---|
| public default Header example(Object example) Sets this Header's example property to the given object. The example should match the specified schema and encoding properties if present. The examples object is mutually exclusive of the example object. | |
| examples | back to summary |
|---|---|
| public default Header examples(Map<String, Example> examples) Sets the examples property of this Header instance to the given map. Each example should contain a value in the correct format as specified in the parameter encoding. The examples object is mutually exclusive of the example object. | |
| explode | back to summary |
|---|---|
| public default Header explode(Boolean explode) Sets this Header's explode property to the given value. | |
| getAllowEmptyValue | back to summary |
|---|---|
| public Boolean getAllowEmptyValue() Returns the allowEmptyValue property from a Header instance.
| |
| getContent | back to summary |
|---|---|
| public Content getContent() Returns the content property from a Header instance.
| |
| getDeprecated | back to summary |
|---|---|
| public Boolean getDeprecated() Returns the deprecated property from a Header instance.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns the description property from a Header instance.
| |
| getExample | back to summary |
|---|---|
| public Object getExample() Returns the example property from a Header instance.
| |
| getExamples | back to summary |
|---|---|
| public Map Returns the examples property from a Header instance. | |
| getExplode | back to summary |
|---|---|
| public Boolean getExplode() Returns the explode property from a Header instance.
| |
| getRequired | back to summary |
|---|---|
| public Boolean getRequired() Returns the required property from a Header instance.
| |
| getSchema | back to summary |
|---|---|
| public Schema getSchema() Returns the schema property from a Header instance.
| |
| getStyle | back to summary |
|---|---|
| public Header. Returns the style property from a Header instance. | |
| removeExample | back to summary |
|---|---|
| public void removeExample(String key) Removes an example of the header using the specified key to this Header instance.
| |
| required | back to summary |
|---|---|
| public default Header required(Boolean required) Sets this Header's required property to the given value. | |
| schema | back to summary |
|---|---|
| public default Header schema(Schema schema) Sets this Header's schema property to the given object. | |
| setAllowEmptyValue | back to summary |
|---|---|
| public void setAllowEmptyValue(Boolean allowEmptyValue) Sets this Header's allowEmptyValue property to the given value.
| |
| setContent | back to summary |
|---|---|
| public void setContent(Content content) Sets this Header's content property to the given object.
| |
| setDeprecated | back to summary |
|---|---|
| public void setDeprecated(Boolean deprecated) Sets this Header's deprecated property to the given value.
| |
| setDescription | back to summary |
|---|---|
| public void setDescription(String description) Sets this Header's description property to the given string.
| |
| setExample | back to summary |
|---|---|
| public void setExample(Object example) Sets this Header's example property to the given object. The example should match the specified schema and encoding properties if present. The examples object is mutually exclusive of the example object.
| |
| setExamples | back to summary |
|---|---|
| public void setExamples(Map<String, Example> examples) Sets the examples property of this Header instance to the given map. Each example should contain a value in the correct format as specified in the parameter encoding. The examples object is mutually exclusive of the example object. | |
| setExplode | back to summary |
|---|---|
| public void setExplode(Boolean explode) Sets this Header's explode property to the given value.
| |
| setRequired | back to summary |
|---|---|
| public void setRequired(Boolean required) Sets this Header's required property to the given value.
| |
| setSchema | back to summary |
|---|---|
| public void setSchema(Schema schema) Sets this Header's schema property to the given object.
| |
| setStyle | back to summary |
|---|---|
| public void setStyle(Header. Sets this Header's style property to the given style. | |
| style | back to summary |
|---|---|
| public default Header style(Header. Sets this Header's style property to the given style. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Header. | |
| private final String |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. Returns the name of this enum constant, as contained in the declaration. |
| public static Header. | |
| public static Header. |
| SIMPLE | back to summary |
|---|---|
| public static final Header. | |
| value | back to summary |
|---|---|
| private final String value | |
| Style | back to summary |
|---|---|
| private Style(String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static Header. | |
| values | back to summary |
|---|---|
| public static Header. | |