public class GeneralAugMatchNotifPacketInBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GeneralAugMatchNotifPacketIn>
GeneralAugMatchNotifPacketInBuilder
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:
GeneralAugMatchNotifPacketInBuilder createTarget(int fooXyzzy, int barBaz) {
return new GeneralAugMatchNotifPacketInBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GeneralAugMatchNotifPacketInBuilder, 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 methodGeneralAugMatchNotifPacketInBuilder
,
Builder
Constructor and Description |
---|
GeneralAugMatchNotifPacketInBuilder() |
GeneralAugMatchNotifPacketInBuilder(GeneralAugMatchNotifPacketIn base) |
GeneralAugMatchNotifPacketInBuilder(GeneralExtensionListGrouping arg) |
Modifier and Type | Method and Description |
---|---|
GeneralAugMatchNotifPacketIn |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<ExtensionList> |
getExtensionList() |
GeneralAugMatchNotifPacketInBuilder |
setExtensionList(List<ExtensionList> values) |
public GeneralAugMatchNotifPacketInBuilder()
public GeneralAugMatchNotifPacketInBuilder(GeneralExtensionListGrouping arg)
public GeneralAugMatchNotifPacketInBuilder(GeneralAugMatchNotifPacketIn base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<ExtensionList> getExtensionList()
public GeneralAugMatchNotifPacketInBuilder setExtensionList(List<ExtensionList> values)
public GeneralAugMatchNotifPacketIn build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GeneralAugMatchNotifPacketIn,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.