Interface UpdateFeatureRequest.Builder

    • Method Detail

      • addOrUpdateVariations

        UpdateFeatureRequest.Builder addOrUpdateVariations​(Collection<VariationConfig> addOrUpdateVariations)

        To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

        Parameters:
        addOrUpdateVariations - To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • addOrUpdateVariations

        UpdateFeatureRequest.Builder addOrUpdateVariations​(VariationConfig... addOrUpdateVariations)

        To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

        Parameters:
        addOrUpdateVariations - To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • addOrUpdateVariations

        UpdateFeatureRequest.Builder addOrUpdateVariations​(Consumer<VariationConfig.Builder>... addOrUpdateVariations)

        To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.

        This is a convenience method that creates an instance of the VariationConfig.Builder avoiding the need to create one manually via VariationConfig.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #addOrUpdateVariations(List).

        Parameters:
        addOrUpdateVariations - a consumer that will call methods on VariationConfig.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #addOrUpdateVariations(java.util.Collection)
      • defaultVariation

        UpdateFeatureRequest.Builder defaultVariation​(String defaultVariation)

        The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.

        Parameters:
        defaultVariation - The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        UpdateFeatureRequest.Builder description​(String description)

        An optional description of the feature.

        Parameters:
        description - An optional description of the feature.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entityOverrides

        UpdateFeatureRequest.Builder entityOverrides​(Map<String,​String> entityOverrides)

        Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.

        This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.

        Parameters:
        entityOverrides - Specified users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.

        This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • evaluationStrategy

        UpdateFeatureRequest.Builder evaluationStrategy​(String evaluationStrategy)

        Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.

        Parameters:
        evaluationStrategy - Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FeatureEvaluationStrategy, FeatureEvaluationStrategy
      • evaluationStrategy

        UpdateFeatureRequest.Builder evaluationStrategy​(FeatureEvaluationStrategy evaluationStrategy)

        Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.

        Parameters:
        evaluationStrategy - Specify ALL_RULES to activate the traffic allocation specified by any ongoing launches or experiments. Specify DEFAULT_VARIATION to serve the default variation to all users instead.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        FeatureEvaluationStrategy, FeatureEvaluationStrategy
      • feature

        UpdateFeatureRequest.Builder feature​(String feature)

        The name of the feature to be updated.

        Parameters:
        feature - The name of the feature to be updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • project

        UpdateFeatureRequest.Builder project​(String project)

        The name or ARN of the project that contains the feature to be updated.

        Parameters:
        project - The name or ARN of the project that contains the feature to be updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • removeVariations

        UpdateFeatureRequest.Builder removeVariations​(Collection<String> removeVariations)

        Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

        This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

        Parameters:
        removeVariations - Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

        This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • removeVariations

        UpdateFeatureRequest.Builder removeVariations​(String... removeVariations)

        Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

        This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

        Parameters:
        removeVariations - Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.

        This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.

        Returns:
        Returns a reference to this object so that method calls can be chained together.