001package org.anarres.qemu.qapi.api;
002
003import com.fasterxml.jackson.annotation.JsonInclude;
004import com.fasterxml.jackson.annotation.JsonProperty;
005import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
006import javax.annotation.CheckForNull;
007import javax.annotation.Nonnull;
008import org.anarres.qemu.qapi.common.*;
009
010/**
011 * Autogenerated class.
012 *
013 * <pre>QApiCommandDescriptor{name=add_client, returns=null, data={protocol=str, fdname=str, *skipauth=bool, *tls=bool}}</pre>
014 */
015// QApiCommandDescriptor{name=add_client, returns=null, data={protocol=str, fdname=str, *skipauth=bool, *tls=bool}}
016public class AddClientCommand extends QApiCommand<AddClientCommand.Arguments, AddClientCommand.Response> {
017        /** Compound arguments to a AddClientCommand. */
018        @JsonInclude(JsonInclude.Include.NON_EMPTY)
019        public static class Arguments {
020
021                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022                @JsonProperty("protocol")
023                @Nonnull
024                public java.lang.String protocol;
025                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
026                @JsonProperty("fdname")
027                @Nonnull
028                public java.lang.String fdname;
029                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
030                @JsonProperty("skipauth")
031                @CheckForNull
032                public java.lang.Boolean skipauth;
033                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
034                @JsonProperty("tls")
035                @CheckForNull
036                public java.lang.Boolean tls;
037
038                public Arguments() {
039                }
040
041                public Arguments(java.lang.String protocol, java.lang.String fdname, java.lang.Boolean skipauth, java.lang.Boolean tls) {
042                        this.protocol = protocol;
043                        this.fdname = fdname;
044                        this.skipauth = skipauth;
045                        this.tls = tls;
046                }
047        }
048
049        /** Response to a AddClientCommand. */
050        public static class Response extends QApiResponse<java.lang.Void> {
051        }
052
053        /** Constructs a new AddClientCommand. */
054        public AddClientCommand(@Nonnull AddClientCommand.Arguments argument) {
055                super("add_client", Response.class, argument);
056        }
057
058        /** Constructs a new AddClientCommand. */
059        public AddClientCommand(java.lang.String protocol, java.lang.String fdname, java.lang.Boolean skipauth, java.lang.Boolean tls) {
060                this(new Arguments(protocol, fdname, skipauth, tls));
061        }
062}