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-job-cancel, returns=null, data={device=str, *force=bool}}</pre> 014 */ 015// QApiCommandDescriptor{name=block-job-cancel, returns=null, data={device=str, *force=bool}} 016public class BlockJobCancelCommand extends QApiCommand<BlockJobCancelCommand.Arguments, BlockJobCancelCommand.Response> { 017 /** Compound arguments to a BlockJobCancelCommand. */ 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("force") 027 @CheckForNull 028 public java.lang.Boolean force; 029 030 public Arguments() { 031 } 032 033 public Arguments(java.lang.String device, java.lang.Boolean force) { 034 this.device = device; 035 this.force = force; 036 } 037 } 038 039 /** Response to a BlockJobCancelCommand. */ 040 public static class Response extends QApiResponse<java.lang.Void> { 041 } 042 043 /** Constructs a new BlockJobCancelCommand. */ 044 public BlockJobCancelCommand(@Nonnull BlockJobCancelCommand.Arguments argument) { 045 super("block-job-cancel", Response.class, argument); 046 } 047 048 /** Constructs a new BlockJobCancelCommand. */ 049 public BlockJobCancelCommand(java.lang.String device, java.lang.Boolean force) { 050 this(new Arguments(device, force)); 051 } 052}