public class MatchTypeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MatchType>
MatchTypeBuilder
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:
MatchTypeBuilder createTarget(int fooXyzzy, int barBaz) {
return new MatchTypeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MatchTypeBuilder, 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 methodMatchTypeBuilder
,
Builder
Constructor and Description |
---|
MatchTypeBuilder() |
MatchTypeBuilder(Feature arg) |
MatchTypeBuilder(MatchType base) |
Modifier and Type | Method and Description |
---|---|
MatchTypeBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MatchType> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> |
augmentation(Class<E$$> augmentationType) |
MatchType |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
String |
getMatch() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.SupportType |
getSupportState() |
MatchTypeKey |
key() |
MatchTypeBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> augmentationType) |
MatchTypeBuilder |
setMatch(String value) |
MatchTypeBuilder |
setSupportState(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.SupportType value) |
MatchTypeBuilder |
withKey(MatchTypeKey key) |
public MatchTypeBuilder()
public MatchTypeBuilder(Feature arg)
public MatchTypeBuilder(MatchType base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic MatchTypeKey key()
public String getMatch()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.SupportType getSupportState()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> E$$ augmentation(Class<E$$> augmentationType)
public MatchTypeBuilder withKey(MatchTypeKey key)
public MatchTypeBuilder setMatch(String value)
public MatchTypeBuilder setSupportState(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.SupportType value)
public MatchTypeBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MatchType> augmentationValue)
public MatchTypeBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchType>> augmentationType)
public MatchType build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MatchType,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.