Class GroupEntityBuilder
- java.lang.Object
-
- org.opendaylight.genius.mdsalutil.GroupEntity.Builder
-
- org.opendaylight.genius.mdsalutil.GroupEntityBuilder
-
- All Implemented Interfaces:
org.opendaylight.yangtools.concepts.Builder<GroupEntity>,org.opendaylight.yangtools.concepts.CheckedBuilder<GroupEntity,java.lang.IllegalArgumentException>,org.opendaylight.yangtools.concepts.Mutable,org.opendaylight.yangtools.concepts.MutationBehaviour<org.opendaylight.yangtools.concepts.Mutable>
@Generated("org.immutables.processor.ProxyProcessor") public final class GroupEntityBuilder extends GroupEntity.BuilderBuilds instances of typeGroupEntity. Initialize attributes and then invoke thebuild()method to create an immutable instance.GroupEntityBuilderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Constructor Summary
Constructors Constructor Description GroupEntityBuilder()Creates a builder forGroupEntityinstances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupEntityBuilderaddAllBucketInfoList(java.lang.Iterable<? extends BucketInfo> elements)Adds elements tobucketInfoListlist.GroupEntityBuilderaddBucketInfoList(BucketInfo element)Adds one element tobucketInfoListlist.GroupEntityBuilderaddBucketInfoList(BucketInfo... elements)Adds elements tobucketInfoListlist.GroupEntitybuild()Builds a newGroupEntity.GroupEntityBuilderfrom(AbstractSwitchEntity instance)Fill a builder with attribute values from the providedorg.opendaylight.genius.mdsalutil.AbstractSwitchEntityinstance.GroupEntityBuilderfrom(GroupEntity instance)Fill a builder with attribute values from the providedorg.opendaylight.genius.mdsalutil.GroupEntityinstance.GroupEntityBuildersetBucketInfoList(java.lang.Iterable<? extends BucketInfo> elements)Sets or replaces all elements forbucketInfoListlist.GroupEntityBuildersetDpnId(org.opendaylight.yangtools.yang.common.Uint64 dpnId)Initializes the value for thedpnIdattribute.GroupEntityBuildersetGroupId(long groupId)Initializes the value for thegroupIdattribute.GroupEntityBuildersetGroupName(java.lang.String groupName)Initializes the value for thegroupNameattribute.GroupEntityBuildersetGroupType(org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType)Initializes the value for thegroupTypeattribute.
-
-
-
Constructor Detail
-
GroupEntityBuilder
public GroupEntityBuilder()
Creates a builder forGroupEntityinstances.new GroupEntityBuilder() .setDpnId(org.opendaylight.yangtools.yang.common.Uint64) // requireddpnId.addBucketInfoList|addAllBucketInfoList(org.opendaylight.genius.mdsalutil.BucketInfo) //bucketInfoListelements .setGroupId(long) // requiredgroupId.setGroupName(String) // requiredgroupName.setGroupType(org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes) // requiredgroupType.build();
-
-
Method Detail
-
from
@CanIgnoreReturnValue public final GroupEntityBuilder from(AbstractSwitchEntity instance)
Fill a builder with attribute values from the providedorg.opendaylight.genius.mdsalutil.AbstractSwitchEntityinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
@CanIgnoreReturnValue public final GroupEntityBuilder from(GroupEntity instance)
Fill a builder with attribute values from the providedorg.opendaylight.genius.mdsalutil.GroupEntityinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setDpnId
@CanIgnoreReturnValue public final GroupEntityBuilder setDpnId(org.opendaylight.yangtools.yang.common.Uint64 dpnId)
Initializes the value for thedpnIdattribute.- Parameters:
dpnId- The value for dpnId- Returns:
thisbuilder for use in a chained invocation
-
addBucketInfoList
@CanIgnoreReturnValue public final GroupEntityBuilder addBucketInfoList(BucketInfo element)
Adds one element tobucketInfoListlist.- Parameters:
element- A bucketInfoList element- Returns:
thisbuilder for use in a chained invocation
-
addBucketInfoList
@CanIgnoreReturnValue public final GroupEntityBuilder addBucketInfoList(BucketInfo... elements)
Adds elements tobucketInfoListlist.- Parameters:
elements- An array of bucketInfoList elements- Returns:
thisbuilder for use in a chained invocation
-
setBucketInfoList
@CanIgnoreReturnValue public final GroupEntityBuilder setBucketInfoList(java.lang.Iterable<? extends BucketInfo> elements)
Sets or replaces all elements forbucketInfoListlist.- Parameters:
elements- An iterable of bucketInfoList elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBucketInfoList
@CanIgnoreReturnValue public final GroupEntityBuilder addAllBucketInfoList(java.lang.Iterable<? extends BucketInfo> elements)
Adds elements tobucketInfoListlist.- Parameters:
elements- An iterable of bucketInfoList elements- Returns:
thisbuilder for use in a chained invocation
-
setGroupId
@CanIgnoreReturnValue public final GroupEntityBuilder setGroupId(long groupId)
Initializes the value for thegroupIdattribute.- Parameters:
groupId- The value for groupId- Returns:
thisbuilder for use in a chained invocation
-
setGroupName
@CanIgnoreReturnValue public final GroupEntityBuilder setGroupName(java.lang.String groupName)
Initializes the value for thegroupNameattribute.- Parameters:
groupName- The value for groupName- Returns:
thisbuilder for use in a chained invocation
-
setGroupType
@CanIgnoreReturnValue public final GroupEntityBuilder setGroupType(org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes groupType)
Initializes the value for thegroupTypeattribute.- Parameters:
groupType- The value for groupType- Returns:
thisbuilder for use in a chained invocation
-
build
public GroupEntity build()
Builds a newGroupEntity.- Returns:
- An immutable instance of GroupEntity
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-