Interface PreviewResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PreviewResult.Builder,,PreviewResult> SdkBuilder<PreviewResult.Builder,,PreviewResult> SdkPojo
- Enclosing class:
PreviewResult
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID associated with the resource.default PreviewResult.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 PreviewResult.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 analyze the resource.recommendedActionId(String recommendedActionId) The ID of the recommended action being previewed.recommendedActionType(String recommendedActionType) The type of recommended action being previewed.recommendedActionType(RecommendedActionType recommendedActionType) The type of recommended action being previewed.default PreviewResult.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 affected by the recommended action.resourceId(String resourceId) The ID of the resource affected by the recommended action.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 ID of the recommended action being previewed.
- Parameters:
recommendedActionId- The ID of the recommended action being previewed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceArn
The Amazon Resource Name (ARN) of the resource affected by the recommended action.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the resource affected by the recommended action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceId
The ID of the resource affected by the recommended action.
- Parameters:
resourceId- The ID of the resource affected by the recommended action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountId
The Amazon Web Services account ID associated with the resource.
- Parameters:
accountId- The Amazon Web Services account ID associated with 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 analyze the resource.
- Parameters:
lookBackPeriodInDays- The number of days of historical data used to analyze the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendedActionType
The type of recommended action being previewed.
- Parameters:
recommendedActionType- The type of recommended action being previewed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendedActionType
The type of recommended action being previewed.
- Parameters:
recommendedActionType- The type of recommended action being previewed.- 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 PreviewResult.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 PreviewResult.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 PreviewResult.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:
-