Package io.featurehub.sse.model
Class FeatureRolloutStrategy
- java.lang.Object
-
- io.featurehub.sse.model.FeatureRolloutStrategy
-
@Generated(value="cd.connect.openapi.Jersey3ApiGenerator", date="2022-07-09T19:32:48.407018+12:00[Pacific/Auckland]") public class FeatureRolloutStrategy extends java.lang.ObjectThis is the model for the rollout strategy as required by Dacha and Edge
-
-
Constructor Summary
Constructors Constructor Description FeatureRolloutStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeatureRolloutStrategyaddAttributesItem(FeatureRolloutStrategyAttribute attributesItem)FeatureRolloutStrategyaddPercentageAttributesItem(java.lang.String percentageAttributesItem)FeatureRolloutStrategyattributes(@NotNull java.util.List<FeatureRolloutStrategyAttribute> attributes)FeatureRolloutStrategycopy()booleanequals(java.lang.Object o)java.util.List<FeatureRolloutStrategyAttribute>getAttributes()Get attributesjava.lang.StringgetId()Get idjava.lang.IntegergetPercentage()value between 0 and 1000000 - for four decimal placesjava.util.List<java.lang.String>getPercentageAttributes()if you don't wish to apply percentage based on user id, you can use one or more attributes defined herejava.lang.ObjectgetValue()when we attach the RolloutStrategy for Dacha or SSE this lets us push the value out.inthashCode()FeatureRolloutStrategyid(@NotNull java.lang.String id)FeatureRolloutStrategypercentage(@Nullable java.lang.Integer percentage)FeatureRolloutStrategypercentageAttributes(@Nullable java.util.List<java.lang.String> percentageAttributes)voidsetAttributes(@NotNull java.util.List<FeatureRolloutStrategyAttribute> attributes)voidsetId(@NotNull java.lang.String id)voidsetPercentage(@Nullable java.lang.Integer percentage)voidsetPercentageAttributes(@Nullable java.util.List<java.lang.String> percentageAttributes)voidsetValue(@Nullable java.lang.Object value)java.lang.StringtoString()FeatureRolloutStrategyvalue(@Nullable java.lang.Object value)
-
-
-
Method Detail
-
id
public FeatureRolloutStrategy id(@NotNull @NotNull java.lang.String id)
-
getId
public java.lang.String getId()
Get id- Returns:
- id
-
setId
public void setId(@NotNull @NotNull java.lang.String id)
-
percentage
public FeatureRolloutStrategy percentage(@Nullable @Nullable java.lang.Integer percentage)
-
getPercentage
public java.lang.Integer getPercentage()
value between 0 and 1000000 - for four decimal places- Returns:
- percentage
-
setPercentage
public void setPercentage(@Nullable @Nullable java.lang.Integer percentage)
-
percentageAttributes
public FeatureRolloutStrategy percentageAttributes(@Nullable @Nullable java.util.List<java.lang.String> percentageAttributes)
-
addPercentageAttributesItem
public FeatureRolloutStrategy addPercentageAttributesItem(java.lang.String percentageAttributesItem)
-
getPercentageAttributes
public java.util.List<java.lang.String> getPercentageAttributes()
if you don't wish to apply percentage based on user id, you can use one or more attributes defined here- Returns:
- percentageAttributes
-
setPercentageAttributes
public void setPercentageAttributes(@Nullable @Nullable java.util.List<java.lang.String> percentageAttributes)
-
value
public FeatureRolloutStrategy value(@Nullable @Nullable java.lang.Object value)
-
getValue
public java.lang.Object getValue()
when we attach the RolloutStrategy for Dacha or SSE this lets us push the value out. Only visible in SDK and SSE Edge.- Returns:
- value
-
setValue
public void setValue(@Nullable @Nullable java.lang.Object value)
-
attributes
public FeatureRolloutStrategy attributes(@NotNull @NotNull java.util.List<FeatureRolloutStrategyAttribute> attributes)
-
addAttributesItem
public FeatureRolloutStrategy addAttributesItem(FeatureRolloutStrategyAttribute attributesItem)
-
getAttributes
public java.util.List<FeatureRolloutStrategyAttribute> getAttributes()
Get attributes- Returns:
- attributes
-
setAttributes
public void setAttributes(@NotNull @NotNull java.util.List<FeatureRolloutStrategyAttribute> attributes)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
copy
public FeatureRolloutStrategy copy()
-
-