public class ServicesInfoBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ServicesInfo>
ServicesInfoBuilder
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:
ServicesInfoBuilder createTarget(int fooXyzzy, int barBaz) {
return new ServicesInfoBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ServicesInfoBuilder, 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 methodServicesInfoBuilder
,
Builder
Constructor and Description |
---|
ServicesInfoBuilder() |
ServicesInfoBuilder(ServicesInfo base) |
Modifier and Type | Method and Description |
---|---|
ServicesInfoBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> |
augmentation(Class<E$$> augmentationType) |
ServicesInfo |
build() |
List<BoundServices> |
getBoundServices() |
String |
getInterfaceName() |
Class<? extends ServiceModeBase> |
getServiceMode() |
ServicesInfoKey |
key() |
ServicesInfoBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> augmentationType) |
ServicesInfoBuilder |
setBoundServices(List<BoundServices> values) |
ServicesInfoBuilder |
setInterfaceName(String value) |
ServicesInfoBuilder |
setServiceMode(Class<? extends ServiceModeBase> value) |
ServicesInfoBuilder |
withKey(ServicesInfoKey key) |
public ServicesInfoBuilder()
public ServicesInfoBuilder(ServicesInfo base)
public ServicesInfoKey key()
public List<BoundServices> getBoundServices()
public String getInterfaceName()
public Class<? extends ServiceModeBase> getServiceMode()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> E$$ augmentation(Class<E$$> augmentationType)
public ServicesInfoBuilder withKey(ServicesInfoKey key)
public ServicesInfoBuilder setBoundServices(List<BoundServices> values)
public ServicesInfoBuilder setInterfaceName(String value)
public ServicesInfoBuilder setServiceMode(Class<? extends ServiceModeBase> value)
public ServicesInfoBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo> augmentationValue)
public ServicesInfoBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ServicesInfo>> augmentationType)
public ServicesInfo build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ServicesInfo,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.