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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.personalize.model.PersonalizeRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaMetricAttribute.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaMetricAttributionOutput.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-