public class GcBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Gc>
GcBuilder 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:
GcBuilder createTarget(int fooXyzzy, int barBaz) {
return new GcBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GcBuilder, 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 methodGcBuilder,
Builder| Constructor and Description |
|---|
GcBuilder() |
GcBuilder(Gc base) |
GcBuilder(Object arg) |
GcBuilder(ObjectHeader arg) |
| Modifier and Type | Method and Description |
|---|---|
GcBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Gc> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> |
augmentation(Class<E$$> augmentationType) |
Gc |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getMaxHop() |
Short |
getMaxUtilization() |
Short |
getMinUtilization() |
Short |
getOverBookingFactor() |
Tlvs |
getTlvs() |
Boolean |
isIgnore() |
Boolean |
isProcessingRule() |
GcBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> augmentationType) |
GcBuilder |
setIgnore(Boolean value) |
GcBuilder |
setMaxHop(Short value) |
GcBuilder |
setMaxUtilization(Short value) |
GcBuilder |
setMinUtilization(Short value) |
GcBuilder |
setOverBookingFactor(Short value) |
GcBuilder |
setProcessingRule(Boolean value) |
GcBuilder |
setTlvs(Tlvs value) |
public GcBuilder()
public GcBuilder(Object arg)
public GcBuilder(ObjectHeader arg)
public GcBuilder(Gc base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getMaxHop()
public Short getMaxUtilization()
public Short getMinUtilization()
public Short getOverBookingFactor()
public Tlvs getTlvs()
public Boolean isIgnore()
public Boolean isProcessingRule()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> E$$ augmentation(Class<E$$> augmentationType)
public GcBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Gc> augmentationValue)
public GcBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Gc>> augmentationType)
public Gc build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Gc,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.