Interface CreateMetricAttributionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateMetricAttributionRequest.Builder,
,CreateMetricAttributionRequest> PersonalizeRequest.Builder
,SdkBuilder<CreateMetricAttributionRequest.Builder,
,CreateMetricAttributionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateMetricAttributionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondatasetGroupArn
(String datasetGroupArn) The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.metrics
(Collection<MetricAttribute> metrics) A list of metric attributes for the metric attribution.metrics
(Consumer<MetricAttribute.Builder>... metrics) A list of metric attributes for the metric attribution.metrics
(MetricAttribute... metrics) A list of metric attributes for the metric attribution.metricsOutputConfig
(Consumer<MetricAttributionOutput.Builder> metricsOutputConfig) The output configuration details for the metric attribution.metricsOutputConfig
(MetricAttributionOutput metricsOutputConfig) The output configuration details for the metric attribution.A name for the metric attribution.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.personalize.model.PersonalizeRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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()
orSAMPLECOUNT()
. 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 areSUM()
orSAMPLECOUNT()
. 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
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()
orSAMPLECOUNT()
. 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 areSUM()
orSAMPLECOUNT()
. 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
A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are
This is a convenience method that creates an instance of theSUM()
orSAMPLECOUNT()
. For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).MetricAttribute.Builder
avoiding the need to create one manually viaMetricAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometrics(List<MetricAttribute>)
.- Parameters:
metrics
- a consumer that will call methods onMetricAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-
metricsOutputConfig
default CreateMetricAttributionRequest.Builder metricsOutputConfig(Consumer<MetricAttributionOutput.Builder> metricsOutputConfig) The output configuration details for the metric attribution.
This is a convenience method that creates an instance of theMetricAttributionOutput.Builder
avoiding the need to create one manually viaMetricAttributionOutput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricsOutputConfig(MetricAttributionOutput)
.- Parameters:
metricsOutputConfig
- a consumer that will call methods onMetricAttributionOutput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateMetricAttributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateMetricAttributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-