public class BoundServicesStateBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BoundServicesState>
BoundServicesStateBuilder
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:
BoundServicesStateBuilder createTarget(int fooXyzzy, int barBaz) {
return new BoundServicesStateBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BoundServicesStateBuilder, 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 methodBoundServicesStateBuilder
,
Builder
Constructor and Description |
---|
BoundServicesStateBuilder() |
BoundServicesStateBuilder(BoundServicesState base) |
Modifier and Type | Method and Description |
---|---|
BoundServicesStateBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> |
augmentation(Class<E$$> augmentationType) |
BoundServicesState |
build() |
BigInteger |
getDpid() |
Integer |
getIfIndex() |
String |
getInterfaceName() |
Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> |
getInterfaceType() |
Long |
getPortNo() |
Class<? extends ServiceModeBase> |
getServiceMode() |
BoundServicesStateKey |
key() |
BoundServicesStateBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> augmentationType) |
BoundServicesStateBuilder |
setDpid(BigInteger value) |
BoundServicesStateBuilder |
setIfIndex(Integer value) |
BoundServicesStateBuilder |
setInterfaceName(String value) |
BoundServicesStateBuilder |
setInterfaceType(Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> value) |
BoundServicesStateBuilder |
setPortNo(Long value) |
BoundServicesStateBuilder |
setServiceMode(Class<? extends ServiceModeBase> value) |
BoundServicesStateBuilder |
withKey(BoundServicesStateKey key) |
public BoundServicesStateBuilder()
public BoundServicesStateBuilder(BoundServicesState base)
public BoundServicesStateKey key()
public BigInteger getDpid()
public Integer getIfIndex()
public String getInterfaceName()
public Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> getInterfaceType()
public Long getPortNo()
public Class<? extends ServiceModeBase> getServiceMode()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> E$$ augmentation(Class<E$$> augmentationType)
public BoundServicesStateBuilder withKey(BoundServicesStateKey key)
public BoundServicesStateBuilder setDpid(BigInteger value)
public BoundServicesStateBuilder setIfIndex(Integer value)
public BoundServicesStateBuilder setInterfaceName(String value)
public BoundServicesStateBuilder setInterfaceType(Class<? extends org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.InterfaceType> value)
public BoundServicesStateBuilder setPortNo(Long value)
public BoundServicesStateBuilder setServiceMode(Class<? extends ServiceModeBase> value)
public BoundServicesStateBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState> augmentationValue)
public BoundServicesStateBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BoundServicesState>> augmentationType)
public BoundServicesState build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BoundServicesState,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.