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=object-add, returns=null, data={qom-type=str, id=str, *props=any}}</pre>
014 */
015// QApiCommandDescriptor{name=object-add, returns=null, data={qom-type=str, id=str, *props=any}}
016public class ObjectAddCommand extends QApiCommand<ObjectAddCommand.Arguments, ObjectAddCommand.Response> {
017        /** Compound arguments to a ObjectAddCommand. */
018        @JsonInclude(JsonInclude.Include.NON_EMPTY)
019        public static class Arguments {
020
021                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022                @JsonProperty("qom-type")
023                @Nonnull
024                public java.lang.String qomType;
025                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
026                @JsonProperty("id")
027                @Nonnull
028                public java.lang.String id;
029                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
030                @JsonProperty("props")
031                @CheckForNull
032                public java.lang.Object props;
033
034                public Arguments() {
035                }
036
037                public Arguments(java.lang.String qomType, java.lang.String id, java.lang.Object props) {
038                        this.qomType = qomType;
039                        this.id = id;
040                        this.props = props;
041                }
042        }
043
044        /** Response to a ObjectAddCommand. */
045        public static class Response extends QApiResponse<java.lang.Void> {
046        }
047
048        /** Constructs a new ObjectAddCommand. */
049        public ObjectAddCommand(@Nonnull ObjectAddCommand.Arguments argument) {
050                super("object-add", Response.class, argument);
051        }
052
053        /** Constructs a new ObjectAddCommand. */
054        public ObjectAddCommand(java.lang.String qomType, java.lang.String id, java.lang.Object props) {
055                this(new Arguments(qomType, id, props));
056        }
057}