public class NeighborAdvertisePacketBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NeighborAdvertisePacket>
NeighborAdvertisePacketBuilder
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:
NeighborAdvertisePacketBuilder createTarget(int fooXyzzy, int barBaz) {
return new NeighborAdvertisePacketBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NeighborAdvertisePacketBuilder, 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 methodNeighborAdvertisePacketBuilder
,
Builder
Constructor and Description |
---|
NeighborAdvertisePacketBuilder() |
NeighborAdvertisePacketBuilder(EthernetHeader arg) |
NeighborAdvertisePacketBuilder(Icmp6Header arg) |
NeighborAdvertisePacketBuilder(Ipv6Header arg) |
NeighborAdvertisePacketBuilder(NeighborAdvertisePacket base) |
Modifier and Type | Method and Description |
---|---|
NeighborAdvertisePacketBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> |
augmentation(Class<E$$> augmentationType) |
NeighborAdvertisePacket |
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.Ipv6Address |
getDestinationIpv6() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getDestinationMac() |
Integer |
getEthertype() |
Long |
getFlags() |
Long |
getFlowLabel() |
Short |
getHopLimit() |
Integer |
getIcmp6Chksum() |
Short |
getIcmp6Code() |
Short |
getIcmp6Type() |
Integer |
getIpv6Length() |
Short |
getNextHeader() |
Short |
getOptionType() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address |
getSourceIpv6() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getSourceMac() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address |
getTargetAddress() |
Short |
getTargetAddrLength() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getTargetLlAddress() |
Short |
getVersion() |
NeighborAdvertisePacketBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> augmentationType) |
NeighborAdvertisePacketBuilder |
setDestinationIpv6(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value) |
NeighborAdvertisePacketBuilder |
setDestinationMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
NeighborAdvertisePacketBuilder |
setEthertype(Integer value) |
NeighborAdvertisePacketBuilder |
setFlags(Long value) |
NeighborAdvertisePacketBuilder |
setFlowLabel(Long value) |
NeighborAdvertisePacketBuilder |
setHopLimit(Short value) |
NeighborAdvertisePacketBuilder |
setIcmp6Chksum(Integer value) |
NeighborAdvertisePacketBuilder |
setIcmp6Code(Short value) |
NeighborAdvertisePacketBuilder |
setIcmp6Type(Short value) |
NeighborAdvertisePacketBuilder |
setIpv6Length(Integer value) |
NeighborAdvertisePacketBuilder |
setNextHeader(Short value) |
NeighborAdvertisePacketBuilder |
setOptionType(Short value) |
NeighborAdvertisePacketBuilder |
setSourceIpv6(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value) |
NeighborAdvertisePacketBuilder |
setSourceMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
NeighborAdvertisePacketBuilder |
setTargetAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value) |
NeighborAdvertisePacketBuilder |
setTargetAddrLength(Short value) |
NeighborAdvertisePacketBuilder |
setTargetLlAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
NeighborAdvertisePacketBuilder |
setVersion(Short value) |
public NeighborAdvertisePacketBuilder()
public NeighborAdvertisePacketBuilder(Ipv6Header arg)
public NeighborAdvertisePacketBuilder(Icmp6Header arg)
public NeighborAdvertisePacketBuilder(EthernetHeader arg)
public NeighborAdvertisePacketBuilder(NeighborAdvertisePacket 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.Ipv6Address getDestinationIpv6()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getDestinationMac()
public Integer getEthertype()
public Long getFlags()
public Long getFlowLabel()
public Short getHopLimit()
public Integer getIcmp6Chksum()
public Short getIcmp6Code()
public Short getIcmp6Type()
public Integer getIpv6Length()
public Short getNextHeader()
public Short getOptionType()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address getSourceIpv6()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getSourceMac()
public Short getTargetAddrLength()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address getTargetAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getTargetLlAddress()
public Short getVersion()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> E$$ augmentation(Class<E$$> augmentationType)
public NeighborAdvertisePacketBuilder setDestinationIpv6(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value)
public NeighborAdvertisePacketBuilder setDestinationMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public NeighborAdvertisePacketBuilder setEthertype(Integer value)
public NeighborAdvertisePacketBuilder setFlags(Long value)
public NeighborAdvertisePacketBuilder setFlowLabel(Long value)
public NeighborAdvertisePacketBuilder setHopLimit(Short value)
public NeighborAdvertisePacketBuilder setIcmp6Chksum(Integer value)
public NeighborAdvertisePacketBuilder setIcmp6Code(Short value)
public NeighborAdvertisePacketBuilder setIcmp6Type(Short value)
public NeighborAdvertisePacketBuilder setIpv6Length(Integer value)
public NeighborAdvertisePacketBuilder setNextHeader(Short value)
public NeighborAdvertisePacketBuilder setOptionType(Short value)
public NeighborAdvertisePacketBuilder setSourceIpv6(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value)
public NeighborAdvertisePacketBuilder setSourceMac(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public NeighborAdvertisePacketBuilder setTargetAddrLength(Short value)
public NeighborAdvertisePacketBuilder setTargetAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address value)
public NeighborAdvertisePacketBuilder setTargetLlAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public NeighborAdvertisePacketBuilder setVersion(Short value)
public NeighborAdvertisePacketBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket> augmentationValue)
public NeighborAdvertisePacketBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NeighborAdvertisePacket>> augmentationType)
public NeighborAdvertisePacket build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NeighborAdvertisePacket,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.