Interface ExperimentRunEvent.Builder

  • Method Details

    • description

      ExperimentRunEvent.Builder description(String description)

      A description of the event.

      Parameters:
      description - A description of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedDeployment

      ExperimentRunEvent.Builder associatedDeployment(String associatedDeployment)

      The Amazon Resource Name (ARN) of the deployment associated with this event.

      Parameters:
      associatedDeployment - The Amazon Resource Name (ARN) of the deployment associated with this event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventType

      ExperimentRunEvent.Builder eventType(String eventType)

      The type of event. Valid values: RUN_STARTED, EXPOSURE_UPDATED, OVERRIDES_UPDATED, RUN_STOPPED.

      Parameters:
      eventType - The type of event. Valid values: RUN_STARTED, EXPOSURE_UPDATED, OVERRIDES_UPDATED, RUN_STOPPED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventType

      The type of event. Valid values: RUN_STARTED, EXPOSURE_UPDATED, OVERRIDES_UPDATED, RUN_STOPPED.

      Parameters:
      eventType - The type of event. Valid values: RUN_STARTED, EXPOSURE_UPDATED, OVERRIDES_UPDATED, RUN_STOPPED.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • occurredAt

      ExperimentRunEvent.Builder occurredAt(Instant occurredAt)

      The date and time the event occurred, in ISO 8601 format.

      Parameters:
      occurredAt - The date and time the event occurred, in ISO 8601 format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • triggeredBy

      ExperimentRunEvent.Builder triggeredBy(String triggeredBy)

      The principal that triggered the event.

      Parameters:
      triggeredBy - The principal that triggered the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • triggeredBy

      ExperimentRunEvent.Builder triggeredBy(TriggeredBy triggeredBy)

      The principal that triggered the event.

      Parameters:
      triggeredBy - The principal that triggered the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exposurePercentage

      ExperimentRunEvent.Builder exposurePercentage(Float exposurePercentage)

      The exposure percentage at the time of the event.

      Parameters:
      exposurePercentage - The exposure percentage at the time of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • treatmentOverrides

      ExperimentRunEvent.Builder treatmentOverrides(TreatmentOverrides treatmentOverrides)

      The treatment overrides at the time of the event.

      Parameters:
      treatmentOverrides - The treatment overrides at the time of the event.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • treatmentOverrides

      default ExperimentRunEvent.Builder treatmentOverrides(Consumer<TreatmentOverrides.Builder> treatmentOverrides)

      The treatment overrides at the time of the event.

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

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

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