/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.component.undertow;

/**
 * Options to configure an Undertow host.
 */
public final class UndertowHostOptions {

    /**
     * The number of worker threads to use in a Undertow host.
     */
    private Integer workerThreads;

    /**
     * The number of io threads to use in a Undertow host.
     */
    private Integer ioThreads;

    /**
     * The buffer size of the Undertow host.
     */
    private Integer bufferSize;

    /**
     * Set if the Undertow host should use direct buffers.
     */
    private Boolean directBuffers;
    
    /**
     * Set if the Undertow host should use http2 protocol.
     */
    private Boolean http2Enabled;

    public UndertowHostOptions() {
    }

    public Integer getWorkerThreads() {
        return workerThreads;
    }

    public void setWorkerThreads(Integer workerThreads) {
        this.workerThreads = workerThreads;
    }

    public Integer getIoThreads() {
        return ioThreads;
    }

    public void setIoThreads(Integer ioThreads) {
        this.ioThreads = ioThreads;
    }

    public Integer getBufferSize() {
        return bufferSize;
    }

    public void setBufferSize(Integer bufferSize) {
        this.bufferSize = bufferSize;
    }

    public Boolean getDirectBuffers() {
        return directBuffers;
    }

    public void setDirectBuffers(Boolean directBuffers) {
        this.directBuffers = directBuffers;
    }

    public Boolean getHttp2Enabled() {
        return http2Enabled;
    }

    public void setHttp2Enabled(Boolean http2Enabled) {
        this.http2Enabled = http2Enabled;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("UndertowHostOptions{");
        sb.append("workerThreads=").append(workerThreads);
        sb.append(", ioThreads=").append(ioThreads);
        sb.append(", bufferSize=").append(bufferSize);
        sb.append(", directBuffers=").append(directBuffers);
        sb.append(", http2Enabled=").append(http2Enabled);
        sb.append('}');
        return sb.toString();
    }

}

@@ -842,16 +842,55 @@
 ertow;%0A%0A
+import org.apache.camel.spi.Metadata;%0A%0A
 /**%0A * O
@@ -973,35 +973,49 @@
 ions %7B%0A%0A    
-/**%0A     * 
+@Metadata(description = %22
 The number o
@@ -1053,32 +1053,26 @@
 dertow host.
-%0A     */
+%22)
 %0A    private
@@ -1095,32 +1095,45 @@
 hreads;%0A
-%0A
     
-/**%0A     * 
+@Metadata(description = %22
 The numb
@@ -1171,32 +1171,26 @@
 dertow host.
-%0A     */
+%22)
 %0A    private
@@ -1209,32 +1209,45 @@
 hreads;%0A
-%0A
     
-/**%0A     * 
+@Metadata(description = %22
 The buff
@@ -1275,24 +1275,18 @@
 ow host.
-%0A     */
+%22)
 %0A    pri
@@ -1310,32 +1310,45 @@
 erSize;%0A
-%0A
     
-/**%0A     * 
+@Metadata(description = %22
 Set if t
@@ -1390,24 +1390,18 @@
 buffers.
-%0A     */
+%22)
 %0A    pri
@@ -1436,24 +1436,33 @@
     
-%0A    /**%0A     * 
+@Metadata(description = %22
 Set 
@@ -1512,16 +1512,10 @@
 col.
-%0A     */
+%22)
 %0A   
@@ -2474,475 +2474,6 @@
  %7D%0A%0A
-    @Override%0A    public String toString() %7B%0A        final StringBuilder sb = new StringBuilder(%22UndertowHostOptions%7B%22);%0A        sb.append(%22workerThreads=%22).append(workerThreads);%0A        sb.append(%22, ioThreads=%22).append(ioThreads);%0A        sb.append(%22, bufferSize=%22).append(bufferSize);%0A        sb.append(%22, directBuffers=%22).append(directBuffers);%0A        sb.append(%22, http2Enabled=%22).append(http2Enabled);%0A        sb.append('%7D');%0A        return sb.toString();%0A    %7D%0A%0A
 %7D%0A

Add docs for missing option