public class PrefixBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Prefix>
PrefixBuilder
instances.PrefixBuilder
Constructor and Description |
---|
PrefixBuilder() |
PrefixBuilder(IgpPrefixAttributes arg) |
PrefixBuilder(Prefix base) |
Modifier and Type | Method and Description |
---|---|
PrefixBuilder |
addAugmentation(Class<? extends Augmentation<Prefix>> augmentationType,
Augmentation<Prefix> augmentationValue) |
<E extends Augmentation<Prefix>> |
augmentation(Class<E> augmentationType) |
Prefix |
build() |
void |
fieldsFrom(DataObject arg)
Set fields from given grouping argument.
|
List<Class<? extends FlagIdentity>> |
getFlag() |
Long |
getMetric() |
IpPrefix |
getPrefix() |
PrefixKey |
key() |
PrefixBuilder |
removeAugmentation(Class<? extends Augmentation<Prefix>> augmentationType) |
PrefixBuilder |
setFlag(List<Class<? extends FlagIdentity>> values) |
PrefixBuilder |
setMetric(Long value) |
PrefixBuilder |
setPrefix(IpPrefix value) |
PrefixBuilder |
withKey(PrefixKey key) |
public PrefixBuilder()
public PrefixBuilder(IgpPrefixAttributes arg)
public PrefixBuilder(Prefix base)
public void fieldsFrom(DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic PrefixKey key()
public List<Class<? extends FlagIdentity>> getFlag()
public Long getMetric()
public IpPrefix getPrefix()
public <E extends Augmentation<Prefix>> E augmentation(Class<E> augmentationType)
public PrefixBuilder withKey(PrefixKey key)
public PrefixBuilder setFlag(List<Class<? extends FlagIdentity>> values)
public PrefixBuilder setMetric(Long value)
public PrefixBuilder setPrefix(IpPrefix value)
public PrefixBuilder addAugmentation(Class<? extends Augmentation<Prefix>> augmentationType, Augmentation<Prefix> augmentationValue)
public PrefixBuilder removeAugmentation(Class<? extends Augmentation<Prefix>> augmentationType)
public Prefix build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Prefix,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.