@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","GroupEntity"}) @NotThreadSafe public final class GroupEntityBuilder extends GroupEntity.Builder
GroupEntity.
Initialize attributes and then invoke the build() method to create an
immutable instance.
GroupEntityBuilder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Constructor and Description |
|---|
GroupEntityBuilder()
Creates a builder for
GroupEntity instances. |
| Modifier and Type | Method and Description |
|---|---|
GroupEntityBuilder |
addAllBucketInfoList(Iterable<? extends BucketInfo> elements)
Adds elements to
bucketInfoList list. |
GroupEntityBuilder |
addBucketInfoList(BucketInfo... elements)
Adds elements to
bucketInfoList list. |
GroupEntityBuilder |
addBucketInfoList(BucketInfo element)
Adds one element to
bucketInfoList list. |
GroupEntity |
build()
Builds a new
GroupEntity. |
GroupEntityBuilder |
from(AbstractSwitchEntity instance)
Fill a builder with attribute values from the provided
org.opendaylight.genius.mdsalutil.AbstractSwitchEntity instance. |
GroupEntityBuilder |
from(GroupEntity instance)
Fill a builder with attribute values from the provided
org.opendaylight.genius.mdsalutil.GroupEntity instance. |
GroupEntityBuilder |
setBucketInfoList(Iterable<? extends BucketInfo> elements)
Sets or replaces all elements for
bucketInfoList list. |
GroupEntityBuilder |
setDpnId(BigInteger dpnId)
Initializes the value for the
dpnId attribute. |
GroupEntityBuilder |
setGroupId(long groupId)
Initializes the value for the
groupId attribute. |
GroupEntityBuilder |
setGroupName(String groupName)
Initializes the value for the
groupName attribute. |
GroupEntityBuilder |
setGroupType(org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType)
Initializes the value for the
groupType attribute. |
public GroupEntityBuilder()
GroupEntity instances.@CanIgnoreReturnValue public final GroupEntityBuilder from(AbstractSwitchEntity instance)
org.opendaylight.genius.mdsalutil.AbstractSwitchEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder from(GroupEntity instance)
org.opendaylight.genius.mdsalutil.GroupEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder addBucketInfoList(BucketInfo element)
bucketInfoList list.element - A bucketInfoList elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder addBucketInfoList(BucketInfo... elements)
bucketInfoList list.elements - An array of bucketInfoList elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder setBucketInfoList(Iterable<? extends BucketInfo> elements)
bucketInfoList list.elements - An iterable of bucketInfoList elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder addAllBucketInfoList(Iterable<? extends BucketInfo> elements)
bucketInfoList list.elements - An iterable of bucketInfoList elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder setGroupId(long groupId)
groupId attribute.groupId - The value for groupIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder setGroupName(String groupName)
groupName attribute.groupName - The value for groupNamethis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder setGroupType(org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType)
groupType attribute.groupType - The value for groupTypethis builder for use in a chained invocation@CanIgnoreReturnValue public final GroupEntityBuilder setDpnId(BigInteger dpnId)
dpnId attribute.dpnId - The value for dpnIdthis builder for use in a chained invocationpublic GroupEntity build()
GroupEntity.IllegalStateException - if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.