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=blockdev-change-medium, returns=null, data={device=str, filename=str, *format=str, *read-only-mode=BlockdevChangeReadOnlyMode}}</pre> 014 */ 015// QApiCommandDescriptor{name=blockdev-change-medium, returns=null, data={device=str, filename=str, *format=str, *read-only-mode=BlockdevChangeReadOnlyMode}} 016public class BlockdevChangeMediumCommand extends QApiCommand<BlockdevChangeMediumCommand.Arguments, BlockdevChangeMediumCommand.Response> { 017 /** Compound arguments to a BlockdevChangeMediumCommand. */ 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("filename") 027 @Nonnull 028 public java.lang.String filename; 029 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 030 @JsonProperty("format") 031 @CheckForNull 032 public java.lang.String format; 033 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 034 @JsonProperty("read-only-mode") 035 @CheckForNull 036 public BlockdevChangeReadOnlyMode readOnlyMode; 037 038 public Arguments() { 039 } 040 041 public Arguments(java.lang.String device, java.lang.String filename, java.lang.String format, BlockdevChangeReadOnlyMode readOnlyMode) { 042 this.device = device; 043 this.filename = filename; 044 this.format = format; 045 this.readOnlyMode = readOnlyMode; 046 } 047 } 048 049 /** Response to a BlockdevChangeMediumCommand. */ 050 public static class Response extends QApiResponse<java.lang.Void> { 051 } 052 053 /** Constructs a new BlockdevChangeMediumCommand. */ 054 public BlockdevChangeMediumCommand(@Nonnull BlockdevChangeMediumCommand.Arguments argument) { 055 super("blockdev-change-medium", Response.class, argument); 056 } 057 058 /** Constructs a new BlockdevChangeMediumCommand. */ 059 public BlockdevChangeMediumCommand(java.lang.String device, java.lang.String filename, java.lang.String format, BlockdevChangeReadOnlyMode readOnlyMode) { 060 this(new Arguments(device, filename, format, readOnlyMode)); 061 } 062}