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=nbd-server-start, returns=null, data={addr=SocketAddress}}</pre>
014 */
015// QApiCommandDescriptor{name=nbd-server-start, returns=null, data={addr=SocketAddress}}
016public class NbdServerStartCommand extends QApiCommand<NbdServerStartCommand.Arguments, NbdServerStartCommand.Response> {
017        /** Compound arguments to a NbdServerStartCommand. */
018        @JsonInclude(JsonInclude.Include.NON_EMPTY)
019        public static class Arguments {
020
021                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022                @JsonProperty("addr")
023                @Nonnull
024                public SocketAddress addr;
025
026                public Arguments() {
027                }
028
029                public Arguments(SocketAddress addr) {
030                        this.addr = addr;
031                }
032        }
033
034        /** Response to a NbdServerStartCommand. */
035        public static class Response extends QApiResponse<java.lang.Void> {
036        }
037
038        /** Constructs a new NbdServerStartCommand. */
039        public NbdServerStartCommand(@Nonnull NbdServerStartCommand.Arguments argument) {
040                super("nbd-server-start", Response.class, argument);
041        }
042
043        /** Constructs a new NbdServerStartCommand. */
044        public NbdServerStartCommand(SocketAddress addr) {
045                this(new Arguments(addr));
046        }
047}