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