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=ACPIOSTInfo, data={*device=str, slot=str, slot-type=ACPISlotType, source=int, status=int}, innerTypes=null}</pre> 016 */ 017// QApiTypeDescriptor{name=ACPIOSTInfo, data={*device=str, slot=str, slot-type=ACPISlotType, source=int, status=int}, innerTypes=null} 018@JsonInclude(JsonInclude.Include.NON_EMPTY) 019public class ACPIOSTInfo extends QApiType { 020 021 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 022 @JsonProperty("device") 023 @CheckForNull 024 public java.lang.String device; 025 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 026 @JsonProperty("slot") 027 @Nonnull 028 public java.lang.String slot; 029 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 030 @JsonProperty("slot-type") 031 @Nonnull 032 public ACPISlotType slotType; 033 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 034 @JsonProperty("source") 035 @Nonnull 036 public long source; 037 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 038 @JsonProperty("status") 039 @Nonnull 040 public long status; 041 042 @Nonnull 043 public ACPIOSTInfo withDevice(java.lang.String value) { 044 this.device = value; 045 return this; 046 } 047 048 @Nonnull 049 public ACPIOSTInfo withSlot(java.lang.String value) { 050 this.slot = value; 051 return this; 052 } 053 054 @Nonnull 055 public ACPIOSTInfo withSlotType(ACPISlotType value) { 056 this.slotType = value; 057 return this; 058 } 059 060 @Nonnull 061 public ACPIOSTInfo withSource(long value) { 062 this.source = value; 063 return this; 064 } 065 066 @Nonnull 067 public ACPIOSTInfo withStatus(long value) { 068 this.status = value; 069 return this; 070 } 071 072 public ACPIOSTInfo() { 073 } 074 075 public ACPIOSTInfo(java.lang.String device, java.lang.String slot, ACPISlotType slotType, long source, long status) { 076 this.device = device; 077 this.slot = slot; 078 this.slotType = slotType; 079 this.source = source; 080 this.status = status; 081 } 082 083 @JsonIgnore 084 @Override 085 public java.util.List<java.lang.String> getFieldNames() { 086 java.util.List<java.lang.String> names = super.getFieldNames(); 087 names.add("device"); 088 names.add("slot"); 089 names.add("slot-type"); 090 names.add("source"); 091 names.add("status"); 092 return names; 093 } 094 095 @Override 096 public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException { 097 if ("device".equals(name)) 098 return device; 099 if ("slot".equals(name)) 100 return slot; 101 if ("slot-type".equals(name)) 102 return slotType; 103 if ("source".equals(name)) 104 return source; 105 if ("status".equals(name)) 106 return status; 107 return super.getFieldByName(name); 108 } 109}