public class MonitoringStateBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MonitoringState>
MonitoringStateBuilder
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:
MonitoringStateBuilder createTarget(int fooXyzzy, int barBaz) {
return new MonitoringStateBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MonitoringStateBuilder, 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 methodMonitoringStateBuilder
,
Builder
Constructor and Description |
---|
MonitoringStateBuilder() |
MonitoringStateBuilder(MonitoringState base) |
public MonitoringStateBuilder()
public MonitoringStateBuilder(MonitoringState base)
public MonitoringStateKey key()
public Long getMonitorId()
public String getMonitorKey()
public Long getRequestCount()
public Long getResponsePendingCount()
public LivenessState getState()
public MonitorStatus getStatus()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitoringState>> E$$ augmentation(Class<E$$> augmentationType)
public MonitoringStateBuilder withKey(MonitoringStateKey key)
public MonitoringStateBuilder setMonitorId(Long value)
public MonitoringStateBuilder setMonitorKey(String value)
public MonitoringStateBuilder setRequestCount(Long value)
public MonitoringStateBuilder setResponsePendingCount(Long value)
public MonitoringStateBuilder setState(LivenessState value)
public MonitoringStateBuilder setStatus(MonitorStatus value)
public MonitoringStateBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitoringState>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MonitoringState> augmentationValue)
public MonitoringStateBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitoringState>> augmentationType)
public MonitoringState build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MonitoringState,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.