@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CurrentInstance extends Object implements Serializable, Cloneable, StructuredPojo
Context about the current instance.
Constructor and Description |
---|
CurrentInstance() |
Modifier and Type | Method and Description |
---|---|
CurrentInstance |
clone() |
boolean |
equals(Object obj) |
String |
getCurrencyCode()
The currency code that Amazon Web Services used to calculate the costs for this instance.
|
String |
getMonthlyCost()
Current On Demand cost of operating this instance on a monthly basis.
|
String |
getOnDemandHoursInLookbackPeriod()
Number of hours during the lookback period billed at On Demand rates.
|
String |
getReservationCoveredHoursInLookbackPeriod()
Number of hours during the lookback period covered by reservations.
|
ResourceDetails |
getResourceDetails()
Details about the resource and utilization.
|
String |
getResourceId()
Resource ID of the current instance.
|
ResourceUtilization |
getResourceUtilization()
Utilization information of the current instance during the lookback period.
|
String |
getSavingsPlansCoveredHoursInLookbackPeriod()
Number of hours during the lookback period covered by Savings Plans.
|
List<TagValues> |
getTags()
Cost allocation resource tags applied to the instance.
|
String |
getTotalRunningHoursInLookbackPeriod()
The total number of hours the instance ran during the lookback period.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCurrencyCode(String currencyCode)
The currency code that Amazon Web Services used to calculate the costs for this instance.
|
void |
setMonthlyCost(String monthlyCost)
Current On Demand cost of operating this instance on a monthly basis.
|
void |
setOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
Number of hours during the lookback period billed at On Demand rates.
|
void |
setReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by reservations.
|
void |
setResourceDetails(ResourceDetails resourceDetails)
Details about the resource and utilization.
|
void |
setResourceId(String resourceId)
Resource ID of the current instance.
|
void |
setResourceUtilization(ResourceUtilization resourceUtilization)
Utilization information of the current instance during the lookback period.
|
void |
setSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by Savings Plans.
|
void |
setTags(Collection<TagValues> tags)
Cost allocation resource tags applied to the instance.
|
void |
setTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours the instance ran during the lookback period.
|
String |
toString()
Returns a string representation of this object.
|
CurrentInstance |
withCurrencyCode(String currencyCode)
The currency code that Amazon Web Services used to calculate the costs for this instance.
|
CurrentInstance |
withMonthlyCost(String monthlyCost)
Current On Demand cost of operating this instance on a monthly basis.
|
CurrentInstance |
withOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
Number of hours during the lookback period billed at On Demand rates.
|
CurrentInstance |
withReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by reservations.
|
CurrentInstance |
withResourceDetails(ResourceDetails resourceDetails)
Details about the resource and utilization.
|
CurrentInstance |
withResourceId(String resourceId)
Resource ID of the current instance.
|
CurrentInstance |
withResourceUtilization(ResourceUtilization resourceUtilization)
Utilization information of the current instance during the lookback period.
|
CurrentInstance |
withSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by Savings Plans.
|
CurrentInstance |
withTags(Collection<TagValues> tags)
Cost allocation resource tags applied to the instance.
|
CurrentInstance |
withTags(TagValues... tags)
Cost allocation resource tags applied to the instance.
|
CurrentInstance |
withTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours the instance ran during the lookback period.
|
public void setResourceId(String resourceId)
Resource ID of the current instance.
resourceId
- Resource ID of the current instance.public String getResourceId()
Resource ID of the current instance.
public CurrentInstance withResourceId(String resourceId)
Resource ID of the current instance.
resourceId
- Resource ID of the current instance.public List<TagValues> getTags()
Cost allocation resource tags applied to the instance.
public void setTags(Collection<TagValues> tags)
Cost allocation resource tags applied to the instance.
tags
- Cost allocation resource tags applied to the instance.public CurrentInstance withTags(TagValues... tags)
Cost allocation resource tags applied to the instance.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Cost allocation resource tags applied to the instance.public CurrentInstance withTags(Collection<TagValues> tags)
Cost allocation resource tags applied to the instance.
tags
- Cost allocation resource tags applied to the instance.public void setResourceDetails(ResourceDetails resourceDetails)
Details about the resource and utilization.
resourceDetails
- Details about the resource and utilization.public ResourceDetails getResourceDetails()
Details about the resource and utilization.
public CurrentInstance withResourceDetails(ResourceDetails resourceDetails)
Details about the resource and utilization.
resourceDetails
- Details about the resource and utilization.public void setResourceUtilization(ResourceUtilization resourceUtilization)
Utilization information of the current instance during the lookback period.
resourceUtilization
- Utilization information of the current instance during the lookback period.public ResourceUtilization getResourceUtilization()
Utilization information of the current instance during the lookback period.
public CurrentInstance withResourceUtilization(ResourceUtilization resourceUtilization)
Utilization information of the current instance during the lookback period.
resourceUtilization
- Utilization information of the current instance during the lookback period.public void setReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by reservations.
reservationCoveredHoursInLookbackPeriod
- Number of hours during the lookback period covered by reservations.public String getReservationCoveredHoursInLookbackPeriod()
Number of hours during the lookback period covered by reservations.
public CurrentInstance withReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by reservations.
reservationCoveredHoursInLookbackPeriod
- Number of hours during the lookback period covered by reservations.public void setSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by Savings Plans.
savingsPlansCoveredHoursInLookbackPeriod
- Number of hours during the lookback period covered by Savings Plans.public String getSavingsPlansCoveredHoursInLookbackPeriod()
Number of hours during the lookback period covered by Savings Plans.
public CurrentInstance withSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
Number of hours during the lookback period covered by Savings Plans.
savingsPlansCoveredHoursInLookbackPeriod
- Number of hours during the lookback period covered by Savings Plans.public void setOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
Number of hours during the lookback period billed at On Demand rates.
onDemandHoursInLookbackPeriod
- Number of hours during the lookback period billed at On Demand rates.public String getOnDemandHoursInLookbackPeriod()
Number of hours during the lookback period billed at On Demand rates.
public CurrentInstance withOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
Number of hours during the lookback period billed at On Demand rates.
onDemandHoursInLookbackPeriod
- Number of hours during the lookback period billed at On Demand rates.public void setTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours the instance ran during the lookback period.
totalRunningHoursInLookbackPeriod
- The total number of hours the instance ran during the lookback period.public String getTotalRunningHoursInLookbackPeriod()
The total number of hours the instance ran during the lookback period.
public CurrentInstance withTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours the instance ran during the lookback period.
totalRunningHoursInLookbackPeriod
- The total number of hours the instance ran during the lookback period.public void setMonthlyCost(String monthlyCost)
Current On Demand cost of operating this instance on a monthly basis.
monthlyCost
- Current On Demand cost of operating this instance on a monthly basis.public String getMonthlyCost()
Current On Demand cost of operating this instance on a monthly basis.
public CurrentInstance withMonthlyCost(String monthlyCost)
Current On Demand cost of operating this instance on a monthly basis.
monthlyCost
- Current On Demand cost of operating this instance on a monthly basis.public void setCurrencyCode(String currencyCode)
The currency code that Amazon Web Services used to calculate the costs for this instance.
currencyCode
- The currency code that Amazon Web Services used to calculate the costs for this instance.public String getCurrencyCode()
The currency code that Amazon Web Services used to calculate the costs for this instance.
public CurrentInstance withCurrencyCode(String currencyCode)
The currency code that Amazon Web Services used to calculate the costs for this instance.
currencyCode
- The currency code that Amazon Web Services used to calculate the costs for this instance.public String toString()
toString
in class Object
Object.toString()
public CurrentInstance clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.