public class InterfacesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Interfaces>
InterfacesBuilder
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:
InterfacesBuilder createTarget(int fooXyzzy, int barBaz) {
return new InterfacesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of InterfacesBuilder, 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 methodInterfacesBuilder
,
Builder
Constructor and Description |
---|
InterfacesBuilder() |
InterfacesBuilder(Interfaces base) |
Modifier and Type | Method and Description |
---|---|
InterfacesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> |
augmentation(Class<E$$> augmentationType) |
Interfaces |
build() |
String |
getInterfaceName() |
Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> |
getInterfaceType() |
InterfacesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> augmentationType) |
InterfacesBuilder |
setInterfaceName(String value) |
InterfacesBuilder |
setInterfaceType(Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> value) |
public InterfacesBuilder()
public InterfacesBuilder(Interfaces base)
public String getInterfaceName()
public Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> getInterfaceType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> E$$ augmentation(Class<E$$> augmentationType)
public InterfacesBuilder setInterfaceName(String value)
public InterfacesBuilder setInterfaceType(Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> value)
public InterfacesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces> augmentationValue)
public InterfacesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Interfaces>> augmentationType)
public Interfaces build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Interfaces,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.