public class TlvsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Tlvs>
TlvsBuilder 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:
TlvsBuilder createTarget(int fooXyzzy, int barBaz) {
return new TlvsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TlvsBuilder, 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 methodTlvsBuilder,
Builder| Constructor and Description |
|---|
TlvsBuilder() |
TlvsBuilder(OrderTlv arg) |
TlvsBuilder(PathSetupTypeTlv arg) |
TlvsBuilder(Tlvs base) |
TlvsBuilder(VendorInformationTlvs arg) |
| Modifier and Type | Method and Description |
|---|---|
TlvsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> |
augmentation(Class<E$$> augmentationType) |
Tlvs |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Order |
getOrder() |
PathSetupType |
getPathSetupType() |
List<VendorInformationTlv> |
getVendorInformationTlv() |
TlvsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> augmentationType) |
TlvsBuilder |
setOrder(Order value) |
TlvsBuilder |
setPathSetupType(PathSetupType value) |
TlvsBuilder |
setVendorInformationTlv(List<VendorInformationTlv> values) |
public TlvsBuilder()
public TlvsBuilder(OrderTlv arg)
public TlvsBuilder(VendorInformationTlvs arg)
public TlvsBuilder(PathSetupTypeTlv arg)
public TlvsBuilder(Tlvs base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Order getOrder()
public PathSetupType getPathSetupType()
public List<VendorInformationTlv> getVendorInformationTlv()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> E$$ augmentation(Class<E$$> augmentationType)
public TlvsBuilder setOrder(Order value)
public TlvsBuilder setPathSetupType(PathSetupType value)
public TlvsBuilder setVendorInformationTlv(List<VendorInformationTlv> values)
public TlvsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs> augmentationValue)
public TlvsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Tlvs>> augmentationType)
public Tlvs build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Tlvs,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.