Interface MessagesConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface MessagesConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for defining Syslog message severity.This class represents the following YANG schema fragment defined in module openconfig-messages
grouping messages-config { leaf severity { type oc-log:syslog-severity; } }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAMEYANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SyslogSeveritygetSeverity()Return severity, ornullif it is not present.Class<? extends MessagesConfig>implementedInterface()default @NonNull SyslogSeverityrequireSeverity()Return severity, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends MessagesConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSeverity
SyslogSeverity getSeverity()
Return severity, ornullif it is not present.Specifies that only messages of the given severity (or greater severity) are sent over the RPC. This is analogous to differentiating which severity is to be sent to legacy Syslog servers, as opposed to local buffer or files.- Returns:
SyslogSeverityseverity, ornullif it is not present.
-
requireSeverity
default @NonNull SyslogSeverity requireSeverity()
Return severity, guaranteed to be non-null.Specifies that only messages of the given severity (or greater severity) are sent over the RPC. This is analogous to differentiating which severity is to be sent to legacy Syslog servers, as opposed to local buffer or files.- Returns:
SyslogSeverityseverity, guaranteed to be non-null.- Throws:
NoSuchElementException- if severity is not present
-
-