Interface FlowModule.Builder

  • Method Details

    • name

      The module's name, unique within the flow.

      Parameters:
      name - The module's name, unique within the flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • moduleVersionArn

      FlowModule.Builder moduleVersionArn(String moduleVersionArn)

      The version to attach. It must be ACTIVE and available to you (see ListAvailableModuleVersions). You can keep a version that's already in the link's flows after it's deprecated, but you can't give it a higher share of traffic.

      Parameters:
      moduleVersionArn - The version to attach. It must be ACTIVE and available to you (see ListAvailableModuleVersions). You can keep a version that's already in the link's flows after it's deprecated, but you can't give it a higher share of traffic.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectedActionsWithStrings

      FlowModule.Builder selectedActionsWithStrings(Collection<String> selectedActions)

      The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.

      Parameters:
      selectedActions - The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectedActionsWithStrings

      FlowModule.Builder selectedActionsWithStrings(String... selectedActions)

      The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.

      Parameters:
      selectedActions - The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectedActions

      FlowModule.Builder selectedActions(Collection<ConfigurableAction> selectedActions)

      The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.

      Parameters:
      selectedActions - The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • selectedActions

      FlowModule.Builder selectedActions(ConfigurableAction... selectedActions)

      The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.

      Parameters:
      selectedActions - The capabilities to turn on, chosen from the version's configurableActions. If the version exposes one, it's the default. If the version exposes more than one, this field is required. If it exposes none, omit this field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureMode

      FlowModule.Builder failureMode(String failureMode)

      Specifies what happens when the module fails – when its call fails or times out, or when an express module's dataset is stale. The default is OPEN.

      Parameters:
      failureMode - Specifies what happens when the module fails – when its call fails or times out, or when an express module's dataset is stale. The default is OPEN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • failureMode

      FlowModule.Builder failureMode(FailureMode failureMode)

      Specifies what happens when the module fails – when its call fails or times out, or when an express module's dataset is stale. The default is OPEN.

      Parameters:
      failureMode - Specifies what happens when the module fails – when its call fails or times out, or when an express module's dataset is stale. The default is OPEN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • activationPercentage

      FlowModule.Builder activationPercentage(Float activationPercentage)

      The percentage of the flow's requests that the module runs on. The flow skips the module on the rest of the requests. The default is 100.

      Parameters:
      activationPercentage - The percentage of the flow's requests that the module runs on. The flow skips the module on the rest of the requests. The default is 100.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • configurationValues

      FlowModule.Builder configurationValues(String configurationValues)

      RTB Fabric validates the value against the version's configurationSchema and rejects a value that fails with ValidationException. Omit it when the schema is empty or fully defaulted.

      Parameters:
      configurationValues - RTB Fabric validates the value against the version's configurationSchema and rejects a value that fails with ValidationException. Omit it when the schema is empty or fully defaulted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.