public class BoundServicesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BoundServices>
BoundServicesBuilder
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:
BoundServicesBuilder createTarget(int fooXyzzy, int barBaz) {
return new BoundServicesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BoundServicesBuilder, 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 methodBoundServicesBuilder
,
Builder
Constructor and Description |
---|
BoundServicesBuilder() |
BoundServicesBuilder(BoundServices base) |
Modifier and Type | Method and Description |
---|---|
BoundServicesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> |
augmentation(Class<E$$> augmentationType) |
BoundServices |
build() |
String |
getServiceName() |
Short |
getServicePriority() |
Class<? extends ServiceTypeBase> |
getServiceType() |
BoundServicesKey |
key() |
BoundServicesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> augmentationType) |
BoundServicesBuilder |
setServiceName(String value) |
BoundServicesBuilder |
setServicePriority(Short value) |
BoundServicesBuilder |
setServiceType(Class<? extends ServiceTypeBase> value) |
BoundServicesBuilder |
withKey(BoundServicesKey key) |
public BoundServicesBuilder()
public BoundServicesBuilder(BoundServices base)
public BoundServicesKey key()
public String getServiceName()
public Short getServicePriority()
public Class<? extends ServiceTypeBase> getServiceType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> E$$ augmentation(Class<E$$> augmentationType)
public BoundServicesBuilder withKey(BoundServicesKey key)
public BoundServicesBuilder setServiceName(String value)
public BoundServicesBuilder setServicePriority(Short value)
public BoundServicesBuilder setServiceType(Class<? extends ServiceTypeBase> value)
public BoundServicesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices> augmentationValue)
public BoundServicesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServices>> augmentationType)
public BoundServices build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BoundServices,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.