public class StaticRoutesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<StaticRoutes>
StaticRoutesBuilder
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:
StaticRoutesBuilder createTarget(int fooXyzzy, int barBaz) {
return new StaticRoutesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of StaticRoutesBuilder, 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 methodStaticRoutesBuilder
,
Builder
Constructor and Description |
---|
StaticRoutesBuilder() |
StaticRoutesBuilder(StaticRoutes base) |
Modifier and Type | Method and Description |
---|---|
StaticRoutesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> |
augmentation(Class<E$$> augmentationType) |
StaticRoutes |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getDestinationAddress() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getNexthopAddress() |
StaticRoutesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> augmentationType) |
StaticRoutesBuilder |
setDestinationAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
StaticRoutesBuilder |
setNexthopAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
public StaticRoutesBuilder()
public StaticRoutesBuilder(StaticRoutes base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getDestinationAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getNexthopAddress()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> E$$ augmentation(Class<E$$> augmentationType)
public StaticRoutesBuilder setDestinationAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public StaticRoutesBuilder setNexthopAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public StaticRoutesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes> augmentationValue)
public StaticRoutesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<StaticRoutes>> augmentationType)
public StaticRoutes build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<StaticRoutes,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.