Interface CurrentInstance.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<CurrentInstance.Builder,,- CurrentInstance> - SdkBuilder<CurrentInstance.Builder,,- CurrentInstance> - SdkPojo
- Enclosing class:
- CurrentInstance
- 
Method SummaryModifier 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.BuilderresourceDetails(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.BuilderresourceUtilization(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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
resourceIdResource 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.
 
- 
instanceNameThe 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.
 
- 
tagsCost 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.
 
- 
tagsCost 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.
 
- 
tagsCost allocation resource tags that are applied to the instance. This is a convenience method that creates an instance of theTagValues.Builderavoiding the need to create one manually viaTagValues.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<TagValues>).- Parameters:
- tags- a consumer that will call methods on- TagValues.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceDetailsDetails 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.
 
- 
resourceDetailsDetails about the resource and utilization. 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 toresourceDetails(ResourceDetails).- Parameters:
- resourceDetails- a consumer that will call methods on- ResourceDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceUtilizationUtilization 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.
 
- 
resourceUtilizationdefault 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.Builderavoiding the need to create one manually viaResourceUtilization.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceUtilization(ResourceUtilization).- Parameters:
- resourceUtilization- a consumer that will call methods on- ResourceUtilization.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
reservationCoveredHoursInLookbackPeriodCurrentInstance.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.
 
- 
savingsPlansCoveredHoursInLookbackPeriodCurrentInstance.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.
 
- 
onDemandHoursInLookbackPeriodThe 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.
 
- 
totalRunningHoursInLookbackPeriodThe 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.
 
- 
monthlyCostThe 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.
 
- 
currencyCodeThe 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.
 
 
-