Interface GetCapacityManagerMetricDataRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetCapacityManagerMetricDataRequest.Builder,
,GetCapacityManagerMetricDataRequest> Ec2Request.Builder
,SdkBuilder<GetCapacityManagerMetricDataRequest.Builder,
,GetCapacityManagerMetricDataRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetCapacityManagerMetricDataRequest
-
Method Summary
Modifier and TypeMethodDescriptionChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.The end time for the metric data query, in ISO 8601 format.filterBy
(Collection<CapacityManagerCondition> filterBy) Conditions to filter the metric data.filterBy
(Consumer<CapacityManagerCondition.Builder>... filterBy) Conditions to filter the metric data.filterBy
(CapacityManagerCondition... filterBy) Conditions to filter the metric data.groupBy
(Collection<GroupBy> groupBy) The dimensions by which to group the metric data.The dimensions by which to group the metric data.groupByWithStrings
(String... groupBy) The dimensions by which to group the metric data.groupByWithStrings
(Collection<String> groupBy) The dimensions by which to group the metric data.maxResults
(Integer maxResults) The maximum number of data points to return.metricNames
(Collection<Metric> metricNames) The names of the metrics to retrieve.metricNames
(Metric... metricNames) The names of the metrics to retrieve.metricNamesWithStrings
(String... metricNames) The names of the metrics to retrieve.metricNamesWithStrings
(Collection<String> metricNames) The names of the metrics to retrieve.The token for the next page of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The granularity, in seconds, of the returned data points.The start time for the metric data query, in ISO 8601 format.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.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
metricNamesWithStrings
The names of the metrics to retrieve. Maximum of 10 metrics per request.
- Parameters:
metricNames
- The names of the metrics to retrieve. Maximum of 10 metrics per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricNamesWithStrings
The names of the metrics to retrieve. Maximum of 10 metrics per request.
- Parameters:
metricNames
- The names of the metrics to retrieve. Maximum of 10 metrics per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricNames
The names of the metrics to retrieve. Maximum of 10 metrics per request.
- Parameters:
metricNames
- The names of the metrics to retrieve. Maximum of 10 metrics per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricNames
The names of the metrics to retrieve. Maximum of 10 metrics per request.
- Parameters:
metricNames
- The names of the metrics to retrieve. Maximum of 10 metrics per request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The start time for the metric data query, in ISO 8601 format. The time range (end time - start time) must be a multiple of the specified period.
- Parameters:
startTime
- The start time for the metric data query, in ISO 8601 format. The time range (end time - start time) must be a multiple of the specified period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The end time for the metric data query, in ISO 8601 format. If the end time is beyond the latest ingested data, it will be automatically adjusted to the latest available data point.
- Parameters:
endTime
- The end time for the metric data query, in ISO 8601 format. If the end time is beyond the latest ingested data, it will be automatically adjusted to the latest available data point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
period
The granularity, in seconds, of the returned data points.
- Parameters:
period
- The granularity, in seconds, of the returned data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByWithStrings
The dimensions by which to group the metric data. This determines how the data is aggregated and returned.
- Parameters:
groupBy
- The dimensions by which to group the metric data. This determines how the data is aggregated and returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupByWithStrings
The dimensions by which to group the metric data. This determines how the data is aggregated and returned.
- Parameters:
groupBy
- The dimensions by which to group the metric data. This determines how the data is aggregated and returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The dimensions by which to group the metric data. This determines how the data is aggregated and returned.
- Parameters:
groupBy
- The dimensions by which to group the metric data. This determines how the data is aggregated and returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupBy
The dimensions by which to group the metric data. This determines how the data is aggregated and returned.
- Parameters:
groupBy
- The dimensions by which to group the metric data. This determines how the data is aggregated and returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterBy
Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.
- Parameters:
filterBy
- Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterBy
Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.
- Parameters:
filterBy
- Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterBy
GetCapacityManagerMetricDataRequest.Builder filterBy(Consumer<CapacityManagerCondition.Builder>... filterBy) Conditions to filter the metric data. Each filter specifies a dimension, comparison operator ('equals', 'in'), and values to match against.
This is a convenience method that creates an instance of theCapacityManagerCondition.Builder
avoiding the need to create one manually viaCapacityManagerCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilterBy(List<CapacityManagerCondition>)
.- Parameters:
filterBy
- a consumer that will call methods onCapacityManagerCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
The maximum number of data points to return. Valid range is 1 to 100,000. Use with NextToken for pagination of large result sets.
- Parameters:
maxResults
- The maximum number of data points to return. Valid range is 1 to 100,000. Use with NextToken for pagination of large result sets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
The token for the next page of results. Use this value in a subsequent call to retrieve additional data points.
- Parameters:
nextToken
- The token for the next page of results. Use this value in a subsequent call to retrieve additional data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
GetCapacityManagerMetricDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
GetCapacityManagerMetricDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-