public class ChildPoolsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ChildPools>
ChildPoolsBuilder
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:
ChildPoolsBuilder createTarget(int fooXyzzy, int barBaz) {
return new ChildPoolsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ChildPoolsBuilder, 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 methodChildPoolsBuilder
,
Builder
Constructor and Description |
---|
ChildPoolsBuilder() |
ChildPoolsBuilder(ChildPools base) |
Modifier and Type | Method and Description |
---|---|
ChildPoolsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> |
augmentation(Class<E$$> augmentationType) |
ChildPools |
build() |
String |
getChildPoolName() |
Long |
getLastAccessTime() |
ChildPoolsKey |
key() |
ChildPoolsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> augmentationType) |
ChildPoolsBuilder |
setChildPoolName(String value) |
ChildPoolsBuilder |
setLastAccessTime(Long value) |
ChildPoolsBuilder |
withKey(ChildPoolsKey key) |
public ChildPoolsBuilder()
public ChildPoolsBuilder(ChildPools base)
public ChildPoolsKey key()
public String getChildPoolName()
public Long getLastAccessTime()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> E$$ augmentation(Class<E$$> augmentationType)
public ChildPoolsBuilder withKey(ChildPoolsKey key)
public ChildPoolsBuilder setChildPoolName(String value)
public ChildPoolsBuilder setLastAccessTime(Long value)
public ChildPoolsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools> augmentationValue)
public ChildPoolsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ChildPools>> augmentationType)
public ChildPools build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ChildPools,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.