public class VendorInformationTlvBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<VendorInformationTlv>
VendorInformationTlvBuilder 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:
VendorInformationTlvBuilder createTarget(int fooXyzzy, int barBaz) {
return new VendorInformationTlvBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of VendorInformationTlvBuilder, 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 methodVendorInformationTlvBuilder,
Builder| Constructor and Description |
|---|
VendorInformationTlvBuilder() |
VendorInformationTlvBuilder(Tlv arg) |
VendorInformationTlvBuilder(VendorInformation arg) |
VendorInformationTlvBuilder(VendorInformationTlv base) |
| Modifier and Type | Method and Description |
|---|---|
VendorInformationTlvBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> |
augmentation(Class<E$$> augmentationType) |
VendorInformationTlv |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.iana.rev130816.EnterpriseNumber |
getEnterpriseNumber() |
EnterpriseSpecificInformation |
getEnterpriseSpecificInformation() |
VendorInformationTlvBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> augmentationType) |
VendorInformationTlvBuilder |
setEnterpriseNumber(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.iana.rev130816.EnterpriseNumber value) |
VendorInformationTlvBuilder |
setEnterpriseSpecificInformation(EnterpriseSpecificInformation value) |
public VendorInformationTlvBuilder()
public VendorInformationTlvBuilder(Tlv arg)
public VendorInformationTlvBuilder(VendorInformation arg)
public VendorInformationTlvBuilder(VendorInformationTlv 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.params.xml.ns.yang.iana.rev130816.EnterpriseNumber getEnterpriseNumber()
public EnterpriseSpecificInformation getEnterpriseSpecificInformation()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> E$$ augmentation(Class<E$$> augmentationType)
public VendorInformationTlvBuilder setEnterpriseNumber(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.iana.rev130816.EnterpriseNumber value)
public VendorInformationTlvBuilder setEnterpriseSpecificInformation(EnterpriseSpecificInformation value)
public VendorInformationTlvBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv> augmentationValue)
public VendorInformationTlvBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<VendorInformationTlv>> augmentationType)
public VendorInformationTlv build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<VendorInformationTlv,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.