Interface RestMethodParameter
- All Superinterfaces:
ModelElement,Prototype.Api
- All Known Implementing Classes:
RestMethodParameter.BuilderBase.RestMethodParameterImpl
A single REST method parameter.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forRestMethodParameter.static classRestMethodParameter.BuilderBase<BUILDER extends RestMethodParameter.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends RestMethodParameter> Fluent API builder base forRestMethodParameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic RestMethodParameter.Builderbuilder()Create a new fluent API builder to customize configuration.static RestMethodParameter.Builderbuilder(RestMethodParameter instance) Create a new fluent API builder from an existing instance.static RestMethodParametercreate()Create a new instance with default values.intindex()Index of the parameter within the method declaration (zero based).method()Owning method.name()Name of the parameter.Parameter info.typeName()Type of the parameter.Methods inherited from interface io.helidon.declarative.codegen.model.http.ModelElement
annotations, type
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
name
String name()Name of the parameter.- Returns:
- parameter name
-
typeName
TypeName typeName()Type of the parameter.- Returns:
- parameter type
-
index
int index()Index of the parameter within the method declaration (zero based).- Returns:
- parameter index
-
method
TypedElementInfo method()Owning method.- Returns:
- method info
-
parameter
TypedElementInfo parameter()Parameter info.- Returns:
- parameter info
-