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