public class GetMacInputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<GetMacInput>
GetMacInputBuilder
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:
GetMacInputBuilder createTarget(int fooXyzzy, int barBaz) {
return new GetMacInputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of GetMacInputBuilder, 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 methodGetMacInputBuilder
,
Builder
Constructor and Description |
---|
GetMacInputBuilder() |
GetMacInputBuilder(GetMacInput base) |
GetMacInputBuilder(Interfaces arg) |
Modifier and Type | Method and Description |
---|---|
GetMacInputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> |
augmentation(Class<E$$> augmentationType) |
GetMacInput |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<InterfaceAddress> |
getInterfaceAddress() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpaddress() |
GetMacInputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> augmentationType) |
GetMacInputBuilder |
setInterfaceAddress(List<InterfaceAddress> values) |
GetMacInputBuilder |
setIpaddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value) |
public GetMacInputBuilder()
public GetMacInputBuilder(Interfaces arg)
public GetMacInputBuilder(GetMacInput base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic List<InterfaceAddress> getInterfaceAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpaddress()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> E$$ augmentation(Class<E$$> augmentationType)
public GetMacInputBuilder setInterfaceAddress(List<InterfaceAddress> values)
public GetMacInputBuilder setIpaddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress value)
public GetMacInputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput> augmentationValue)
public GetMacInputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<GetMacInput>> augmentationType)
public GetMacInput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<GetMacInput,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.