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