Interface RecommendedAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RecommendedAction.Builder,,RecommendedAction> SdkBuilder<RecommendedAction.Builder,,RecommendedAction> SdkPojo
- Enclosing class:
RecommendedAction
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID that owns the resource.default RecommendedAction.BuildercurrentResourceDetails(Consumer<ResourceDetails.Builder> currentResourceDetails) Sets the value of the CurrentResourceDetails property for this object.currentResourceDetails(ResourceDetails currentResourceDetails) Sets the value of the CurrentResourceDetails property for this object.currentResourceSummary(String currentResourceSummary) A summary of the resource's current configuration.default RecommendedAction.BuilderestimatedMonthlySavings(Consumer<EstimatedMonthlySavings.Builder> estimatedMonthlySavings) Sets the value of the EstimatedMonthlySavings property for this object.estimatedMonthlySavings(EstimatedMonthlySavings estimatedMonthlySavings) Sets the value of the EstimatedMonthlySavings property for this object.lookBackPeriodInDays(Integer lookBackPeriodInDays) The number of days of historical data used to generate the recommendation.recommendedActionId(String recommendedActionId) The unique identifier of the recommended action.recommendedActionType(String recommendedActionType) The type of action being recommended.recommendedActionType(RecommendedActionType recommendedActionType) The type of action being recommended.default RecommendedAction.BuilderrecommendedResourceDetails(Consumer<ResourceDetails.Builder> recommendedResourceDetails) Sets the value of the RecommendedResourceDetails property for this object.recommendedResourceDetails(ResourceDetails recommendedResourceDetails) Sets the value of the RecommendedResourceDetails property for this object.recommendedResourceSummary(String recommendedResourceSummary) A summary of the resource's recommended configuration.The Amazon Web Services Region where the resource is located.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the resource that the recommendation applies to.resourceId(String resourceId) The ID of the resource that the recommendation applies to.resourceTags(Collection<Tag> resourceTags) The tags associated with the resource.resourceTags(Consumer<Tag.Builder>... resourceTags) The tags associated with the resource.resourceTags(Tag... resourceTags) The tags associated with the resource.resourceType(String resourceType) The type of resource being evaluated.resourceType(ResourceType resourceType) The type of resource being evaluated.restartNeeded(Boolean restartNeeded) Indicates whether implementing the recommended action requires a resource restart.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
-
recommendedActionId
The unique identifier of the recommended action.
- Parameters:
recommendedActionId- The unique identifier of the recommended action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
The Amazon Resource Name (ARN) of the resource that the recommendation applies to.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the resource that the recommendation applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The ID of the resource that the recommendation applies to.
- Parameters:
resourceId- The ID of the resource that the recommendation applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID that owns the resource.
- Parameters:
accountId- The Amazon Web Services account ID that owns the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
region
The Amazon Web Services Region where the resource is located.
- Parameters:
region- The Amazon Web Services Region where the resource is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
The type of resource being evaluated.
- Parameters:
resourceType- The type of resource being evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of resource being evaluated.
- Parameters:
resourceType- The type of resource being evaluated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lookBackPeriodInDays
The number of days of historical data used to generate the recommendation.
- Parameters:
lookBackPeriodInDays- The number of days of historical data used to generate the recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionType
The type of action being recommended.
- Parameters:
recommendedActionType- The type of action being recommended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedActionType
The type of action being recommended.
- Parameters:
recommendedActionType- The type of action being recommended.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
currentResourceSummary
A summary of the resource's current configuration.
- Parameters:
currentResourceSummary- A summary of the resource's current configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceDetails
Sets the value of the CurrentResourceDetails property for this object.- Parameters:
currentResourceDetails- The new value for the CurrentResourceDetails property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currentResourceDetails
default RecommendedAction.Builder currentResourceDetails(Consumer<ResourceDetails.Builder> currentResourceDetails) Sets the value of the CurrentResourceDetails property for this object. This is a convenience method that creates an instance of theResourceDetails.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocurrentResourceDetails(ResourceDetails).- Parameters:
currentResourceDetails- a consumer that will call methods onResourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedResourceSummary
A summary of the resource's recommended configuration.
- Parameters:
recommendedResourceSummary- A summary of the resource's recommended configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedResourceDetails
Sets the value of the RecommendedResourceDetails property for this object.- Parameters:
recommendedResourceDetails- The new value for the RecommendedResourceDetails property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedResourceDetails
default RecommendedAction.Builder recommendedResourceDetails(Consumer<ResourceDetails.Builder> recommendedResourceDetails) Sets the value of the RecommendedResourceDetails property for this object. This is a convenience method that creates an instance of theResourceDetails.Builderavoiding the need to create one manually viaResourceDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendedResourceDetails(ResourceDetails).- Parameters:
recommendedResourceDetails- a consumer that will call methods onResourceDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
restartNeeded
Indicates whether implementing the recommended action requires a resource restart.
- Parameters:
restartNeeded- Indicates whether implementing the recommended action requires a resource restart.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
Sets the value of the EstimatedMonthlySavings property for this object.- Parameters:
estimatedMonthlySavings- The new value for the EstimatedMonthlySavings property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
estimatedMonthlySavings
default RecommendedAction.Builder estimatedMonthlySavings(Consumer<EstimatedMonthlySavings.Builder> estimatedMonthlySavings) Sets the value of the EstimatedMonthlySavings property for this object. This is a convenience method that creates an instance of theEstimatedMonthlySavings.Builderavoiding the need to create one manually viaEstimatedMonthlySavings.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toestimatedMonthlySavings(EstimatedMonthlySavings).- Parameters:
estimatedMonthlySavings- a consumer that will call methods onEstimatedMonthlySavings.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceTags
The tags associated with the resource.
- Parameters:
resourceTags- The tags associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The tags associated with the resource.
- Parameters:
resourceTags- The tags associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTags
The tags associated with the resource.
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 toresourceTags(List<Tag>).- Parameters:
resourceTags- 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:
-