public class TryLockInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TryLockInput>
TryLockInputBuilder
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:
TryLockInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new TryLockInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TryLockInputBuilder, 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 methodTryLockInputBuilder
,
Builder
Constructor and Description |
---|
TryLockInputBuilder() |
TryLockInputBuilder(TryLockInput base) |
Modifier and Type | Method and Description |
---|---|
TryLockInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> |
augmentation(Class<E$$> augmentationType) |
TryLockInput |
build() |
String |
getLockName() |
Long |
getTime() |
TimeUnits |
getTimeUnit() |
TryLockInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> augmentationType) |
TryLockInputBuilder |
setLockName(String value) |
TryLockInputBuilder |
setTime(Long value) |
TryLockInputBuilder |
setTimeUnit(TimeUnits value) |
public TryLockInputBuilder()
public TryLockInputBuilder(TryLockInput base)
public String getLockName()
public Long getTime()
public TimeUnits getTimeUnit()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> E$$ augmentation(Class<E$$> augmentationType)
public TryLockInputBuilder setLockName(String value)
public TryLockInputBuilder setTime(Long value)
public TryLockInputBuilder setTimeUnit(TimeUnits value)
public TryLockInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput> augmentationValue)
public TryLockInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TryLockInput>> augmentationType)
public TryLockInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TryLockInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.