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=block-set-write-threshold, returns=null, data={node-name=str, write-threshold=uint64}}</pre>
014 */
015// QApiCommandDescriptor{name=block-set-write-threshold, returns=null, data={node-name=str, write-threshold=uint64}}
016public class BlockSetWriteThresholdCommand extends QApiCommand<BlockSetWriteThresholdCommand.Arguments, BlockSetWriteThresholdCommand.Response> {
017        /** Compound arguments to a BlockSetWriteThresholdCommand. */
018        @JsonInclude(JsonInclude.Include.NON_EMPTY)
019        public static class Arguments {
020
021                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022                @JsonProperty("node-name")
023                @Nonnull
024                public java.lang.String nodeName;
025                @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
026                @JsonProperty("write-threshold")
027                @Nonnull
028                public long writeThreshold;
029
030                public Arguments() {
031                }
032
033                public Arguments(java.lang.String nodeName, long writeThreshold) {
034                        this.nodeName = nodeName;
035                        this.writeThreshold = writeThreshold;
036                }
037        }
038
039        /** Response to a BlockSetWriteThresholdCommand. */
040        public static class Response extends QApiResponse<java.lang.Void> {
041        }
042
043        /** Constructs a new BlockSetWriteThresholdCommand. */
044        public BlockSetWriteThresholdCommand(@Nonnull BlockSetWriteThresholdCommand.Arguments argument) {
045                super("block-set-write-threshold", Response.class, argument);
046        }
047
048        /** Constructs a new BlockSetWriteThresholdCommand. */
049        public BlockSetWriteThresholdCommand(java.lang.String nodeName, long writeThreshold) {
050                this(new Arguments(nodeName, writeThreshold));
051        }
052}