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