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