Interface ProtectionSubobject

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<ProtectionSubobject>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<ProtectionSubobject>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject

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

    This class represents the following YANG schema fragment defined in module rsvp

     container protection-subobject {
       leaf secondary {
         type boolean;
         default false;
       }
       leaf protecting {
         type boolean;
         default false;
       }
       leaf notification {
         type boolean;
         default false;
       }
       leaf operational {
         type boolean;
         default false;
       }
       leaf lsp-flag {
         type lsp-flag;
       }
       leaf link-flags {
         type link-flags;
       }
       leaf in-place {
         type boolean;
         default false;
       }
       leaf required {
         type boolean;
         default false;
       }
       leaf seg-flag {
         type lsp-flag;
       }
     }
     
    The schema path to identify an instance is rsvpprotection-subobjectprotection-subobject

    To create instances of this class use ProtectionSubobjectBuilder.

    See Also:
    ProtectionSubobjectBuilder
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        static int bindingHashCode​(@NonNull ProtectionSubobject 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 ProtectionSubobject thisObj,
                                     Object obj)
        Default implementation of Object.equals(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 ProtectionSubobject 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
      • getSecondary

        Boolean getSecondary()
        Return secondary, or null if it is not present.
        Returns:
        Boolean secondary, or null if it is not present.
      • requireSecondary

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

        Boolean getProtecting()
        Return protecting, or null if it is not present.
        Returns:
        Boolean protecting, or null if it is not present.
      • requireProtecting

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

        Boolean getNotification()
        Return notification, or null if it is not present.
        Returns:
        Boolean notification, or null if it is not present.
      • requireNotification

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

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

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

        LspFlag getLspFlag()
        Return lspFlag, or null if it is not present.
        Returns:
        LspFlag lspFlag, or null if it is not present.
      • requireLspFlag

        default @NonNull LspFlag requireLspFlag()
        Return lspFlag, guaranteed to be non-null.
        Returns:
        LspFlag lspFlag, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if lspFlag is not present
      • getLinkFlags

        LinkFlags getLinkFlags()
        Return linkFlags, or null if it is not present.
        Returns:
        LinkFlags linkFlags, or null if it is not present.
      • requireLinkFlags

        default @NonNull LinkFlags requireLinkFlags()
        Return linkFlags, guaranteed to be non-null.
        Returns:
        LinkFlags linkFlags, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if linkFlags is not present
      • getInPlace

        Boolean getInPlace()
        Return inPlace, or null if it is not present.
        Returns:
        Boolean inPlace, or null if it is not present.
      • requireInPlace

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

        Boolean getRequired()
        Return required, or null if it is not present.
        Returns:
        Boolean required, or null if it is not present.
      • requireRequired

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

        LspFlag getSegFlag()
        Return segFlag, or null if it is not present.
        Returns:
        LspFlag segFlag, or null if it is not present.
      • requireSegFlag

        default @NonNull LspFlag requireSegFlag()
        Return segFlag, guaranteed to be non-null.
        Returns:
        LspFlag segFlag, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if segFlag is not present