Class RestMethodParameter.Builder
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<RestMethodParameter.Builder, RestMethodParameter>
io.helidon.declarative.codegen.model.http.RestMethodParameter.BuilderBase<RestMethodParameter.Builder, RestMethodParameter>
io.helidon.declarative.codegen.model.http.RestMethodParameter.Builder
- All Implemented Interfaces:
Prototype.Builder<RestMethodParameter.Builder, RestMethodParameter>, Builder<RestMethodParameter.Builder, RestMethodParameter>, Supplier<RestMethodParameter>
- Enclosing interface:
RestMethodParameter
public static class RestMethodParameter.Builder
extends RestMethodParameter.BuilderBase<RestMethodParameter.Builder, RestMethodParameter>
implements Builder<RestMethodParameter.Builder, RestMethodParameter>
Fluent API builder for
RestMethodParameter.-
Nested Class Summary
Nested classes/interfaces inherited from class RestMethodParameter.BuilderBase
RestMethodParameter.BuilderBase.RestMethodParameterImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class ModelElement.BuilderBase
ModelElement.BuilderBase.ModelElementImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class RestMethodParameter.BuilderBase
from, from, index, index, method, method, method, method, name, name, parameter, parameter, parameter, parameter, preBuildPrototype, toString, typeName, typeName, typeName, typeName, validatePrototypeModifier and TypeMethodDescriptionfrom(RestMethodParameter prototype) Update this builder from an existing prototype instance.from(RestMethodParameter.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intindex()Index of the parameter within the method declaration (zero based).index(int index) Index of the parameter within the method declaration (zero based).method()Owning method.method(TypedElementInfo method) Owning method.method(Consumer<TypedElementInfo.Builder> consumer) Owning method.method(Supplier<? extends TypedElementInfo> supplier) Owning method.name()Name of the parameter.Name of the parameter.Parameter info.parameter(TypedElementInfo parameter) Parameter info.parameter(Consumer<TypedElementInfo.Builder> consumer) Parameter info.parameter(Supplier<? extends TypedElementInfo> supplier) Parameter info.protected voidHandles providers and decorators.toString()typeName()Type of the parameter.Type of the parameter.typeName(Consumer<TypeName.Builder> consumer) Type of the parameter.Type of the parameter.protected voidValidates required properties.Methods inherited from class ModelElement.BuilderBase
addAnnotation, addAnnotation, addAnnotations, annotations, annotations, clearAnnotations, from, from, type, type, type, typeModifier and TypeMethodDescriptionaddAnnotation(Annotation annotation) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotation(Consumer<Annotation.Builder> consumer) All annotations on this element, and inherited from supertype/interface and annotations.addAnnotations(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.All annotations on this element, and inherited from supertype/interface and annotations.annotations(Set<? extends Annotation> annotations) All annotations on this element, and inherited from supertype/interface and annotations.Clear all annotations.from(ModelElement prototype) Update this builder from an existing prototype instance.from(ModelElement.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.type()Type of this element.Type of this element.type(Consumer<TypeInfo.Builder> consumer) Type of this element.Type of this element.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault RestMethodParameterget()default RestMethodParameter.Builderidentity()Instance of this builder as the correct type.default RestMethodParameter.Builderupdate(Consumer<RestMethodParameter.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault RestMethodParameter.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<RestMethodParameter.Builder, RestMethodParameter>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<RestMethodParameter.Builder, RestMethodParameter>- Returns:
- instance of the built type
-