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