public class ToasterRestockedBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ToasterRestocked>
ToasterRestockedBuilder 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:
ToasterRestockedBuilder createTarget(int fooXyzzy, int barBaz) {
return new ToasterRestockedBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ToasterRestockedBuilder, 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 methodToasterRestockedBuilder,
Builder| Constructor and Description |
|---|
ToasterRestockedBuilder() |
ToasterRestockedBuilder(ToasterRestocked base) |
| Modifier and Type | Method and Description |
|---|---|
ToasterRestockedBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> |
augmentation(Class<E$$> augmentationType) |
ToasterRestocked |
build() |
Long |
getAmountOfBread() |
ToasterRestockedBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> augmentationType) |
ToasterRestockedBuilder |
setAmountOfBread(Long value) |
public ToasterRestockedBuilder()
public ToasterRestockedBuilder(ToasterRestocked base)
public Long getAmountOfBread()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> E$$ augmentation(Class<E$$> augmentationType)
public ToasterRestockedBuilder setAmountOfBread(Long value)
public ToasterRestockedBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked> augmentationValue)
public ToasterRestockedBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ToasterRestocked>> augmentationType)
public ToasterRestocked build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ToasterRestocked,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.