public class ProfileBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Profile>
ProfileBuilder
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:
ProfileBuilder createTarget(int fooXyzzy, int barBaz) {
return new ProfileBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ProfileBuilder, 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 methodProfileBuilder
,
Builder
Constructor and Description |
---|
ProfileBuilder() |
ProfileBuilder(BfdParams arg) |
ProfileBuilder(MonitorProfileParams arg) |
ProfileBuilder(Profile base) |
public ProfileBuilder()
public ProfileBuilder(MonitorProfileParams arg)
public ProfileBuilder(BfdParams arg)
public ProfileBuilder(Profile base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic String getCheckTnlKey()
public String getCpathDown()
public Long getDecayMinRx()
public Long getFailureThreshold()
public String getForwardingIfRx()
public Long getMinRx()
public Long getMinTx()
public Long getMonitorInterval()
public Long getMonitorWindow()
public MonitorProtocolType getProtocolType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Profile>> E$$ augmentation(Class<E$$> augmentationType)
public ProfileBuilder setCheckTnlKey(String value)
public ProfileBuilder setCpathDown(String value)
public ProfileBuilder setDecayMinRx(Long value)
public ProfileBuilder setFailureThreshold(Long value)
public ProfileBuilder setForwardingIfRx(String value)
public ProfileBuilder setMinRx(Long value)
public ProfileBuilder setMinTx(Long value)
public ProfileBuilder setMonitorInterval(Long value)
public ProfileBuilder setMonitorWindow(Long value)
public ProfileBuilder setProtocolType(MonitorProtocolType value)
public ProfileBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Profile>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Profile> augmentationValue)
public ProfileBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Profile>> augmentationType)
public Profile build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Profile,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.