@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CostEstimate extends Object implements Serializable, Cloneable, StructuredPojo
Describes the estimated cost for resources in your Lightsail for Research account.
Constructor and Description |
---|
CostEstimate() |
Modifier and Type | Method and Description |
---|---|
CostEstimate |
clone() |
boolean |
equals(Object obj) |
List<EstimateByTime> |
getResultsByTime()
The cost estimate result that's associated with a time period.
|
String |
getUsageType()
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResultsByTime(Collection<EstimateByTime> resultsByTime)
The cost estimate result that's associated with a time period.
|
void |
setUsageType(String usageType)
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
|
String |
toString()
Returns a string representation of this object.
|
CostEstimate |
withResultsByTime(Collection<EstimateByTime> resultsByTime)
The cost estimate result that's associated with a time period.
|
CostEstimate |
withResultsByTime(EstimateByTime... resultsByTime)
The cost estimate result that's associated with a time period.
|
CostEstimate |
withUsageType(String usageType)
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
|
public void setUsageType(String usageType)
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
usageType
- The types of usage that are included in the estimate, such as costs, usage, or data transfer.public String getUsageType()
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
public CostEstimate withUsageType(String usageType)
The types of usage that are included in the estimate, such as costs, usage, or data transfer.
usageType
- The types of usage that are included in the estimate, such as costs, usage, or data transfer.public List<EstimateByTime> getResultsByTime()
The cost estimate result that's associated with a time period.
public void setResultsByTime(Collection<EstimateByTime> resultsByTime)
The cost estimate result that's associated with a time period.
resultsByTime
- The cost estimate result that's associated with a time period.public CostEstimate withResultsByTime(EstimateByTime... resultsByTime)
The cost estimate result that's associated with a time period.
NOTE: This method appends the values to the existing list (if any). Use
setResultsByTime(java.util.Collection)
or withResultsByTime(java.util.Collection)
if you want
to override the existing values.
resultsByTime
- The cost estimate result that's associated with a time period.public CostEstimate withResultsByTime(Collection<EstimateByTime> resultsByTime)
The cost estimate result that's associated with a time period.
resultsByTime
- The cost estimate result that's associated with a time period.public String toString()
toString
in class Object
Object.toString()
public CostEstimate clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.