Interface ExperimentDefinitionSnapshot.Builder

  • Method Details

    • applicationId

      ExperimentDefinitionSnapshot.Builder applicationId(String applicationId)

      The application ID at the time the run was started.

      Parameters:
      applicationId - The application ID at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The experiment definition ID.

      Parameters:
      id - The experiment definition ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the experiment definition at the time the run was started.

      Parameters:
      name - The name of the experiment definition at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hypothesis

      The hypothesis at the time the run was started.

      Parameters:
      hypothesis - The hypothesis at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationProfileId

      ExperimentDefinitionSnapshot.Builder configurationProfileId(String configurationProfileId)

      The configuration profile ID at the time the run was started.

      Parameters:
      configurationProfileId - The configuration profile ID at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentId

      ExperimentDefinitionSnapshot.Builder environmentId(String environmentId)

      The environment ID at the time the run was started.

      Parameters:
      environmentId - The environment ID at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • flagKey

      The feature flag key at the time the run was started.

      Parameters:
      flagKey - The feature flag key at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audienceRule

      ExperimentDefinitionSnapshot.Builder audienceRule(String audienceRule)

      The audience rule at the time the run was started.

      Parameters:
      audienceRule - The audience rule at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audienceDescription

      ExperimentDefinitionSnapshot.Builder audienceDescription(String audienceDescription)

      The audience description at the time the run was started.

      Parameters:
      audienceDescription - The audience description at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • launchCriteria

      ExperimentDefinitionSnapshot.Builder launchCriteria(String launchCriteria)

      The launch criteria at the time the run was started.

      Parameters:
      launchCriteria - The launch criteria at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • treatments

      The treatments at the time the run was started.

      Parameters:
      treatments - The treatments at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • treatments

      The treatments at the time the run was started.

      Parameters:
      treatments - The treatments at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • treatments

      The treatments at the time the run was started.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to treatments(List<Treatment>).

      Parameters:
      treatments - a consumer that will call methods on Treatment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • control

      The control treatment at the time the run was started.

      Parameters:
      control - The control treatment at the time the run was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • control

      The control treatment at the time the run was started.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to control(Treatment).

      Parameters:
      control - a consumer that will call methods on Treatment.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: