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