public class PrefixListBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PrefixList>
PrefixListBuilder
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:
PrefixListBuilder createTarget(int fooXyzzy, int barBaz) {
return new PrefixListBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PrefixListBuilder, 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 methodPrefixListBuilder
,
Builder
Constructor and Description |
---|
PrefixListBuilder() |
PrefixListBuilder(PrefixList base) |
Modifier and Type | Method and Description |
---|---|
PrefixListBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> |
augmentation(Class<E$$> augmentationType) |
PrefixList |
build() |
Short |
getFlags() |
Short |
getOptionLength() |
Short |
getOptionType() |
Long |
getPreferredLifetime() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix |
getPrefix() |
Short |
getPrefixLength() |
Long |
getReserved() |
Long |
getValidLifetime() |
PrefixListKey |
key() |
PrefixListBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> augmentationType) |
PrefixListBuilder |
setFlags(Short value) |
PrefixListBuilder |
setOptionLength(Short value) |
PrefixListBuilder |
setOptionType(Short value) |
PrefixListBuilder |
setPreferredLifetime(Long value) |
PrefixListBuilder |
setPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix value) |
PrefixListBuilder |
setPrefixLength(Short value) |
PrefixListBuilder |
setReserved(Long value) |
PrefixListBuilder |
setValidLifetime(Long value) |
PrefixListBuilder |
withKey(PrefixListKey key) |
public PrefixListBuilder()
public PrefixListBuilder(PrefixList base)
public PrefixListKey key()
public Short getFlags()
public Short getOptionLength()
public Short getOptionType()
public Long getPreferredLifetime()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix getPrefix()
public Short getPrefixLength()
public Long getReserved()
public Long getValidLifetime()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> E$$ augmentation(Class<E$$> augmentationType)
public PrefixListBuilder withKey(PrefixListKey key)
public PrefixListBuilder setFlags(Short value)
public PrefixListBuilder setOptionLength(Short value)
public PrefixListBuilder setOptionType(Short value)
public PrefixListBuilder setPreferredLifetime(Long value)
public PrefixListBuilder setPrefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix value)
public PrefixListBuilder setPrefixLength(Short value)
public PrefixListBuilder setReserved(Long value)
public PrefixListBuilder setValidLifetime(Long value)
public PrefixListBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList> augmentationValue)
public PrefixListBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PrefixList>> augmentationType)
public PrefixList build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PrefixList,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.