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