Interface CreateMetricAttributionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateMetricAttributionRequest.Builder,CreateMetricAttributionRequest>,PersonalizeRequest.Builder,SdkBuilder<CreateMetricAttributionRequest.Builder,CreateMetricAttributionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateMetricAttributionRequest
public static interface CreateMetricAttributionRequest.Builder extends PersonalizeRequest.Builder, SdkPojo, CopyableBuilder<CreateMetricAttributionRequest.Builder,CreateMetricAttributionRequest>
-
-
Method Summary
-
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 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()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
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()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
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
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 to#metrics(List.) - 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:
#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.
-
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:
metricsOutputConfig(MetricAttributionOutput)
-
overrideConfiguration
CreateMetricAttributionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateMetricAttributionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-