public class Icmpv4CodeCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Icmpv4CodeCase>
Icmpv4CodeCaseBuilder
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:
Icmpv4CodeCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new Icmpv4CodeCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of Icmpv4CodeCaseBuilder, 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 methodIcmpv4CodeCaseBuilder
,
Builder
Constructor and Description |
---|
Icmpv4CodeCaseBuilder() |
Icmpv4CodeCaseBuilder(Icmpv4CodeCase base) |
Modifier and Type | Method and Description |
---|---|
Icmpv4CodeCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> |
augmentation(Class<E$$> augmentationType) |
Icmpv4CodeCase |
build() |
Icmpv4Code |
getIcmpv4Code() |
Icmpv4CodeCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> augmentationType) |
Icmpv4CodeCaseBuilder |
setIcmpv4Code(Icmpv4Code value) |
public Icmpv4CodeCaseBuilder()
public Icmpv4CodeCaseBuilder(Icmpv4CodeCase base)
public Icmpv4Code getIcmpv4Code()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> E$$ augmentation(Class<E$$> augmentationType)
public Icmpv4CodeCaseBuilder setIcmpv4Code(Icmpv4Code value)
public Icmpv4CodeCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase> augmentationValue)
public Icmpv4CodeCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Icmpv4CodeCase>> augmentationType)
public Icmpv4CodeCase build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Icmpv4CodeCase,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.