java.lang.Object
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.RouteDistinguisher
All Implemented Interfaces:
Serializable, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.TypeObject, org.opendaylight.yangtools.binding.UnionTypeObject

@Generated("mdsal-binding-generator") public class RouteDistinguisher extends Object implements org.opendaylight.yangtools.binding.UnionTypeObject, Serializable

This class represents the following YANG schema fragment defined in module bgp-types

 typedef route-distinguisher {
   type union {
     type rd-two-octet-as;
     type rd-ipv4;
     type rd-as;
   }
 }
 
See Also:
  • Field Details

    • PATTERN_CONSTANTS

      public static final List<String> PATTERN_CONSTANTS
  • Constructor Details

    • RouteDistinguisher

      public RouteDistinguisher(RdTwoOctetAs _rdTwoOctetAs)
    • RouteDistinguisher

      public RouteDistinguisher(RdIpv4 _rdIpv4)
    • RouteDistinguisher

      public RouteDistinguisher(RdAs _rdAs)
    • RouteDistinguisher

      public RouteDistinguisher(RouteDistinguisher 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.
    • getRdTwoOctetAs

      public RdTwoOctetAs getRdTwoOctetAs()
    • getRdIpv4

      public RdIpv4 getRdIpv4()
    • getRdAs

      public RdAs getRdAs()
    • 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