Class OpenApiDocument.ContactBuilder
java.lang.Object
io.helidon.openapi.OpenApiDocument.ContactBuilder
- All Implemented Interfaces:
Builder<OpenApiDocument.ContactBuilder, OpenApiDocument.Contact>, Supplier<OpenApiDocument.Contact>
- Enclosing class:
OpenApiDocument
public static final class OpenApiDocument.ContactBuilder
extends Object
implements Builder<OpenApiDocument.ContactBuilder, OpenApiDocument.Contact>
OpenAPI contact builder.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Set email.Add an extension.Set name.Set URL.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault OpenApiDocument.Contactget()default OpenApiDocument.ContactBuilderidentity()Instance of this builder as the correct type.default OpenApiDocument.ContactBuilderupdate(Consumer<OpenApiDocument.ContactBuilder> consumer) Update the builder in a fluent API way.
-
Method Details
-
name
Set name.- Parameters:
name- name- Returns:
- updated builder
-
url
Set URL.- Parameters:
url- URL- Returns:
- updated builder
-
email
Set email.- Parameters:
email- email- Returns:
- updated builder
-
extension
Add an extension.Extension names must start with
x-.- Parameters:
name- extension namevalue- extension value- Returns:
- updated builder
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OpenApiDocument.ContactBuilder, OpenApiDocument.Contact>- Returns:
- instance of the built type
-