Class FeatureRolloutStrategy


  • @Generated(value="cd.connect.openapi.Jersey3ApiGenerator",
               date="2022-11-02T19:35:08.639013+13:00[Pacific/Auckland]")
    public class FeatureRolloutStrategy
    extends java.lang.Object
    This is the model for the rollout strategy as required by Dacha and Edge
    • Constructor Detail

      • FeatureRolloutStrategy

        public FeatureRolloutStrategy()
    • Method Detail

      • getId

        public java.lang.String getId()
        Get id
        Returns:
        id
      • setId

        public void setId​(@NotNull
                          @NotNull java.lang.String id)
      • 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)
      • 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)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object