All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.DataContainer, org.opendaylight.yangtools.binding.Grouping
All Known Subinterfaces:
Segments

@Generated("mdsal-binding-generator") public interface AsPathSegment extends org.opendaylight.yangtools.binding.Grouping

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

 grouping as-path-segment {
   leaf-list as-sequence {
     type inet:as-number;
     ordered-by user;
     max-elements 255;
   }
   leaf-list as-set {
     type inet:as-number;
   }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber>
    Return asSequence, or null if it is not present.
    @Nullable Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber>
    Return asSet, or null if it is not present.
    default @NonNull List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber>
    Return asSequence, guaranteed to be non-null.
    default @NonNull Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber>
    Return asSet, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • getAsSequence

      @Nullable List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber> getAsSequence()
      Return asSequence, or null if it is not present.
      Returns:
      List<AsNumber> asSequence, or null if it is not present.
    • requireAsSequence

      default @NonNull List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber> requireAsSequence()
      Return asSequence, guaranteed to be non-null.
      Returns:
      List<AsNumber> asSequence, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if asSequence is not present
    • getAsSet

      @Nullable Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber> getAsSet()
      Return asSet, or null if it is not present.
      Returns:
      Set<AsNumber> asSet, or null if it is not present.
    • requireAsSet

      default @NonNull Set<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber> requireAsSet()
      Return asSet, guaranteed to be non-null.
      Returns:
      Set<AsNumber> asSet, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if asSet is not present