Interface Lsp

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Lsp>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<LspObject>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, Object, ObjectHeader

    @Generated("mdsal-binding-generator")
    public interface Lsp
    extends org.opendaylight.yangtools.yang.binding.ChildOf<LspObject>, org.opendaylight.yangtools.yang.binding.Augmentable<Lsp>, Object

    This class represents the following YANG schema fragment defined in module odl-pcep-ietf-stateful

     container lsp {
       uses pcep:object;
       container tlvs {
         uses lsp-error-code-tlv;
         uses lsp-identifiers-tlv;
         uses rsvp-error-spec-tlv;
         uses symbolic-path-name-tlv;
         uses pcep:vs-tlv;
         uses pcep:vendor-information-tlvs;
         uses path-binding-tlv;
       }
       leaf plsp-id {
         type plsp-id;
       }
       leaf delegate {
         type boolean;
         default false;
       }
       leaf sync {
         type boolean;
         default false;
       }
       leaf remove {
         type boolean;
         default false;
       }
       leaf administrative {
         type boolean;
         default false;
       }
       leaf operational {
         type operational-status;
       }
     }
     
    The schema path to identify an instance is odl-pcep-ietf-statefullsp-objectlsp

    To create instances of this class use LspBuilder.

    See Also:
    LspBuilder
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<Lsp> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
        Specified by:
        implementedInterface in interface Object
        Specified by:
        implementedInterface in interface ObjectHeader
      • bindingHashCode

        static int bindingHashCode​(@NonNull Lsp obj)
        Default implementation of Object.hashCode() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent hashing results across all implementations.
        Parameters:
        obj - Object for which to generate hashCode() result.
        Returns:
        Hash code value of data modeled by this interface.
        Throws:
        NullPointerException - if obj is null
      • bindingEquals

        static boolean bindingEquals​(@NonNull Lsp thisObj,
                                     Object obj)
        Default implementation of Object.equals(java.lang.Object) contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent equality results across all implementations.
        Parameters:
        thisObj - Object acting as the receiver of equals invocation
        obj - Object acting as argument to equals invocation
        Returns:
        True if thisObj and obj are considered equal
        Throws:
        NullPointerException - if thisObj is null
      • bindingToString

        static String bindingToString​(@NonNull Lsp obj)
        Default implementation of Object.toString() contract for this interface. Implementations of this interface are encouraged to defer to this method to get consistent string representations across all implementations.
        Parameters:
        obj - Object for which to generate toString() result.
        Returns:
        String value of data modeled by this interface.
        Throws:
        NullPointerException - if obj is null
      • getTlvs

        Tlvs getTlvs()
        Return tlvs, or null if it is not present.
        Returns:
        Tlvs tlvs, or null if it is not present.
      • getPlspId

        PlspId getPlspId()
        Return plspId, or null if it is not present.
        Returns:
        PlspId plspId, or null if it is not present.
      • requirePlspId

        default @NonNull PlspId requirePlspId()
        Return plspId, guaranteed to be non-null.
        Returns:
        PlspId plspId, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if plspId is not present
      • getDelegate

        Boolean getDelegate()
        Return delegate, or null if it is not present.
        Returns:
        Boolean delegate, or null if it is not present.
      • requireDelegate

        default @NonNull Boolean requireDelegate()
        Return delegate, guaranteed to be non-null.
        Returns:
        Boolean delegate, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if delegate is not present
      • getSync

        Boolean getSync()
        Return sync, or null if it is not present.
        Returns:
        Boolean sync, or null if it is not present.
      • requireSync

        default @NonNull Boolean requireSync()
        Return sync, guaranteed to be non-null.
        Returns:
        Boolean sync, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if sync is not present
      • getRemove

        Boolean getRemove()
        Return remove, or null if it is not present.
        Returns:
        Boolean remove, or null if it is not present.
      • requireRemove

        default @NonNull Boolean requireRemove()
        Return remove, guaranteed to be non-null.
        Returns:
        Boolean remove, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if remove is not present
      • getAdministrative

        Boolean getAdministrative()
        Return administrative, or null if it is not present.
        Returns:
        Boolean administrative, or null if it is not present.
      • requireAdministrative

        default @NonNull Boolean requireAdministrative()
        Return administrative, guaranteed to be non-null.
        Returns:
        Boolean administrative, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if administrative is not present
      • getOperational

        OperationalStatus getOperational()
        Return operational, or null if it is not present.
        Returns:
        OperationalStatus operational, or null if it is not present.
      • requireOperational

        default @NonNull OperationalStatus requireOperational()
        Return operational, guaranteed to be non-null.
        Returns:
        OperationalStatus operational, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if operational is not present