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