public class AclsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<Acls>
AclsBuilder
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:
AclsBuilder createTarget(int fooXyzzy, int barBaz) {
return new AclsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AclsBuilder, 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 methodAclsBuilder
,
Builder
Constructor and Description |
---|
AclsBuilder() |
AclsBuilder(Acls base) |
AclsBuilder(HwvtepAclAttributes arg) |
Modifier and Type | Method and Description |
---|---|
AclsBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<Acls> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> |
augmentation(Class<E$$> augmentationType) |
Acls |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<AclEntries> |
getAclEntries() |
List<AclFaultStatus> |
getAclFaultStatus() |
String |
getAclName() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid |
getAclUuid() |
AclsKey |
key() |
AclsBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> augmentationType) |
AclsBuilder |
setAclEntries(List<AclEntries> values) |
AclsBuilder |
setAclFaultStatus(List<AclFaultStatus> values) |
AclsBuilder |
setAclName(String value) |
AclsBuilder |
setAclUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value) |
AclsBuilder |
withKey(AclsKey key) |
public AclsBuilder()
public AclsBuilder(HwvtepAclAttributes arg)
public AclsBuilder(Acls base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic AclsKey key()
public List<AclEntries> getAclEntries()
public List<AclFaultStatus> getAclFaultStatus()
public String getAclName()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getAclUuid()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> E$$ augmentation(Class<E$$> augmentationType)
public AclsBuilder withKey(AclsKey key)
public AclsBuilder setAclEntries(List<AclEntries> values)
public AclsBuilder setAclFaultStatus(List<AclFaultStatus> values)
public AclsBuilder setAclName(String value)
public AclsBuilder setAclUuid(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid value)
public AclsBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<Acls> augmentationValue)
public AclsBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<Acls>> augmentationType)
public Acls build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<Acls,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.