public class ReleasedIdsHolderBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ReleasedIdsHolder>
ReleasedIdsHolderBuilder
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:
ReleasedIdsHolderBuilder createTarget(int fooXyzzy, int barBaz) {
return new ReleasedIdsHolderBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ReleasedIdsHolderBuilder, 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 methodReleasedIdsHolderBuilder
,
Builder
Constructor and Description |
---|
ReleasedIdsHolderBuilder() |
ReleasedIdsHolderBuilder(ReleasedIds arg) |
ReleasedIdsHolderBuilder(ReleasedIdsHolder base) |
Modifier and Type | Method and Description |
---|---|
ReleasedIdsHolderBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> |
augmentation(Class<E$$> augmentationType) |
ReleasedIdsHolder |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Long |
getAvailableIdCount() |
List<DelayedIdEntries> |
getDelayedIdEntries() |
Long |
getDelayedTimeSec() |
ReleasedIdsHolderBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> augmentationType) |
ReleasedIdsHolderBuilder |
setAvailableIdCount(Long value) |
ReleasedIdsHolderBuilder |
setDelayedIdEntries(List<DelayedIdEntries> values) |
ReleasedIdsHolderBuilder |
setDelayedTimeSec(Long value) |
public ReleasedIdsHolderBuilder()
public ReleasedIdsHolderBuilder(ReleasedIds arg)
public ReleasedIdsHolderBuilder(ReleasedIdsHolder base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic Long getAvailableIdCount()
public List<DelayedIdEntries> getDelayedIdEntries()
public Long getDelayedTimeSec()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> E$$ augmentation(Class<E$$> augmentationType)
public ReleasedIdsHolderBuilder setAvailableIdCount(Long value)
public ReleasedIdsHolderBuilder setDelayedIdEntries(List<DelayedIdEntries> values)
public ReleasedIdsHolderBuilder setDelayedTimeSec(Long value)
public ReleasedIdsHolderBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder> augmentationValue)
public ReleasedIdsHolderBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ReleasedIdsHolder>> augmentationType)
public ReleasedIdsHolder build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ReleasedIdsHolder,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.