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