public class LastReceivedErrorBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<LastReceivedError>
LastReceivedErrorBuilder 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:
LastReceivedErrorBuilder createTarget(int fooXyzzy, int barBaz) {
return new LastReceivedErrorBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of LastReceivedErrorBuilder, 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 methodLastReceivedErrorBuilder,
Builder| Constructor and Description |
|---|
LastReceivedErrorBuilder() |
LastReceivedErrorBuilder(Error arg) |
LastReceivedErrorBuilder(LastReceivedError base) |
| Modifier and Type | Method and Description |
|---|---|
LastReceivedErrorBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> |
augmentation(Class<E$$> augmentationType) |
LastReceivedError |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getErrorType() |
Short |
getErrorValue() |
LastReceivedErrorBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> augmentationType) |
LastReceivedErrorBuilder |
setErrorType(Short value) |
LastReceivedErrorBuilder |
setErrorValue(Short value) |
public LastReceivedErrorBuilder()
public LastReceivedErrorBuilder(Error arg)
public LastReceivedErrorBuilder(LastReceivedError base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getErrorType()
public Short getErrorValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> E$$ augmentation(Class<E$$> augmentationType)
public LastReceivedErrorBuilder setErrorType(Short value)
public LastReceivedErrorBuilder setErrorValue(Short value)
public LastReceivedErrorBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError> augmentationValue)
public LastReceivedErrorBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LastReceivedError>> augmentationType)
public LastReceivedError build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<LastReceivedError,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.