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