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=SchemaInfoEvent, data={arg-type=str}, innerTypes=null}</pre>
016 */
017// QApiTypeDescriptor{name=SchemaInfoEvent, data={arg-type=str}, innerTypes=null}
018@JsonInclude(JsonInclude.Include.NON_EMPTY)
019public class SchemaInfoEvent extends QApiType {
020
021        @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR")
022        @JsonProperty("arg-type")
023        @Nonnull
024        public java.lang.String argType;
025
026        @Nonnull
027        public SchemaInfoEvent withArgType(java.lang.String value) {
028                this.argType = value;
029                return this;
030        }
031
032        public SchemaInfoEvent() {
033        }
034
035        public SchemaInfoEvent(java.lang.String argType) {
036                this.argType = argType;
037        }
038
039        @JsonIgnore
040        @Override
041        public java.util.List<java.lang.String> getFieldNames() {
042                java.util.List<java.lang.String> names = super.getFieldNames();
043                names.add("arg-type");
044                return names;
045        }
046
047        @Override
048        public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException {
049                if ("arg-type".equals(name))
050                        return argType;
051                return super.getFieldByName(name);
052        }
053}