Interface CreateMetricAttributionRequest.Builder

    • Method Detail

      • name

        CreateMetricAttributionRequest.Builder name​(String name)

        A name for the metric attribution.

        Parameters:
        name - A name for the metric attribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • datasetGroupArn

        CreateMetricAttributionRequest.Builder datasetGroupArn​(String datasetGroupArn)

        The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.

        Parameters:
        datasetGroupArn - The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        CreateMetricAttributionRequest.Builder metrics​(Collection<MetricAttribute> metrics)

        A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

        Parameters:
        metrics - A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        CreateMetricAttributionRequest.Builder metrics​(MetricAttribute... metrics)

        A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

        Parameters:
        metrics - A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metrics

        CreateMetricAttributionRequest.Builder metrics​(Consumer<MetricAttribute.Builder>... metrics)

        A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #metrics(List).

        Parameters:
        metrics - a consumer that will call methods on MetricAttribute.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #metrics(java.util.Collection)
      • metricsOutputConfig

        CreateMetricAttributionRequest.Builder metricsOutputConfig​(MetricAttributionOutput metricsOutputConfig)

        The output configuration details for the metric attribution.

        Parameters:
        metricsOutputConfig - The output configuration details for the metric attribution.
        Returns:
        Returns a reference to this object so that method calls can be chained together.