public class LinkRemovedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<LinkRemoved>
LinkRemovedBuilder
instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
LinkRemovedBuilder createTarget(int fooXyzzy, int barBaz) {
return new LinkRemovedBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of LinkRemovedBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build()
, which is then returned from the methodLinkRemovedBuilder
,
Builder
Constructor and Description |
---|
LinkRemovedBuilder() |
LinkRemovedBuilder(Link arg) |
LinkRemovedBuilder(LinkRemoved base) |
Modifier and Type | Method and Description |
---|---|
LinkRemovedBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> |
augmentation(Class<E$$> augmentationType) |
LinkRemoved |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef |
getDestination() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef |
getSource() |
LinkRemovedBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> augmentationType) |
LinkRemovedBuilder |
setDestination(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value) |
LinkRemovedBuilder |
setSource(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value) |
public LinkRemovedBuilder()
public LinkRemovedBuilder(Link arg)
public LinkRemovedBuilder(LinkRemoved base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getDestination()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getSource()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> E$$ augmentation(Class<E$$> augmentationType)
public LinkRemovedBuilder setDestination(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value)
public LinkRemovedBuilder setSource(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value)
public LinkRemovedBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved> augmentationValue)
public LinkRemovedBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkRemoved>> augmentationType)
public LinkRemoved build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<LinkRemoved,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.