public class TableFeaturesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TableFeatures>
TableFeaturesBuilder
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:
TableFeaturesBuilder createTarget(int fooXyzzy, int barBaz) {
return new TableFeaturesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TableFeaturesBuilder, 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 methodTableFeaturesBuilder
,
Builder
Constructor and Description |
---|
TableFeaturesBuilder() |
TableFeaturesBuilder(TableFeatures base) |
public TableFeaturesBuilder()
public TableFeaturesBuilder(TableFeatures base)
public TableFeaturesKey key()
public TableConfig getConfig()
public Long getMaxEntries()
public BigInteger getMetadataMatch()
public BigInteger getMetadataWrite()
public String getName()
public Short getTableId()
public TableProperties getTableProperties()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatures>> E$$ augmentation(Class<E$$> augmentationType)
public TableFeaturesBuilder withKey(TableFeaturesKey key)
public TableFeaturesBuilder setConfig(TableConfig value)
public TableFeaturesBuilder setMaxEntries(Long value)
public TableFeaturesBuilder setMetadataMatch(BigInteger value)
public TableFeaturesBuilder setMetadataWrite(BigInteger value)
public TableFeaturesBuilder setName(String value)
public TableFeaturesBuilder setTableId(Short value)
public TableFeaturesBuilder setTableProperties(TableProperties value)
public TableFeaturesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatures>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatures> augmentationValue)
public TableFeaturesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatures>> augmentationType)
public TableFeatures build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TableFeatures,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.