Interface Attributes
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.Augmentable<Attributes>
,org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.ChildOf<PathAttributes>
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
,NextHop
@Generated("mdsal-binding-generator")
public interface Attributes
extends org.opendaylight.yangtools.yang.binding.ChildOf<PathAttributes>, org.opendaylight.yangtools.yang.binding.Augmentable<Attributes>, NextHop
This class represents the following YANG schema fragment defined in module bgp-message
container attributes { container origin { leaf value { type bgp-t:bgp-origin; } } container as-path { list segments { uses bgp-t:as-path-segment; } } uses bgp-t:next-hop; container multi-exit-disc { leaf med { type uint32; } } container local-pref { leaf pref { type uint32; } } container atomic-aggregate { presence "Atomic Aggregate attribute is present."; } container aggregator { uses bgp-t:bgp-aggregator; } list communities { uses bgp-t:community; } list extended-communities { uses bgp-t:extended-community; } container originator-id { uses originator-id; } container cluster-id { uses cluster-id; } container aigp { container aigp-tlv { leaf metric { type netc:accumulated-igp-metric; } } } list unrecognized-attributes { key type; leaf partial { type boolean; } leaf transitive { type boolean; } leaf type { type uint8; } leaf value { type binary { length 0..65535; } } } container bgp-prefix-sid { list bgp-prefix-sid-tlvs { choice bgp-prefix-sid-tlv { } } } }
To create instances of this class use AttributesBuilder
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
bindingEquals
(@NonNull Attributes thisObj, Object obj) Default implementation ofObject.equals(Object)
contract for this interface.static int
bindingHashCode
(@NonNull Attributes obj) Default implementation ofObject.hashCode()
contract for this interface.static String
bindingToString
(@NonNull Attributes obj) Default implementation ofObject.toString()
contract for this interface.Return aggregator, ornull
if it is not present.getAigp()
Return aigp, ornull
if it is not present.Return asPath, ornull
if it is not present.Return atomicAggregate, ornull
if it is not present.Return bgpPrefixSid, ornull
if it is not present.Return clusterId, ornull
if it is not present.@Nullable List<Communities>
Return communities, ornull
if it is not present.@Nullable List<ExtendedCommunities>
Return extendedCommunities, ornull
if it is not present.Return localPref, ornull
if it is not present.Return multiExitDisc, ornull
if it is not present.Return origin, ornull
if it is not present.Return originatorId, ornull
if it is not present.@Nullable Map<UnrecognizedAttributesKey,
UnrecognizedAttributes> Return unrecognizedAttributes, ornull
if it is not present.default Class<Attributes>
@NonNull Aggregator
Return aggregator, or an empty instance if it is not present.@NonNull Aigp
Return aigp, or an empty instance if it is not present.@NonNull AsPath
Return asPath, or an empty instance if it is not present.@NonNull BgpPrefixSid
Return bgpPrefixSid, or an empty instance if it is not present.@NonNull ClusterId
Return clusterId, or an empty instance if it is not present.default @NonNull List<Communities>
Return communities, or an empty list if it is not present.default @NonNull List<ExtendedCommunities>
Return extendedCommunities, or an empty list if it is not present.@NonNull LocalPref
Return localPref, or an empty instance if it is not present.@NonNull MultiExitDisc
Return multiExitDisc, or an empty instance if it is not present.@NonNull Origin
Return origin, or an empty instance if it is not present.@NonNull OriginatorId
Return originatorId, or an empty instance if it is not present.default @NonNull Map<UnrecognizedAttributesKey,
UnrecognizedAttributes> Return unrecognizedAttributes, or an empty list if it is not present.Methods inherited from interface org.opendaylight.yangtools.yang.binding.Augmentable
augmentation, augmentationOrElseThrow, augmentationOrElseThrow, augmentations
Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev200120.NextHop
getCNextHop
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
- Specified by:
implementedInterface
in interfaceNextHop
-
bindingHashCode
Default implementation ofObject.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
- ifobj
isnull
-
bindingEquals
Default implementation ofObject.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 invocationobj
- Object acting as argument to equals invocation- Returns:
- True if thisObj and obj are considered equal
- Throws:
NullPointerException
- ifthisObj
isnull
-
bindingToString
Default implementation ofObject.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
- ifobj
isnull
-
getOrigin
Origin getOrigin()Return origin, ornull
if it is not present.- Returns:
Origin
origin, ornull
if it is not present.
-
nonnullOrigin
@NonNull Origin nonnullOrigin()Return origin, or an empty instance if it is not present.- Returns:
Origin
origin, or an empty instance if it is not present.
-
getAsPath
AsPath getAsPath()Return asPath, ornull
if it is not present.- Returns:
AsPath
asPath, ornull
if it is not present.
-
nonnullAsPath
@NonNull AsPath nonnullAsPath()Return asPath, or an empty instance if it is not present.- Returns:
AsPath
asPath, or an empty instance if it is not present.
-
getMultiExitDisc
MultiExitDisc getMultiExitDisc()Return multiExitDisc, ornull
if it is not present.- Returns:
MultiExitDisc
multiExitDisc, ornull
if it is not present.
-
nonnullMultiExitDisc
@NonNull MultiExitDisc nonnullMultiExitDisc()Return multiExitDisc, or an empty instance if it is not present.- Returns:
MultiExitDisc
multiExitDisc, or an empty instance if it is not present.
-
getLocalPref
LocalPref getLocalPref()Return localPref, ornull
if it is not present.- Returns:
LocalPref
localPref, ornull
if it is not present.
-
nonnullLocalPref
@NonNull LocalPref nonnullLocalPref()Return localPref, or an empty instance if it is not present.- Returns:
LocalPref
localPref, or an empty instance if it is not present.
-
getAtomicAggregate
AtomicAggregate getAtomicAggregate()Return atomicAggregate, ornull
if it is not present.- Returns:
AtomicAggregate
atomicAggregate, ornull
if it is not present.
-
getAggregator
Aggregator getAggregator()Return aggregator, ornull
if it is not present.- Returns:
Aggregator
aggregator, ornull
if it is not present.
-
nonnullAggregator
@NonNull Aggregator nonnullAggregator()Return aggregator, or an empty instance if it is not present.- Returns:
Aggregator
aggregator, or an empty instance if it is not present.
-
getCommunities
@Nullable List<Communities> getCommunities()Return communities, ornull
if it is not present.- Returns:
List<Communities>
communities, ornull
if it is not present.
-
nonnullCommunities
Return communities, or an empty list if it is not present.- Returns:
List<Communities>
communities, or an empty list if it is not present.
-
getExtendedCommunities
@Nullable List<ExtendedCommunities> getExtendedCommunities()Return extendedCommunities, ornull
if it is not present.- Returns:
List<ExtendedCommunities>
extendedCommunities, ornull
if it is not present.
-
nonnullExtendedCommunities
Return extendedCommunities, or an empty list if it is not present.- Returns:
List<ExtendedCommunities>
extendedCommunities, or an empty list if it is not present.
-
getOriginatorId
OriginatorId getOriginatorId()Return originatorId, ornull
if it is not present.- Returns:
OriginatorId
originatorId, ornull
if it is not present.
-
nonnullOriginatorId
@NonNull OriginatorId nonnullOriginatorId()Return originatorId, or an empty instance if it is not present.- Returns:
OriginatorId
originatorId, or an empty instance if it is not present.
-
getClusterId
ClusterId getClusterId()Return clusterId, ornull
if it is not present.- Returns:
ClusterId
clusterId, ornull
if it is not present.
-
nonnullClusterId
@NonNull ClusterId nonnullClusterId()Return clusterId, or an empty instance if it is not present.- Returns:
ClusterId
clusterId, or an empty instance if it is not present.
-
getAigp
Aigp getAigp()Return aigp, ornull
if it is not present.- Returns:
Aigp
aigp, ornull
if it is not present.
-
nonnullAigp
@NonNull Aigp nonnullAigp()Return aigp, or an empty instance if it is not present.- Returns:
Aigp
aigp, or an empty instance if it is not present.
-
getUnrecognizedAttributes
@Nullable Map<UnrecognizedAttributesKey,UnrecognizedAttributes> getUnrecognizedAttributes()Return unrecognizedAttributes, ornull
if it is not present.- Returns:
Map<UnrecognizedAttributesKey, UnrecognizedAttributes>
unrecognizedAttributes, ornull
if it is not present.
-
nonnullUnrecognizedAttributes
default @NonNull Map<UnrecognizedAttributesKey,UnrecognizedAttributes> nonnullUnrecognizedAttributes()Return unrecognizedAttributes, or an empty list if it is not present.- Returns:
Map<UnrecognizedAttributesKey, UnrecognizedAttributes>
unrecognizedAttributes, or an empty list if it is not present.
-
getBgpPrefixSid
BgpPrefixSid getBgpPrefixSid()Return bgpPrefixSid, ornull
if it is not present.- Returns:
BgpPrefixSid
bgpPrefixSid, ornull
if it is not present.
-
nonnullBgpPrefixSid
@NonNull BgpPrefixSid nonnullBgpPrefixSid()Return bgpPrefixSid, or an empty instance if it is not present.- Returns:
BgpPrefixSid
bgpPrefixSid, or an empty instance if it is not present.
-