Interface ResourceMetricsConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceMetricsConfiguration.Builder,,ResourceMetricsConfiguration> SdkBuilder<ResourceMetricsConfiguration.Builder,,ResourceMetricsConfiguration> SdkPojo
- Enclosing class:
ResourceMetricsConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionThe date and time that the resource metrics configuration was created.metricSelections(Collection<ResourceMetricSelection> metricSelections) The metrics that Amazon CloudWatch collects for the resource.metricSelections(Consumer<ResourceMetricSelection.Builder>... metricSelections) The metrics that Amazon CloudWatch collects for the resource.metricSelections(ResourceMetricSelection... metricSelections) The metrics that Amazon CloudWatch collects for the resource.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to.The date and time that the resource metrics configuration was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceArn
The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the Amazon Web Services resource that this configuration applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The date and time that the resource metrics configuration was created.
- Parameters:
createdAt- The date and time that the resource metrics configuration was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same as
CreatedAt.- Parameters:
updatedAt- The date and time that the resource metrics configuration was last updated. When the configuration is first created, this value is the same asCreatedAt.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
ResourceMetricsConfiguration.Builder metricSelections(Collection<ResourceMetricSelection> metricSelections) The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.
- Parameters:
metricSelections- The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.
- Parameters:
metricSelections- The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
ResourceMetricsConfiguration.Builder metricSelections(Consumer<ResourceMetricSelection.Builder>... metricSelections) The metrics that Amazon CloudWatch collects for the resource. If this field is not present, Amazon CloudWatch collects all available detailed metrics for the resource.
This is a convenience method that creates an instance of theResourceMetricSelection.Builderavoiding the need to create one manually viaResourceMetricSelection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricSelections(List<ResourceMetricSelection>).- Parameters:
metricSelections- a consumer that will call methods onResourceMetricSelection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-