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