public class PcepSessionStateBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PcepSessionState>
PcepSessionStateBuilder 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:
PcepSessionStateBuilder createTarget(int fooXyzzy, int barBaz) {
return new PcepSessionStateBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PcepSessionStateBuilder, 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 methodPcepSessionStateBuilder,
Builder| Constructor and Description |
|---|
PcepSessionStateBuilder() |
PcepSessionStateBuilder(PcepSessionState arg) |
PcepSessionStateBuilder(PcepSessionState base) |
public PcepSessionStateBuilder()
public PcepSessionStateBuilder(PcepSessionState arg)
public PcepSessionStateBuilder(PcepSessionState base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Integer getDelegatedLspsCount()
public LocalPref getLocalPref()
public Messages getMessages()
public PeerCapabilities getPeerCapabilities()
public PeerPref getPeerPref()
public String getSessionDuration()
public Boolean isSynchronized()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PcepSessionState>> E$$ augmentation(Class<E$$> augmentationType)
public PcepSessionStateBuilder setDelegatedLspsCount(Integer value)
public PcepSessionStateBuilder setLocalPref(LocalPref value)
public PcepSessionStateBuilder setMessages(Messages value)
public PcepSessionStateBuilder setPeerCapabilities(PeerCapabilities value)
public PcepSessionStateBuilder setPeerPref(PeerPref value)
public PcepSessionStateBuilder setSessionDuration(String value)
public PcepSessionStateBuilder setSynchronized(Boolean value)
public PcepSessionStateBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcepSessionState>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PcepSessionState> augmentationValue)
public PcepSessionStateBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PcepSessionState>> augmentationType)
public PcepSessionState build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PcepSessionState,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.