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