@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 |
getInstanceName()
The name that you given an instance.
|
String |
getMonthlyCost()
The current On-Demand cost of operating this instance on a monthly basis.
|
String |
getOnDemandHoursInLookbackPeriod()
The number of hours during the lookback period that's billed at On-Demand rates.
|
String |
getReservationCoveredHoursInLookbackPeriod()
The number of hours during the lookback period that's 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()
The number of hours during the lookback period that's covered by Savings Plans.
|
List<TagValues> |
getTags()
Cost allocation resource tags that are applied to the instance.
|
String |
getTotalRunningHoursInLookbackPeriod()
The total number of hours that 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 |
setInstanceName(String instanceName)
The name that you given an instance.
|
void |
setMonthlyCost(String monthlyCost)
The current On-Demand cost of operating this instance on a monthly basis.
|
void |
setOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
The number of hours during the lookback period that's billed at On-Demand rates.
|
void |
setReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
The number of hours during the lookback period that's 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)
The number of hours during the lookback period that's covered by Savings Plans.
|
void |
setTags(Collection<TagValues> tags)
Cost allocation resource tags that are applied to the instance.
|
void |
setTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours that 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 |
withInstanceName(String instanceName)
The name that you given an instance.
|
CurrentInstance |
withMonthlyCost(String monthlyCost)
The current On-Demand cost of operating this instance on a monthly basis.
|
CurrentInstance |
withOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
The number of hours during the lookback period that's billed at On-Demand rates.
|
CurrentInstance |
withReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
The number of hours during the lookback period that's 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)
The number of hours during the lookback period that's covered by Savings Plans.
|
CurrentInstance |
withTags(Collection<TagValues> tags)
Cost allocation resource tags that are applied to the instance.
|
CurrentInstance |
withTags(TagValues... tags)
Cost allocation resource tags that are applied to the instance.
|
CurrentInstance |
withTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours that 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 void setInstanceName(String instanceName)
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
instanceName
- The name that you given an instance. This field shows as blank if you haven't given the instance a name.public String getInstanceName()
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
public CurrentInstance withInstanceName(String instanceName)
The name that you given an instance. This field shows as blank if you haven't given the instance a name.
instanceName
- The name that you given an instance. This field shows as blank if you haven't given the instance a name.public List<TagValues> getTags()
Cost allocation resource tags that are applied to the instance.
public void setTags(Collection<TagValues> tags)
Cost allocation resource tags that are applied to the instance.
tags
- Cost allocation resource tags that are applied to the instance.public CurrentInstance withTags(TagValues... tags)
Cost allocation resource tags that are 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 that are applied to the instance.public CurrentInstance withTags(Collection<TagValues> tags)
Cost allocation resource tags that are applied to the instance.
tags
- Cost allocation resource tags that are 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)
The number of hours during the lookback period that's covered by reservations.
reservationCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by reservations.public String getReservationCoveredHoursInLookbackPeriod()
The number of hours during the lookback period that's covered by reservations.
public CurrentInstance withReservationCoveredHoursInLookbackPeriod(String reservationCoveredHoursInLookbackPeriod)
The number of hours during the lookback period that's covered by reservations.
reservationCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by reservations.public void setSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
The number of hours during the lookback period that's covered by Savings Plans.
savingsPlansCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by Savings Plans.public String getSavingsPlansCoveredHoursInLookbackPeriod()
The number of hours during the lookback period that's covered by Savings Plans.
public CurrentInstance withSavingsPlansCoveredHoursInLookbackPeriod(String savingsPlansCoveredHoursInLookbackPeriod)
The number of hours during the lookback period that's covered by Savings Plans.
savingsPlansCoveredHoursInLookbackPeriod
- The number of hours during the lookback period that's covered by Savings Plans.public void setOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
The number of hours during the lookback period that's billed at On-Demand rates.
onDemandHoursInLookbackPeriod
- The number of hours during the lookback period that's billed at On-Demand rates.public String getOnDemandHoursInLookbackPeriod()
The number of hours during the lookback period that's billed at On-Demand rates.
public CurrentInstance withOnDemandHoursInLookbackPeriod(String onDemandHoursInLookbackPeriod)
The number of hours during the lookback period that's billed at On-Demand rates.
onDemandHoursInLookbackPeriod
- The number of hours during the lookback period that's billed at On-Demand rates.public void setTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours that the instance ran during the lookback period.
totalRunningHoursInLookbackPeriod
- The total number of hours that the instance ran during the lookback period.public String getTotalRunningHoursInLookbackPeriod()
The total number of hours that the instance ran during the lookback period.
public CurrentInstance withTotalRunningHoursInLookbackPeriod(String totalRunningHoursInLookbackPeriod)
The total number of hours that the instance ran during the lookback period.
totalRunningHoursInLookbackPeriod
- The total number of hours that the instance ran during the lookback period.public void setMonthlyCost(String monthlyCost)
The current On-Demand cost of operating this instance on a monthly basis.
monthlyCost
- The current On-Demand cost of operating this instance on a monthly basis.public String getMonthlyCost()
The current On-Demand cost of operating this instance on a monthly basis.
public CurrentInstance withMonthlyCost(String monthlyCost)
The current On-Demand cost of operating this instance on a monthly basis.
monthlyCost
- The 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.