Class VlanSwitchedConfig.TrunkVlans

java.lang.Object
org.opendaylight.yang.gen.v1.http.openconfig.net.yang.vlan.rev190416.VlanSwitchedConfig.TrunkVlans
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.TypeObject, org.opendaylight.yangtools.yang.binding.UnionTypeObject
Enclosing interface:
VlanSwitchedConfig

public static final class VlanSwitchedConfig.TrunkVlans extends Object implements org.opendaylight.yangtools.yang.binding.UnionTypeObject, Serializable

This class represents the following YANG schema fragment defined in module openconfig-vlan

 leaf-list trunk-vlans {
   when "../interface-mode = 'TRUNK'" {
   }
   type union {
     type oc-vlan-types:vlan-id;
     type oc-vlan-types:vlan-range;
   }
 }
 
See Also:
  • Field Details

    • PATTERN_CONSTANTS

      public static final List<String> PATTERN_CONSTANTS
  • Constructor Details

    • TrunkVlans

      public TrunkVlans(VlanId _vlanId)
    • TrunkVlans

      public TrunkVlans(VlanRange _vlanRange)
    • TrunkVlans

      public TrunkVlans(VlanSwitchedConfig.TrunkVlans source)
      Creates a copy from Source Object.
      Parameters:
      source - Source object
  • Method Details

    • stringValue

      public String stringValue()
      Return a String representing the value of this union.
      Returns:
      String representation of this union's value.
    • getVlanId

      public VlanId getVlanId()
    • getVlanRange

      public VlanRange getVlanRange()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object