001package org.anarres.qemu.qapi.api; 002 003import com.fasterxml.jackson.annotation.JsonIgnore; 004import com.fasterxml.jackson.annotation.JsonInclude; 005import com.fasterxml.jackson.annotation.JsonProperty; 006import com.fasterxml.jackson.annotation.JsonUnwrapped; 007import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 008import javax.annotation.CheckForNull; 009import javax.annotation.Nonnull; 010import org.anarres.qemu.qapi.common.*; 011 012/** 013 * Autogenerated class. 014 * 015 * <pre>QApiTypeDescriptor{name=BlockdevOptionsBlkverify, data={test=BlockdevRef, raw=BlockdevRef}, innerTypes=null}</pre> 016 */ 017// QApiTypeDescriptor{name=BlockdevOptionsBlkverify, data={test=BlockdevRef, raw=BlockdevRef}, innerTypes=null} 018@JsonInclude(JsonInclude.Include.NON_EMPTY) 019public class BlockdevOptionsBlkverify extends QApiType { 020 021 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 022 @JsonProperty("test") 023 @Nonnull 024 public BlockdevRef test; 025 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 026 @JsonProperty("raw") 027 @Nonnull 028 public BlockdevRef raw; 029 030 @Nonnull 031 public BlockdevOptionsBlkverify withTest(BlockdevRef value) { 032 this.test = value; 033 return this; 034 } 035 036 @Nonnull 037 public BlockdevOptionsBlkverify withRaw(BlockdevRef value) { 038 this.raw = value; 039 return this; 040 } 041 042 public BlockdevOptionsBlkverify() { 043 } 044 045 public BlockdevOptionsBlkverify(BlockdevRef test, BlockdevRef raw) { 046 this.test = test; 047 this.raw = raw; 048 } 049 050 @JsonIgnore 051 @Override 052 public java.util.List<java.lang.String> getFieldNames() { 053 java.util.List<java.lang.String> names = super.getFieldNames(); 054 names.add("test"); 055 names.add("raw"); 056 return names; 057 } 058 059 @Override 060 public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException { 061 if ("test".equals(name)) 062 return test; 063 if ("raw".equals(name)) 064 return raw; 065 return super.getFieldByName(name); 066 } 067}