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