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=RockerOfDpaFlowAction, data={*goto-tbl=uint32, *group-id=uint32, *tunnel-lport=uint32, *vlan-id=uint16, *new-vlan-id=uint16, *out-pport=uint32}, innerTypes=null}</pre> 016 */ 017// QApiTypeDescriptor{name=RockerOfDpaFlowAction, data={*goto-tbl=uint32, *group-id=uint32, *tunnel-lport=uint32, *vlan-id=uint16, *new-vlan-id=uint16, *out-pport=uint32}, innerTypes=null} 018@JsonInclude(JsonInclude.Include.NON_EMPTY) 019public class RockerOfDpaFlowAction extends QApiType { 020 021 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 022 @JsonProperty("goto-tbl") 023 @CheckForNull 024 public java.lang.Long gotoTbl; 025 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 026 @JsonProperty("group-id") 027 @CheckForNull 028 public java.lang.Long groupId; 029 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 030 @JsonProperty("tunnel-lport") 031 @CheckForNull 032 public java.lang.Long tunnelLport; 033 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 034 @JsonProperty("vlan-id") 035 @CheckForNull 036 public java.lang.Integer vlanId; 037 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 038 @JsonProperty("new-vlan-id") 039 @CheckForNull 040 public java.lang.Integer newVlanId; 041 @SuppressFBWarnings("NP_NONNULL_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR") 042 @JsonProperty("out-pport") 043 @CheckForNull 044 public java.lang.Long outPport; 045 046 @Nonnull 047 public RockerOfDpaFlowAction withGotoTbl(java.lang.Long value) { 048 this.gotoTbl = value; 049 return this; 050 } 051 052 @Nonnull 053 public RockerOfDpaFlowAction withGroupId(java.lang.Long value) { 054 this.groupId = value; 055 return this; 056 } 057 058 @Nonnull 059 public RockerOfDpaFlowAction withTunnelLport(java.lang.Long value) { 060 this.tunnelLport = value; 061 return this; 062 } 063 064 @Nonnull 065 public RockerOfDpaFlowAction withVlanId(java.lang.Integer value) { 066 this.vlanId = value; 067 return this; 068 } 069 070 @Nonnull 071 public RockerOfDpaFlowAction withNewVlanId(java.lang.Integer value) { 072 this.newVlanId = value; 073 return this; 074 } 075 076 @Nonnull 077 public RockerOfDpaFlowAction withOutPport(java.lang.Long value) { 078 this.outPport = value; 079 return this; 080 } 081 082 public RockerOfDpaFlowAction() { 083 } 084 085 public RockerOfDpaFlowAction(java.lang.Long gotoTbl, java.lang.Long groupId, java.lang.Long tunnelLport, java.lang.Integer vlanId, java.lang.Integer newVlanId, java.lang.Long outPport) { 086 this.gotoTbl = gotoTbl; 087 this.groupId = groupId; 088 this.tunnelLport = tunnelLport; 089 this.vlanId = vlanId; 090 this.newVlanId = newVlanId; 091 this.outPport = outPport; 092 } 093 094 @JsonIgnore 095 @Override 096 public java.util.List<java.lang.String> getFieldNames() { 097 java.util.List<java.lang.String> names = super.getFieldNames(); 098 names.add("goto-tbl"); 099 names.add("group-id"); 100 names.add("tunnel-lport"); 101 names.add("vlan-id"); 102 names.add("new-vlan-id"); 103 names.add("out-pport"); 104 return names; 105 } 106 107 @Override 108 public Object getFieldByName(@Nonnull java.lang.String name) throws NoSuchFieldException { 109 if ("goto-tbl".equals(name)) 110 return gotoTbl; 111 if ("group-id".equals(name)) 112 return groupId; 113 if ("tunnel-lport".equals(name)) 114 return tunnelLport; 115 if ("vlan-id".equals(name)) 116 return vlanId; 117 if ("new-vlan-id".equals(name)) 118 return newVlanId; 119 if ("out-pport".equals(name)) 120 return outPport; 121 return super.getFieldByName(name); 122 } 123}