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