public class SvecBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Svec>
SvecBuilder 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:
SvecBuilder createTarget(int fooXyzzy, int barBaz) {
return new SvecBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SvecBuilder, 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 methodSvecBuilder,
Builder| Constructor and Description |
|---|
SvecBuilder() |
SvecBuilder(ExcludeRouteObject arg) |
SvecBuilder(GcObject arg) |
SvecBuilder(OfObject arg) |
SvecBuilder(Svec base) |
SvecBuilder(SvecObject arg) |
SvecBuilder(VendorInformationObjects arg) |
| Modifier and Type | Method and Description |
|---|---|
SvecBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Svec> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> |
augmentation(Class<E$$> augmentationType) |
Svec |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Gc |
getGc() |
List<Metric> |
getMetric() |
Of |
getOf() |
Svec |
getSvec() |
List<VendorInformationObject> |
getVendorInformationObject() |
Xro |
getXro() |
SvecBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> augmentationType) |
SvecBuilder |
setGc(Gc value) |
SvecBuilder |
setMetric(List<Metric> values) |
SvecBuilder |
setOf(Of value) |
SvecBuilder |
setSvec(Svec value) |
SvecBuilder |
setVendorInformationObject(List<VendorInformationObject> values) |
SvecBuilder |
setXro(Xro value) |
public SvecBuilder()
public SvecBuilder(SvecObject arg)
public SvecBuilder(OfObject arg)
public SvecBuilder(GcObject arg)
public SvecBuilder(ExcludeRouteObject arg)
public SvecBuilder(VendorInformationObjects arg)
public SvecBuilder(Svec base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Gc getGc()
public Of getOf()
public Svec getSvec()
public List<VendorInformationObject> getVendorInformationObject()
public Xro getXro()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> E$$ augmentation(Class<E$$> augmentationType)
public SvecBuilder setGc(Gc value)
public SvecBuilder setMetric(List<Metric> values)
public SvecBuilder setOf(Of value)
public SvecBuilder setSvec(Svec value)
public SvecBuilder setVendorInformationObject(List<VendorInformationObject> values)
public SvecBuilder setXro(Xro value)
public SvecBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Svec> augmentationValue)
public SvecBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Svec>> augmentationType)
public Svec build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Svec,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.