Interface AlternativeInputs.Builder

  • Method Details

    • comparablesOptIn

      AlternativeInputs.Builder comparablesOptIn(String comparablesOptIn)

      The developer's explicit answer to whether comparable apps' public prices may be used. Required when comparables is sent. Absent otherwise: OPTED_OUT. Never inferred as OPTED_IN.

      Parameters:
      comparablesOptIn - The developer's explicit answer to whether comparable apps' public prices may be used. Required when comparables is sent. Absent otherwise: OPTED_OUT. Never inferred as OPTED_IN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • comparablesOptIn

      AlternativeInputs.Builder comparablesOptIn(ComparablesOptIn comparablesOptIn)

      The developer's explicit answer to whether comparable apps' public prices may be used. Required when comparables is sent. Absent otherwise: OPTED_OUT. Never inferred as OPTED_IN.

      Parameters:
      comparablesOptIn - The developer's explicit answer to whether comparable apps' public prices may be used. Required when comparables is sent. Absent otherwise: OPTED_OUT. Never inferred as OPTED_IN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • comparables

      AlternativeInputs.Builder comparables(Collection<Comparable> comparables)

      Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.

      Parameters:
      comparables - Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • comparables

      AlternativeInputs.Builder comparables(Comparable... comparables)

      Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.

      Parameters:
      comparables - Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • comparables

      Comparable apps, each read from its public pricing page, used only when comparablesOptIn is OPTED_IN. Each usable one becomes an alternative customers weigh against the app. At most 5 are used, best quality first; the rest, and any that cannot be used, are returned in alternatives.comparablesDropped with the reason. With OPTED_OUT they are still validated, but not used and not listed there. Absent: no comparables.

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

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

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

      AlternativeInputs.Builder outsideOptions(Collection<OutsideOption> outsideOptions)

      What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.

      Parameters:
      outsideOptions - What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outsideOptions

      AlternativeInputs.Builder outsideOptions(OutsideOption... outsideOptions)

      What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.

      Parameters:
      outsideOptions - What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • outsideOptions

      AlternativeInputs.Builder outsideOptions(Consumer<OutsideOption.Builder>... outsideOptions)

      What customers do today without any product, such as doing the task by hand. Each one is an alternative customers weigh against the app, at its monthlyCost. These are not products, so they need no comparablesOptIn. Absent: none.

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

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

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