Interface BatchCreateRumMetricDefinitionsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,BatchCreateRumMetricDefinitionsResponse>,RumResponse.Builder,SdkBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,BatchCreateRumMetricDefinitionsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchCreateRumMetricDefinitionsResponse
public static interface BatchCreateRumMetricDefinitionsResponse.Builder extends RumResponse.Builder, SdkPojo, CopyableBuilder<BatchCreateRumMetricDefinitionsResponse.Builder,BatchCreateRumMetricDefinitionsResponse>
-
-
Method Summary
-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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.Builderavoiding the need to create one manually viaBatchCreateRumMetricDefinitionsError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#errors(List.) - 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:
#errors(java.util.Collection)
-
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.Builderavoiding the need to create one manually viaMetricDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricDefinitions(List.) - 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:
#metricDefinitions(java.util.Collection)
-
-