Class RestMethod.Builder
java.lang.Object
io.helidon.declarative.codegen.model.http.ModelElement.BuilderBase<RestMethod.Builder, RestMethod>
io.helidon.declarative.codegen.model.http.HttpAnnotated.BuilderBase<RestMethod.Builder, RestMethod>
io.helidon.declarative.codegen.model.http.RestMethod.BuilderBase<RestMethod.Builder, RestMethod>
io.helidon.declarative.codegen.model.http.RestMethod.Builder
- All Implemented Interfaces:
Prototype.Builder<RestMethod.Builder, RestMethod>, Builder<RestMethod.Builder, RestMethod>, Supplier<RestMethod>
- Enclosing interface:
RestMethod
public static class RestMethod.Builder
extends RestMethod.BuilderBase<RestMethod.Builder, RestMethod>
implements Builder<RestMethod.Builder, RestMethod>
Fluent API builder for
RestMethod.-
Nested Class Summary
Nested classes/interfaces inherited from class RestMethod.BuilderBase
RestMethod.BuilderBase.RestMethodImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class HttpAnnotated.BuilderBase
HttpAnnotated.BuilderBase.HttpAnnotatedImplModifier 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 RestMethod.BuilderBase
addHeaderParameter, addHeaderParameter, addHeaderParameters, addParameter, addParameter, addParameters, addPathParameter, addPathParameter, addPathParameters, addQueryParameter, addQueryParameter, addQueryParameters, clearEntityParameter, clearHeaderParameters, clearParameters, clearPathParameters, clearQueryParameters, clearStatus, entityParameter, entityParameter, entityParameter, entityParameter, from, from, headerParameters, headerParameters, httpMethod, httpMethod, method, method, method, method, name, name, parameters, parameters, pathParameters, pathParameters, preBuildPrototype, queryParameters, queryParameters, returnType, returnType, returnType, returnType, status, status, toString, uniqueName, uniqueName, validatePrototypeModifier and TypeMethodDescriptionaddHeaderParameter(RestMethodParameter headerParameter) Header parameters (if defined).Header parameters (if defined).addHeaderParameters(List<? extends RestMethodParameter> headerParameters) Header parameters (if defined).addParameter(RestMethodParameter parameter) All parameters of this method.addParameter(Consumer<RestMethodParameter.Builder> consumer) All parameters of this method.addParameters(List<? extends RestMethodParameter> parameters) All parameters of this method.addPathParameter(RestMethodParameter pathParameter) Path parameters (if defined).addPathParameter(Consumer<RestMethodParameter.Builder> consumer) Path parameters (if defined).addPathParameters(List<? extends RestMethodParameter> pathParameters) Path parameters (if defined).addQueryParameter(RestMethodParameter queryParameter) Query parameters (if defined).addQueryParameter(Consumer<RestMethodParameter.Builder> consumer) Query parameters (if defined).addQueryParameters(List<? extends RestMethodParameter> queryParameters) Query parameters (if defined).Clear existing value of entityParameter.Clear all headerParameters.Clear all parameters.Clear all pathParameters.Clear all queryParameters.Clear existing value of status.Entity parameter (if defined).entityParameter(RestMethodParameter entityParameter) Entity parameter (if defined).entityParameter(Consumer<RestMethodParameter.Builder> consumer) Entity parameter (if defined).entityParameter(Supplier<? extends RestMethodParameter> supplier) Entity parameter (if defined).from(RestMethod prototype) Update this builder from an existing prototype instance.from(RestMethod.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Header parameters (if defined).headerParameters(List<? extends RestMethodParameter> headerParameters) Header parameters (if defined).HTTP method of this method.httpMethod(HttpMethod httpMethod) HTTP method of this method.method()Method element info.method(TypedElementInfo method) Method element info.method(Consumer<TypedElementInfo.Builder> consumer) Method element info.method(Supplier<? extends TypedElementInfo> supplier) Method element info.name()Method name.Method name.All parameters of this method.parameters(List<? extends RestMethodParameter> parameters) All parameters of this method.Path parameters (if defined).pathParameters(List<? extends RestMethodParameter> pathParameters) Path parameters (if defined).protected voidHandles providers and decorators.Query parameters (if defined).queryParameters(List<? extends RestMethodParameter> queryParameters) Query parameters (if defined).Type returned by this method.returnType(TypeName returnType) Type returned by this method.returnType(Consumer<TypeName.Builder> consumer) Type returned by this method.returnType(Supplier<? extends TypeName> supplier) Type returned by this method.status()HTTP Status (server side only) annotation on the method.status(HttpStatus status) HTTP Status (server side only) annotation on the method.toString()Unique name of the method (used for generated code).uniqueName(String uniqueName) Unique name of the method (used for generated code).protected voidValidates required properties.Methods inherited from class HttpAnnotated.BuilderBase
addComputedHeader, addComputedHeaders, addConsume, addConsumes, addHeader, addHeaders, addProduce, addProduces, clearComputedHeaders, clearConsumes, clearHeaders, clearPath, clearProduces, computedHeaders, computedHeaders, consumes, consumes, from, from, headers, headers, path, path, produces, producesModifier and TypeMethodDescriptionaddComputedHeader(ComputedHeader computedHeader) List of computed header values.addComputedHeaders(List<? extends ComputedHeader> computedHeaders) List of computed header values.addConsume(String consume) List of consumed media types (from server endpoint point of view).addConsumes(List<String> consumes) List of consumed media types (from server endpoint point of view).addHeader(HeaderValue header) List of configured header values.addHeaders(List<? extends HeaderValue> headers) List of configured header values.addProduce(String produce) List of produced media types (from server endpoint point of view).addProduces(List<String> produces) List of produced media types (from server endpoint point of view).Clear all computedHeaders.Clear all consumes.Clear all headers.Clear existing value of path.Clear all produces.List of computed header values.computedHeaders(List<? extends ComputedHeader> computedHeaders) List of computed header values.consumes()List of consumed media types (from server endpoint point of view).List of consumed media types (from server endpoint point of view).from(HttpAnnotated prototype) Update this builder from an existing prototype instance.from(HttpAnnotated.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.headers()List of configured header values.headers(List<? extends HeaderValue> headers) List of configured header values.path()Path of the endpoint/method (optional).Path of the endpoint/method (optional).produces()List of produced media types (from server endpoint point of view).List of produced media types (from server endpoint point of view).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 RestMethodget()default RestMethod.Builderidentity()Instance of this builder as the correct type.default RestMethod.Builderupdate(Consumer<RestMethod.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault RestMethod.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<RestMethod.Builder, RestMethod>- 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<RestMethod.Builder, RestMethod>- Returns:
- instance of the built type
-