Package io.featurehub.sse.model
Class BaseRolloutStrategy
- java.lang.Object
-
- io.featurehub.sse.model.BaseRolloutStrategy
-
@Generated(value="cd.connect.openapi.Jersey3ApiGenerator", date="2022-11-02T19:35:08.639013+13:00[Pacific/Auckland]") public class BaseRolloutStrategy extends java.lang.Objectif the feature in an environment is different from its default, this will be the reason for it. a rollout strategy is defined at the Application level and then applied to a specific feature value. When they are copied to the cache layer they are cloned and the feature value for that strategy is inserted into the clone and those are published.
-
-
Constructor Summary
Constructors Constructor Description BaseRolloutStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseRolloutStrategyaddAttributesItem(BaseRolloutStrategyAttribute attributesItem)BaseRolloutStrategyaddPercentageAttributesItem(java.lang.String percentageAttributesItem)BaseRolloutStrategyattributes(@Nullable java.util.List<BaseRolloutStrategyAttribute> attributes)BaseRolloutStrategycopy()booleanequals(java.lang.Object o)java.util.List<BaseRolloutStrategyAttribute>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()BaseRolloutStrategyid(@Nullable java.lang.String id)BaseRolloutStrategypercentage(@Nullable java.lang.Integer percentage)BaseRolloutStrategypercentageAttributes(@Nullable java.util.List<java.lang.String> percentageAttributes)voidsetAttributes(@Nullable java.util.List<BaseRolloutStrategyAttribute> attributes)voidsetId(@Nullable 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()BaseRolloutStrategyvalue(@Nullable java.lang.Object value)
-
-
-
Method Detail
-
id
public BaseRolloutStrategy id(@Nullable @Nullable java.lang.String id)
-
getId
public java.lang.String getId()
Get id- Returns:
- id
-
setId
public void setId(@Nullable @Nullable java.lang.String id)
-
percentage
public BaseRolloutStrategy 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 BaseRolloutStrategy percentageAttributes(@Nullable @Nullable java.util.List<java.lang.String> percentageAttributes)
-
addPercentageAttributesItem
public BaseRolloutStrategy 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 BaseRolloutStrategy 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 BaseRolloutStrategy attributes(@Nullable @Nullable java.util.List<BaseRolloutStrategyAttribute> attributes)
-
addAttributesItem
public BaseRolloutStrategy addAttributesItem(BaseRolloutStrategyAttribute attributesItem)
-
getAttributes
public java.util.List<BaseRolloutStrategyAttribute> getAttributes()
Get attributes- Returns:
- attributes
-
setAttributes
public void setAttributes(@Nullable @Nullable java.util.List<BaseRolloutStrategyAttribute> 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 BaseRolloutStrategy copy()
-
-