public class UnnumberedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Unnumbered>
UnnumberedBuilder 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:
UnnumberedBuilder createTarget(int fooXyzzy, int barBaz) {
return new UnnumberedBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UnnumberedBuilder, 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 methodUnnumberedBuilder,
Builder| Constructor and Description |
|---|
UnnumberedBuilder() |
UnnumberedBuilder(CSubobject arg) |
UnnumberedBuilder(Unnumbered base) |
UnnumberedBuilder(UnnumberedSubobject arg) |
| Modifier and Type | Method and Description |
|---|---|
UnnumberedBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> |
augmentation(Class<E$$> augmentationType) |
Unnumbered |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Long |
getInterfaceId() |
Long |
getRouterId() |
UnnumberedBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> augmentationType) |
UnnumberedBuilder |
setInterfaceId(Long value) |
UnnumberedBuilder |
setRouterId(Long value) |
public UnnumberedBuilder()
public UnnumberedBuilder(UnnumberedSubobject arg)
public UnnumberedBuilder(CSubobject arg)
public UnnumberedBuilder(Unnumbered base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Long getInterfaceId()
public Long getRouterId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> E$$ augmentation(Class<E$$> augmentationType)
public UnnumberedBuilder setInterfaceId(Long value)
public UnnumberedBuilder setRouterId(Long value)
public UnnumberedBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered> augmentationValue)
public UnnumberedBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Unnumbered>> augmentationType)
public Unnumbered build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Unnumbered,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.