public class AclBindingsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AclBindings>
AclBindingsBuilder
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:
AclBindingsBuilder createTarget(int fooXyzzy, int barBaz) {
return new AclBindingsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AclBindingsBuilder, 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 methodAclBindingsBuilder
,
Builder
Constructor and Description |
---|
AclBindingsBuilder() |
AclBindingsBuilder(AclBindings base) |
Modifier and Type | Method and Description |
---|---|
AclBindingsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> |
augmentation(Class<E$$> augmentationType) |
AclBindings |
build() |
HwvtepAclRef |
getAclRef() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix |
getRouterInterface() |
AclBindingsKey |
key() |
AclBindingsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> augmentationType) |
AclBindingsBuilder |
setAclRef(HwvtepAclRef value) |
AclBindingsBuilder |
setRouterInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value) |
AclBindingsBuilder |
withKey(AclBindingsKey key) |
public AclBindingsBuilder()
public AclBindingsBuilder(AclBindings base)
public AclBindingsKey key()
public HwvtepAclRef getAclRef()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix getRouterInterface()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> E$$ augmentation(Class<E$$> augmentationType)
public AclBindingsBuilder withKey(AclBindingsKey key)
public AclBindingsBuilder setAclRef(HwvtepAclRef value)
public AclBindingsBuilder setRouterInterface(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix value)
public AclBindingsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings> augmentationValue)
public AclBindingsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AclBindings>> augmentationType)
public AclBindings build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AclBindings,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.