public class GetPortFromInterfaceOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GetPortFromInterfaceOutput>
GetPortFromInterfaceOutputBuilder
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:
GetPortFromInterfaceOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new GetPortFromInterfaceOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GetPortFromInterfaceOutputBuilder, 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 methodGetPortFromInterfaceOutputBuilder
,
Builder
Constructor and Description |
---|
GetPortFromInterfaceOutputBuilder() |
GetPortFromInterfaceOutputBuilder(GetPortFromInterfaceOutput base) |
public GetPortFromInterfaceOutputBuilder()
public GetPortFromInterfaceOutputBuilder(GetPortFromInterfaceOutput base)
public BigInteger getDpid()
public String getPhyAddress()
public String getPortname()
public Long getPortno()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetPortFromInterfaceOutput>> E$$ augmentation(Class<E$$> augmentationType)
public GetPortFromInterfaceOutputBuilder setDpid(BigInteger value)
public GetPortFromInterfaceOutputBuilder setPhyAddress(String value)
public GetPortFromInterfaceOutputBuilder setPortname(String value)
public GetPortFromInterfaceOutputBuilder setPortno(Long value)
public GetPortFromInterfaceOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetPortFromInterfaceOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GetPortFromInterfaceOutput> augmentationValue)
public GetPortFromInterfaceOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetPortFromInterfaceOutput>> augmentationType)
public GetPortFromInterfaceOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GetPortFromInterfaceOutput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.