Interface ExperimentAction.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ExperimentAction.Builder,ExperimentAction>, SdkBuilder<ExperimentAction.Builder,ExperimentAction>, SdkPojo
Enclosing class:
ExperimentAction

public static interface ExperimentAction.Builder extends SdkPojo, CopyableBuilder<ExperimentAction.Builder,ExperimentAction>
  • Method Details

    • actionId

      ExperimentAction.Builder actionId(String actionId)

      The ID of the action.

      Parameters:
      actionId - The ID of the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      ExperimentAction.Builder description(String description)

      The description for the action.

      Parameters:
      description - The description for the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      ExperimentAction.Builder parameters(Map<String,String> parameters)

      The parameters for the action.

      Parameters:
      parameters - The parameters for the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targets

      The targets for the action.

      Parameters:
      targets - The targets for the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startAfter

      ExperimentAction.Builder startAfter(Collection<String> startAfter)

      The name of the action that must be completed before this action starts.

      Parameters:
      startAfter - The name of the action that must be completed before this action starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startAfter

      ExperimentAction.Builder startAfter(String... startAfter)

      The name of the action that must be completed before this action starts.

      Parameters:
      startAfter - The name of the action that must be completed before this action starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of the action.

      Parameters:
      state - The state of the action.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The state of the action.

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

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

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

      ExperimentAction.Builder startTime(Instant startTime)

      The time that the action started.

      Parameters:
      startTime - The time that the action started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      The time that the action ended.

      Parameters:
      endTime - The time that the action ended.
      Returns:
      Returns a reference to this object so that method calls can be chained together.