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=ChardevVC, data={*width=int, *height=int, *cols=int, *rows=int}, innerTypes=null}</pre> 016 */ 017// QApiTypeDescriptor{name=ChardevVC, data={*width=int, *height=int, *cols=int, *rows=int}, innerTypes=null} 018@JsonInclude(JsonInclude.Include.NON_EMPTY) 019public class ChardevVC extends QApiType { 020 021 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 022 @JsonProperty("width") 023 @CheckForNull 024 public java.lang.Long width; 025 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 026 @JsonProperty("height") 027 @CheckForNull 028 public java.lang.Long height; 029 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 030 @JsonProperty("cols") 031 @CheckForNull 032 public java.lang.Long cols; 033 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 034 @JsonProperty("rows") 035 @CheckForNull 036 public java.lang.Long rows; 037 038 @Nonnull 039 public ChardevVC withWidth(java.lang.Long value) { 040 this.width = value; 041 return this; 042 } 043 044 @Nonnull 045 public ChardevVC withHeight(java.lang.Long value) { 046 this.height = value; 047 return this; 048 } 049 050 @Nonnull 051 public ChardevVC withCols(java.lang.Long value) { 052 this.cols = value; 053 return this; 054 } 055 056 @Nonnull 057 public ChardevVC withRows(java.lang.Long value) { 058 this.rows = value; 059 return this; 060 } 061 062 public ChardevVC() { 063 } 064 065 public ChardevVC(java.lang.Long width, java.lang.Long height, java.lang.Long cols, java.lang.Long rows) { 066 this.width = width; 067 this.height = height; 068 this.cols = cols; 069 this.rows = rows; 070 } 071 072 @JsonIgnore 073 @Override 074 public java.util.List<java.lang.String> getFieldNames() { 075 java.util.List<java.lang.String> names = super.getFieldNames(); 076 names.add("width"); 077 names.add("height"); 078 names.add("cols"); 079 names.add("rows"); 080 return names; 081 } 082 083 @Override 084 public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException { 085 if ("width".equals(name)) 086 return width; 087 if ("height".equals(name)) 088 return height; 089 if ("cols".equals(name)) 090 return cols; 091 if ("rows".equals(name)) 092 return rows; 093 return super.getFieldByName(name); 094 } 095}