Interface UpdateMetricAttributionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateMetricAttributionRequest.Builder,,UpdateMetricAttributionRequest> PersonalizeRequest.Builder,SdkBuilder<UpdateMetricAttributionRequest.Builder,,UpdateMetricAttributionRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateMetricAttributionRequest
public static interface UpdateMetricAttributionRequest.Builder
extends PersonalizeRequest.Builder, SdkPojo, CopyableBuilder<UpdateMetricAttributionRequest.Builder,UpdateMetricAttributionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionaddMetrics(Collection<MetricAttribute> addMetrics) Add new metric attributes to the metric attribution.addMetrics(Consumer<MetricAttribute.Builder>... addMetrics) Add new metric attributes to the metric attribution.addMetrics(MetricAttribute... addMetrics) Add new metric attributes to the metric attribution.metricAttributionArn(String metricAttributionArn) The Amazon Resource Name (ARN) for the metric attribution to update.metricsOutputConfig(Consumer<MetricAttributionOutput.Builder> metricsOutputConfig) An output config for the metric attribution.metricsOutputConfig(MetricAttributionOutput metricsOutputConfig) An output config for the metric attribution.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.removeMetrics(String... removeMetrics) Remove metric attributes from the metric attribution.removeMetrics(Collection<String> removeMetrics) Remove metric attributes from the metric attribution.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
-
addMetrics
Add new metric attributes to the metric attribution.
- Parameters:
addMetrics- Add new metric attributes to the metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addMetrics
Add new metric attributes to the metric attribution.
- Parameters:
addMetrics- Add new metric attributes to the metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addMetrics
Add new metric attributes to the metric attribution.
This is a convenience method that creates an instance of theMetricAttribute.Builderavoiding the need to create one manually viaMetricAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddMetrics(List<MetricAttribute>).- Parameters:
addMetrics- 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:
-
removeMetrics
Remove metric attributes from the metric attribution.
- Parameters:
removeMetrics- Remove metric attributes from the metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeMetrics
Remove metric attributes from the metric attribution.
- Parameters:
removeMetrics- Remove metric attributes from the metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsOutputConfig
UpdateMetricAttributionRequest.Builder metricsOutputConfig(MetricAttributionOutput metricsOutputConfig) An output config for the metric attribution.
- Parameters:
metricsOutputConfig- An output config for the metric attribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricsOutputConfig
default UpdateMetricAttributionRequest.Builder metricsOutputConfig(Consumer<MetricAttributionOutput.Builder> metricsOutputConfig) An output config 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:
-
metricAttributionArn
The Amazon Resource Name (ARN) for the metric attribution to update.
- Parameters:
metricAttributionArn- The Amazon Resource Name (ARN) for the metric attribution to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateMetricAttributionRequest.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
UpdateMetricAttributionRequest.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.
-