Interface GetEc2RecommendationProjectedMetricsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,ComputeOptimizerRequest.Builder
,CopyableBuilder<GetEc2RecommendationProjectedMetricsRequest.Builder,
,GetEc2RecommendationProjectedMetricsRequest> SdkBuilder<GetEc2RecommendationProjectedMetricsRequest.Builder,
,GetEc2RecommendationProjectedMetricsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetEc2RecommendationProjectedMetricsRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp of the last projected metrics data point to return.instanceArn
(String instanceArn) The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.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 projected metrics data points.recommendationPreferences
(Consumer<RecommendationPreferences.Builder> recommendationPreferences) An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.recommendationPreferences
(RecommendationPreferences recommendationPreferences) An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.The timestamp of the first projected metrics data point to return.The statistic of the projected metrics.stat
(MetricStatistic stat) The statistic of the projected metrics.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.computeoptimizer.model.ComputeOptimizerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
instanceArn
The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.
- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stat
The statistic of the projected metrics.
- Parameters:
stat
- The statistic of the projected metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stat
The statistic of the projected metrics.
- Parameters:
stat
- The statistic of the projected metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
period
The granularity, in seconds, of the projected metrics data points.
- Parameters:
period
- The granularity, in seconds, of the projected metrics data points.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The timestamp of the first projected metrics data point to return.
- Parameters:
startTime
- The timestamp of the first projected metrics data point to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The timestamp of the last projected metrics data point to return.
- Parameters:
endTime
- The timestamp of the last projected metrics data point to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationPreferences
GetEc2RecommendationProjectedMetricsRequest.Builder recommendationPreferences(RecommendationPreferences recommendationPreferences) An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.
- Parameters:
recommendationPreferences
- An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationPreferences
default GetEc2RecommendationProjectedMetricsRequest.Builder recommendationPreferences(Consumer<RecommendationPreferences.Builder> recommendationPreferences) An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.
This is a convenience method that creates an instance of theRecommendationPreferences.Builder
avoiding the need to create one manually viaRecommendationPreferences.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecommendationPreferences(RecommendationPreferences)
.- Parameters:
recommendationPreferences
- a consumer that will call methods onRecommendationPreferences.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetEc2RecommendationProjectedMetricsRequest.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
GetEc2RecommendationProjectedMetricsRequest.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.
-