Interface CurrentInstance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CurrentInstance.Builder,
,CurrentInstance> SdkBuilder<CurrentInstance.Builder,
,CurrentInstance> SdkPojo
- Enclosing class:
CurrentInstance
-
Method Summary
Modifier and TypeMethodDescriptioncurrencyCode
(String currencyCode) The currency code that Amazon Web Services used to calculate the costs for this instance.instanceName
(String instanceName) The name that you given an instance.monthlyCost
(String monthlyCost) The current On-Demand cost of operating this instance on a monthly basis.onDemandHoursInLookbackPeriod
(String onDemandHoursInLookbackPeriod) The number of hours during the lookback period that's billed at On-Demand rates.reservationCoveredHoursInLookbackPeriod
(String reservationCoveredHoursInLookbackPeriod) The number of hours during the lookback period that's covered by reservations.default CurrentInstance.Builder
resourceDetails
(Consumer<ResourceDetails.Builder> resourceDetails) Details about the resource and utilization.resourceDetails
(ResourceDetails resourceDetails) Details about the resource and utilization.resourceId
(String resourceId) Resource ID of the current instance.default CurrentInstance.Builder
resourceUtilization
(Consumer<ResourceUtilization.Builder> resourceUtilization) Utilization information of the current instance during the lookback period.resourceUtilization
(ResourceUtilization resourceUtilization) Utilization information of the current instance during the lookback period.savingsPlansCoveredHoursInLookbackPeriod
(String savingsPlansCoveredHoursInLookbackPeriod) The number of hours during the lookback period that's covered by Savings Plans.tags
(Collection<TagValues> tags) Cost allocation resource tags that are applied to the instance.tags
(Consumer<TagValues.Builder>... tags) Cost allocation resource tags that are applied to the instance.Cost allocation resource tags that are applied to the instance.totalRunningHoursInLookbackPeriod
(String totalRunningHoursInLookbackPeriod) The total number of hours that the instance ran during the lookback period.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
-
resourceId
Resource ID of the current instance.
- Parameters:
resourceId
- Resource ID of the current instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceName
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
- Parameters:
instanceName
- The name that you given an instance. This field shows as blank if you haven't given the instance a name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Cost allocation resource tags that are applied to the instance.
- Parameters:
tags
- Cost allocation resource tags that are applied to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Cost allocation resource tags that are applied to the instance.
- Parameters:
tags
- Cost allocation resource tags that are applied to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Cost allocation resource tags that are applied to the instance.
This is a convenience method that creates an instance of theTagValues.Builder
avoiding the need to create one manually viaTagValues.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<TagValues>)
.- Parameters:
tags
- a consumer that will call methods onTagValues.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceDetails
Details about the resource and utilization.
- Parameters:
resourceDetails
- Details about the resource and utilization.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDetails
Details about the resource and utilization.
This is a convenience method that creates an instance of theResourceDetails.Builder
avoiding the need to create one manually viaResourceDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceDetails(ResourceDetails)
.- Parameters:
resourceDetails
- 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:
-
resourceUtilization
Utilization information of the current instance during the lookback period.
- Parameters:
resourceUtilization
- Utilization information of the current instance during the lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceUtilization
default CurrentInstance.Builder resourceUtilization(Consumer<ResourceUtilization.Builder> resourceUtilization) Utilization information of the current instance during the lookback period.
This is a convenience method that creates an instance of theResourceUtilization.Builder
avoiding the need to create one manually viaResourceUtilization.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceUtilization(ResourceUtilization)
.- Parameters:
resourceUtilization
- a consumer that will call methods onResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservationCoveredHoursInLookbackPeriod
CurrentInstance.Builder reservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod) The number of hours during the lookback period that's covered by reservations.
- Parameters:
reservationCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
savingsPlansCoveredHoursInLookbackPeriod
CurrentInstance.Builder savingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod) The number of hours during the lookback period that's covered by Savings Plans.
- Parameters:
savingsPlansCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by Savings Plans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onDemandHoursInLookbackPeriod
The number of hours during the lookback period that's billed at On-Demand rates.
- Parameters:
onDemandHoursInLookbackPeriod
- The number of hours during the lookback period that's billed at On-Demand rates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalRunningHoursInLookbackPeriod
The total number of hours that the instance ran during the lookback period.
- Parameters:
totalRunningHoursInLookbackPeriod
- The total number of hours that the instance ran during the lookback period.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monthlyCost
The current On-Demand cost of operating this instance on a monthly basis.
- Parameters:
monthlyCost
- The current On-Demand cost of operating this instance on a monthly basis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
currencyCode
The currency code that Amazon Web Services used to calculate the costs for this instance.
- Parameters:
currencyCode
- The currency code that Amazon Web Services used to calculate the costs for this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-