public class MonitorProfilesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MonitorProfiles>
MonitorProfilesBuilder
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:
MonitorProfilesBuilder createTarget(int fooXyzzy, int barBaz) {
return new MonitorProfilesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MonitorProfilesBuilder, 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 methodMonitorProfilesBuilder
,
Builder
Constructor and Description |
---|
MonitorProfilesBuilder() |
MonitorProfilesBuilder(MonitorProfiles base) |
Modifier and Type | Method and Description |
---|---|
MonitorProfilesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> |
augmentation(Class<E$$> augmentationType) |
MonitorProfiles |
build() |
List<MonitorProfile> |
getMonitorProfile() |
MonitorProfilesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> augmentationType) |
MonitorProfilesBuilder |
setMonitorProfile(List<MonitorProfile> values) |
public MonitorProfilesBuilder()
public MonitorProfilesBuilder(MonitorProfiles base)
public List<MonitorProfile> getMonitorProfile()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> E$$ augmentation(Class<E$$> augmentationType)
public MonitorProfilesBuilder setMonitorProfile(List<MonitorProfile> values)
public MonitorProfilesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles> augmentationValue)
public MonitorProfilesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MonitorProfiles>> augmentationType)
public MonitorProfiles build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MonitorProfiles,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.