Package org.onosproject.net.pi.runtime
Class PiActionProfileGroup.Builder
- java.lang.Object
-
- org.onosproject.net.pi.runtime.PiActionProfileGroup.Builder
-
- Enclosing class:
- PiActionProfileGroup
public static final class PiActionProfileGroup.Builder extends Object
Builder of action profile groups.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiActionProfileGroup.BuilderaddMember(PiActionProfileGroup.WeightedMember member)Adds one member to this action profile.PiActionProfileGroup.BuilderaddMember(PiActionProfileMember memberInstance)Adds one member to this action profile group with default weight.PiActionProfileGroup.BuilderaddMember(PiActionProfileMemberId memberId)Adds one member to this action profile group with default weight.PiActionProfileGroup.BuilderaddMember(PiActionProfileMemberId memberId, int weight)Adds one member to this action profile group with the given weight.PiActionProfileGroup.BuilderaddMember(PiActionProfileMember memberInstance, int weight)Adds one member to this action profile group with the given weight.PiActionProfileGroup.BuilderaddMembers(Iterable<PiActionProfileMember> memberInstances)Adds all members to this action profile group with default weight.PiActionProfileGroupbuild()Creates a new action profile group.PiActionProfileGroup.BuilderwithActionProfileId(PiActionProfileId piActionProfileId)Sets the ID of the action profile.PiActionProfileGroup.BuilderwithId(PiActionProfileGroupId id)Sets the ID of this action profile group.PiActionProfileGroup.BuilderwithMaxSize(int maxSize)Sets the maximum number of members that this group can hold.
-
-
-
Method Detail
-
withId
public PiActionProfileGroup.Builder withId(PiActionProfileGroupId id)
Sets the ID of this action profile group.- Parameters:
id- action profile group ID- Returns:
- this
-
addMember
public PiActionProfileGroup.Builder addMember(PiActionProfileGroup.WeightedMember member)
Adds one member to this action profile.- Parameters:
member- member to add- Returns:
- this
-
addMember
public PiActionProfileGroup.Builder addMember(PiActionProfileMemberId memberId)
Adds one member to this action profile group with default weight.- Parameters:
memberId- ID of the action profile member to add- Returns:
- this
-
addMember
public PiActionProfileGroup.Builder addMember(PiActionProfileMember memberInstance)
Adds one member to this action profile group with default weight.- Parameters:
memberInstance- the action profile member instance to add- Returns:
- this
-
addMembers
public PiActionProfileGroup.Builder addMembers(Iterable<PiActionProfileMember> memberInstances)
Adds all members to this action profile group with default weight.- Parameters:
memberInstances- the action profile member instance to add- Returns:
- this
-
addMember
public PiActionProfileGroup.Builder addMember(PiActionProfileMemberId memberId, int weight)
Adds one member to this action profile group with the given weight.- Parameters:
memberId- ID of the action profile member to addweight- weight- Returns:
- this
-
addMember
public PiActionProfileGroup.Builder addMember(PiActionProfileMember memberInstance, int weight)
Adds one member to this action profile group with the given weight.- Parameters:
memberInstance- the action profile member instance to addweight- weight- Returns:
- this
-
withActionProfileId
public PiActionProfileGroup.Builder withActionProfileId(PiActionProfileId piActionProfileId)
Sets the ID of the action profile.- Parameters:
piActionProfileId- the ID of the action profile- Returns:
- this
-
withMaxSize
public PiActionProfileGroup.Builder withMaxSize(int maxSize)
Sets the maximum number of members that this group can hold.- Parameters:
maxSize- maximum number of members that this group can hold- Returns:
- this
-
build
public PiActionProfileGroup build()
Creates a new action profile group.- Returns:
- action profile group
-
-