Interface IdleRecommendation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<IdleRecommendation.Builder,IdleRecommendation>,SdkBuilder<IdleRecommendation.Builder,IdleRecommendation>,SdkPojo
- Enclosing class:
- IdleRecommendation
public static interface IdleRecommendation.Builder extends SdkPojo, CopyableBuilder<IdleRecommendation.Builder,IdleRecommendation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IdleRecommendation.BuilderaccountId(String accountId)The Amazon Web Services account ID of the idle resource.IdleRecommendation.Builderfinding(String finding)The finding classification of an idle resource.IdleRecommendation.Builderfinding(IdleFinding finding)The finding classification of an idle resource.IdleRecommendation.BuilderfindingDescription(String findingDescription)A summary of the findings for the resource.IdleRecommendation.BuilderlastRefreshTimestamp(Instant lastRefreshTimestamp)The timestamp of when the idle resource recommendation was last generated.IdleRecommendation.BuilderlookBackPeriodInDays(Double lookBackPeriodInDays)The number of days the idle resource utilization metrics were analyzed.IdleRecommendation.BuilderresourceArn(String resourceArn)The ARN of the current idle resource.IdleRecommendation.BuilderresourceId(String resourceId)The unique identifier for the resource.IdleRecommendation.BuilderresourceType(String resourceType)The type of resource that is idle.IdleRecommendation.BuilderresourceType(IdleRecommendationResourceType resourceType)The type of resource that is idle.default IdleRecommendation.BuildersavingsOpportunity(Consumer<IdleSavingsOpportunity.Builder> savingsOpportunity)The savings opportunity for the idle resource.IdleRecommendation.BuildersavingsOpportunity(IdleSavingsOpportunity savingsOpportunity)The savings opportunity for the idle resource.default IdleRecommendation.BuildersavingsOpportunityAfterDiscounts(Consumer<IdleSavingsOpportunityAfterDiscounts.Builder> savingsOpportunityAfterDiscounts)The savings opportunity for the idle resource after any applying discounts.IdleRecommendation.BuildersavingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts savingsOpportunityAfterDiscounts)The savings opportunity for the idle resource after any applying discounts.IdleRecommendation.Buildertags(Collection<Tag> tags)A list of tags assigned to your idle resource recommendations.IdleRecommendation.Buildertags(Consumer<Tag.Builder>... tags)A list of tags assigned to your idle resource recommendations.IdleRecommendation.Buildertags(Tag... tags)A list of tags assigned to your idle resource recommendations.IdleRecommendation.BuilderutilizationMetrics(Collection<IdleUtilizationMetric> utilizationMetrics)An array of objects that describe the utilization metrics of the idle resource.IdleRecommendation.BuilderutilizationMetrics(Consumer<IdleUtilizationMetric.Builder>... utilizationMetrics)An array of objects that describe the utilization metrics of the idle resource.IdleRecommendation.BuilderutilizationMetrics(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 Detail
-
resourceArn
IdleRecommendation.Builder resourceArn(String 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
IdleRecommendation.Builder resourceId(String 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
IdleRecommendation.Builder resourceType(String 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:
IdleRecommendationResourceType,IdleRecommendationResourceType
-
resourceType
IdleRecommendation.Builder resourceType(IdleRecommendationResourceType 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:
IdleRecommendationResourceType,IdleRecommendationResourceType
-
accountId
IdleRecommendation.Builder accountId(String 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
IdleRecommendation.Builder finding(String 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:
IdleFinding,IdleFinding
-
finding
IdleRecommendation.Builder finding(IdleFinding 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:
IdleFinding,IdleFinding
-
findingDescription
IdleRecommendation.Builder findingDescription(String 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
IdleRecommendation.Builder savingsOpportunity(IdleSavingsOpportunity 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.Builderavoiding the need to create one manually viaIdleSavingsOpportunity.builder().When the
Consumercompletes,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:
savingsOpportunity(IdleSavingsOpportunity)
-
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.Builderavoiding the need to create one manually viaIdleSavingsOpportunityAfterDiscounts.builder().When the
Consumercompletes,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:
savingsOpportunityAfterDiscounts(IdleSavingsOpportunityAfterDiscounts)
-
utilizationMetrics
IdleRecommendation.Builder utilizationMetrics(Collection<IdleUtilizationMetric> 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(IdleUtilizationMetric... 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.Builderavoiding the need to create one manually viaIdleUtilizationMetric.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#utilizationMetrics(List.) - 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:
#utilizationMetrics(java.util.Collection)
-
lookBackPeriodInDays
IdleRecommendation.Builder lookBackPeriodInDays(Double 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
IdleRecommendation.Builder lastRefreshTimestamp(Instant 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
IdleRecommendation.Builder tags(Collection<Tag> 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
IdleRecommendation.Builder tags(Tag... 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
IdleRecommendation.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags assigned to your idle resource recommendations.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-