Interface BatchCreateRumMetricDefinitionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,
,BatchCreateRumMetricDefinitionsResponse> RumResponse.Builder
,SdkBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,
,BatchCreateRumMetricDefinitionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
BatchCreateRumMetricDefinitionsResponse
@Mutable
@NotThreadSafe
public static interface BatchCreateRumMetricDefinitionsResponse.Builder
extends RumResponse.Builder, SdkPojo, CopyableBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,BatchCreateRumMetricDefinitionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionAn array of error objects, if the operation caused any errors.An array of error objects, if the operation caused any errors.errors
(BatchCreateRumMetricDefinitionsError... errors) An array of error objects, if the operation caused any errors.metricDefinitions
(Collection<MetricDefinition> metricDefinitions) An array of structures that define the extended metrics.metricDefinitions
(Consumer<MetricDefinition.Builder>... metricDefinitions) An array of structures that define the extended metrics.metricDefinitions
(MetricDefinition... metricDefinitions) An array of structures that define the extended metrics.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rum.model.RumResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
errors
BatchCreateRumMetricDefinitionsResponse.Builder errors(Collection<BatchCreateRumMetricDefinitionsError> errors) An array of error objects, if the operation caused any errors.
- Parameters:
errors
- An array of error objects, if the operation caused any errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateRumMetricDefinitionsResponse.Builder errors(BatchCreateRumMetricDefinitionsError... errors) An array of error objects, if the operation caused any errors.
- Parameters:
errors
- An array of error objects, if the operation caused any errors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
BatchCreateRumMetricDefinitionsResponse.Builder errors(Consumer<BatchCreateRumMetricDefinitionsError.Builder>... errors) An array of error objects, if the operation caused any errors.
This is a convenience method that creates an instance of theBatchCreateRumMetricDefinitionsError.Builder
avoiding the need to create one manually viaBatchCreateRumMetricDefinitionsError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<BatchCreateRumMetricDefinitionsError>)
.- Parameters:
errors
- a consumer that will call methods onBatchCreateRumMetricDefinitionsError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricDefinitions
BatchCreateRumMetricDefinitionsResponse.Builder metricDefinitions(Collection<MetricDefinition> metricDefinitions) An array of structures that define the extended metrics.
- Parameters:
metricDefinitions
- An array of structures that define the extended metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinitions
BatchCreateRumMetricDefinitionsResponse.Builder metricDefinitions(MetricDefinition... metricDefinitions) An array of structures that define the extended metrics.
- Parameters:
metricDefinitions
- An array of structures that define the extended metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDefinitions
BatchCreateRumMetricDefinitionsResponse.Builder metricDefinitions(Consumer<MetricDefinition.Builder>... metricDefinitions) An array of structures that define the extended metrics.
This is a convenience method that creates an instance of theMetricDefinition.Builder
avoiding the need to create one manually viaMetricDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDefinitions(List<MetricDefinition>)
.- Parameters:
metricDefinitions
- a consumer that will call methods onMetricDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-