public class ManagerEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ManagerEntry>
ManagerEntryBuilder
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:
ManagerEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new ManagerEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ManagerEntryBuilder, 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 methodManagerEntryBuilder
,
Builder
Constructor and Description |
---|
ManagerEntryBuilder() |
ManagerEntryBuilder(ManagerEntry base) |
Modifier and Type | Method and Description |
---|---|
ManagerEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> |
augmentation(Class<E$$> augmentationType) |
ManagerEntry |
build() |
Long |
getNumberOfConnections() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri |
getTarget() |
Boolean |
isConnected() |
ManagerEntryKey |
key() |
ManagerEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> augmentationType) |
ManagerEntryBuilder |
setConnected(Boolean value) |
ManagerEntryBuilder |
setNumberOfConnections(Long value) |
ManagerEntryBuilder |
setTarget(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value) |
ManagerEntryBuilder |
withKey(ManagerEntryKey key) |
public ManagerEntryBuilder()
public ManagerEntryBuilder(ManagerEntry base)
public ManagerEntryKey key()
public Long getNumberOfConnections()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri getTarget()
public Boolean isConnected()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> E$$ augmentation(Class<E$$> augmentationType)
public ManagerEntryBuilder withKey(ManagerEntryKey key)
public ManagerEntryBuilder setNumberOfConnections(Long value)
public ManagerEntryBuilder setTarget(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri value)
public ManagerEntryBuilder setConnected(Boolean value)
public ManagerEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry> augmentationValue)
public ManagerEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ManagerEntry>> augmentationType)
public ManagerEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ManagerEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.