GroupAllocation Class
- java.
lang. Object - com.
azure. spring. cloud. feature. management. models. GroupAllocation
- com.
public class GroupAllocation
Group allocation of a variant for feature flag targeting. This class defines how specific user groups are assigned to a particular variant of a feature. It contains a reference to a variant name and a list of group identifiers that should receive this variant when the feature flag is evaluated.
Constructor Summary
| Constructor | Description |
|---|---|
| GroupAllocation() |
Creates a new instance of the Group |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
getGroups()
Gets the list of group identifiers that should receive this variant. |
| String |
getVariant()
Gets the name of the variant that is assigned to the specified groups. |
|
Group |
setGroups(List<String> groups)
Sets the list of group identifiers that should receive this variant. |
|
Group |
setVariant(String variant)
Sets the name of the variant that should be assigned to the specified groups. |
Methods inherited from java.lang.Object
Constructor Details
GroupAllocation
public GroupAllocation()
Creates a new instance of the GroupAllocation class.
Method Details
getGroups
public List<String> getGroups()
Gets the list of group identifiers that should receive this variant. When a user belongs to any of these groups, they will be assigned this variant during feature flag evaluation.
Returns:
getVariant
public String getVariant()
Gets the name of the variant that is assigned to the specified groups.
Returns:
setGroups
public GroupAllocation setGroups(List<String> groups)
Sets the list of group identifiers that should receive this variant. When a user belongs to any of these groups, they will be assigned this variant during feature flag evaluation.
Parameters:
Returns:
setVariant
public GroupAllocation setVariant(String variant)
Sets the name of the variant that should be assigned to the specified groups. This should match a valid variant name defined in the feature flag configuration.
Parameters:
Returns: