Interface IdleRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<IdleRecommendation.Builder,
,IdleRecommendation> SdkBuilder<IdleRecommendation.Builder,
,IdleRecommendation> SdkPojo
- Enclosing class:
IdleRecommendation
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID of the idle resource.The finding classification of an idle resource.finding
(IdleFinding finding) The finding classification of an idle resource.findingDescription
(String findingDescription) A summary of the findings for the resource.lastRefreshTimestamp
(Instant lastRefreshTimestamp) The timestamp of when the idle resource recommendation was last generated.lookBackPeriodInDays
(Double lookBackPeriodInDays) The number of days the idle resource utilization metrics were analyzed.resourceArn
(String resourceArn) The ARN of the current idle resource.resourceId
(String resourceId) The unique identifier for the resource.resourceType
(String resourceType) The type of resource that is idle.resourceType
(IdleRecommendationResourceType resourceType) The type of resource that is idle.default IdleRecommendation.Builder
savingsOpportunity
(Consumer<IdleSavingsOpportunity.Builder> savingsOpportunity) The savings opportunity for the idle resource.savingsOpportunity
(IdleSavingsOpportunity savingsOpportunity) The savings opportunity for the idle resource.default IdleRecommendation.Builder
savingsOpportunityAfterDiscounts
(Consumer<IdleSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts) The savings opportunity for the idle resource after any applying discounts.savingsOpportunityAfterDiscounts
(IdleSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts) The savings opportunity for the idle resource after any applying discounts.tags
(Collection<Tag> tags) A list of tags assigned to your idle resource recommendations.tags
(Consumer<Tag.Builder>... tags) A list of tags assigned to your idle resource recommendations.A list of tags assigned to your idle resource recommendations.utilizationMetrics
(Collection<IdleUtilizationMetric> utilizationMetrics) An array of objects that describe the utilization metrics of the idle resource.utilizationMetrics
(Consumer<IdleUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the idle resource.utilizationMetrics
(IdleUtilizationMetric... utilizationMetrics) An array of objects that describe the utilization metrics of the idle resource.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, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceArn
The ARN of the current idle resource.
- Parameters:
resourceArn
- The ARN of the current idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The unique identifier for the resource.
- Parameters:
resourceId
- The unique identifier for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of resource that is idle.
- Parameters:
resourceType
- The type of resource that is idle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource that is idle.
- Parameters:
resourceType
- The type of resource that is idle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountId
The Amazon Web Services account ID of the idle resource.
- Parameters:
accountId
- The Amazon Web Services account ID of the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finding
The finding classification of an idle resource.
- Parameters:
finding
- The finding classification of an idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
finding
The finding classification of an idle resource.
- Parameters:
finding
- The finding classification of an idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
findingDescription
A summary of the findings for the resource.
- Parameters:
findingDescription
- A summary of the findings for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunity
The savings opportunity for the idle resource.
- Parameters:
savingsOpportunity
- The savings opportunity for the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunity
default IdleRecommendation.Builder savingsOpportunity(Consumer<IdleSavingsOpportunity.Builder> savingsOpportunity) The savings opportunity for the idle resource.
This is a convenience method that creates an instance of theIdleSavingsOpportunity.Builder
avoiding the need to create one manually viaIdleSavingsOpportunity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsOpportunity(IdleSavingsOpportunity)
.- Parameters:
savingsOpportunity
- a consumer that will call methods onIdleSavingsOpportunity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
savingsOpportunityAfterDiscounts
IdleRecommendation.Builder savingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts) The savings opportunity for the idle resource after any applying discounts.
- Parameters:
savingsOpportunityAfterDiscounts
- The savings opportunity for the idle resource after any applying discounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsOpportunityAfterDiscounts
default IdleRecommendation.Builder savingsOpportunityAfterDiscounts(Consumer<IdleSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts) The savings opportunity for the idle resource after any applying discounts.
This is a convenience method that creates an instance of theIdleSavingsOpportunityAfterDiscounts.Builder
avoiding the need to create one manually viaIdleSavingsOpportunityAfterDiscounts.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosavingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts)
.- Parameters:
savingsOpportunityAfterDiscounts
- a consumer that will call methods onIdleSavingsOpportunityAfterDiscounts.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
utilizationMetrics
An array of objects that describe the utilization metrics of the idle resource.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
An array of objects that describe the utilization metrics of the idle resource.
- Parameters:
utilizationMetrics
- An array of objects that describe the utilization metrics of the idle resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilizationMetrics
IdleRecommendation.Builder utilizationMetrics(Consumer<IdleUtilizationMetric.Builder>... utilizationMetrics) An array of objects that describe the utilization metrics of the idle resource.
This is a convenience method that creates an instance of theIdleUtilizationMetric.Builder
avoiding the need to create one manually viaIdleUtilizationMetric.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toutilizationMetrics(List<IdleUtilizationMetric>)
.- Parameters:
utilizationMetrics
- a consumer that will call methods onIdleUtilizationMetric.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookBackPeriodInDays
The number of days the idle resource utilization metrics were analyzed.
- Parameters:
lookBackPeriodInDays
- The number of days the idle resource utilization metrics were analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastRefreshTimestamp
The timestamp of when the idle resource recommendation was last generated.
- Parameters:
lastRefreshTimestamp
- The timestamp of when the idle resource recommendation was last generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your idle resource recommendations.
- Parameters:
tags
- A list of tags assigned to your idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your idle resource recommendations.
- Parameters:
tags
- A list of tags assigned to your idle resource recommendations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of tags assigned to your idle resource recommendations.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-