* The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. *
*/ private CostEstimationResourceCollectionFilter resourceCollection; /** *
* The status of creating this cost estimate. If it's still in progress, the status ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
*
* An array of ResourceCost
objects that each contains details about the monthly cost estimate to
* analyze one of your Amazon Web Services resources.
*
* The start and end time of the cost estimation. *
*/ private CostEstimationTimeRange timeRange; /** *
* The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated
* costs to analyze each resource in the Costs
object in this response.
*
* The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, * this value is null. *
*/ private String nextToken; /** ** The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. *
* * @param resourceCollection * The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. */ public void setResourceCollection(CostEstimationResourceCollectionFilter resourceCollection) { this.resourceCollection = resourceCollection; } /** ** The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. *
* * @return The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost * estimate. */ public CostEstimationResourceCollectionFilter getResourceCollection() { return this.resourceCollection; } /** ** The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. *
* * @param resourceCollection * The collection of the Amazon Web Services resources used to create your monthly DevOps Guru cost estimate. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostEstimationResult withResourceCollection(CostEstimationResourceCollectionFilter resourceCollection) { setResourceCollection(resourceCollection); return this; } /** *
* The status of creating this cost estimate. If it's still in progress, the status ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
*
ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
* @see CostEstimationStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of creating this cost estimate. If it's still in progress, the status ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
*
ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
* @see CostEstimationStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of creating this cost estimate. If it's still in progress, the status ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
*
ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CostEstimationStatus
*/
public GetCostEstimationResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of creating this cost estimate. If it's still in progress, the status ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
*
ONGOING
is
* returned. If it is finished, the status COMPLETED
is returned.
* @return Returns a reference to this object so that method calls can be chained together.
* @see CostEstimationStatus
*/
public GetCostEstimationResult withStatus(CostEstimationStatus status) {
this.status = status.toString();
return this;
}
/**
*
* An array of ResourceCost
objects that each contains details about the monthly cost estimate to
* analyze one of your Amazon Web Services resources.
*
ResourceCost
objects that each contains details about the monthly cost estimate
* to analyze one of your Amazon Web Services resources.
*/
public java.util.List
* An array of ResourceCost
objects that each contains details about the monthly cost estimate to
* analyze one of your Amazon Web Services resources.
*
ResourceCost
objects that each contains details about the monthly cost estimate
* to analyze one of your Amazon Web Services resources.
*/
public void setCosts(java.util.Collection
* An array of ResourceCost
objects that each contains details about the monthly cost estimate to
* analyze one of your Amazon Web Services resources.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCosts(java.util.Collection)} or {@link #withCosts(java.util.Collection)} if you want to override the * existing values. *
* * @param costs * An array ofResourceCost
objects that each contains details about the monthly cost estimate
* to analyze one of your Amazon Web Services resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCostEstimationResult withCosts(ServiceResourceCost... costs) {
if (this.costs == null) {
setCosts(new java.util.ArrayList
* An array of ResourceCost
objects that each contains details about the monthly cost estimate to
* analyze one of your Amazon Web Services resources.
*
ResourceCost
objects that each contains details about the monthly cost estimate
* to analyze one of your Amazon Web Services resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCostEstimationResult withCosts(java.util.Collection* The start and end time of the cost estimation. *
* * @param timeRange * The start and end time of the cost estimation. */ public void setTimeRange(CostEstimationTimeRange timeRange) { this.timeRange = timeRange; } /** ** The start and end time of the cost estimation. *
* * @return The start and end time of the cost estimation. */ public CostEstimationTimeRange getTimeRange() { return this.timeRange; } /** ** The start and end time of the cost estimation. *
* * @param timeRange * The start and end time of the cost estimation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostEstimationResult withTimeRange(CostEstimationTimeRange timeRange) { setTimeRange(timeRange); return this; } /** *
* The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated
* costs to analyze each resource in the Costs
object in this response.
*
Costs
object in this response.
*/
public void setTotalCost(Double totalCost) {
this.totalCost = totalCost;
}
/**
*
* The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated
* costs to analyze each resource in the Costs
object in this response.
*
Costs
object in this response.
*/
public Double getTotalCost() {
return this.totalCost;
}
/**
*
* The estimated monthly cost to analyze the Amazon Web Services resources. This value is the sum of the estimated
* costs to analyze each resource in the Costs
object in this response.
*
Costs
object in this response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetCostEstimationResult withTotalCost(Double totalCost) {
setTotalCost(totalCost);
return this;
}
/**
* * The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, * this value is null. *
* * @param nextToken * The pagination token to use to retrieve the next page of results for this operation. If there are no more * pages, this value is null. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, * this value is null. *
* * @return The pagination token to use to retrieve the next page of results for this operation. If there are no more * pages, this value is null. */ public String getNextToken() { return this.nextToken; } /** ** The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, * this value is null. *
* * @param nextToken * The pagination token to use to retrieve the next page of results for this operation. If there are no more * pages, this value is null. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostEstimationResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceCollection() != null) sb.append("ResourceCollection: ").append(getResourceCollection()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCosts() != null) sb.append("Costs: ").append(getCosts()).append(","); if (getTimeRange() != null) sb.append("TimeRange: ").append(getTimeRange()).append(","); if (getTotalCost() != null) sb.append("TotalCost: ").append(getTotalCost()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetCostEstimationResult == false) return false; GetCostEstimationResult other = (GetCostEstimationResult) obj; if (other.getResourceCollection() == null ^ this.getResourceCollection() == null) return false; if (other.getResourceCollection() != null && other.getResourceCollection().equals(this.getResourceCollection()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCosts() == null ^ this.getCosts() == null) return false; if (other.getCosts() != null && other.getCosts().equals(this.getCosts()) == false) return false; if (other.getTimeRange() == null ^ this.getTimeRange() == null) return false; if (other.getTimeRange() != null && other.getTimeRange().equals(this.getTimeRange()) == false) return false; if (other.getTotalCost() == null ^ this.getTotalCost() == null) return false; if (other.getTotalCost() != null && other.getTotalCost().equals(this.getTotalCost()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceCollection() == null) ? 0 : getResourceCollection().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCosts() == null) ? 0 : getCosts().hashCode()); hashCode = prime * hashCode + ((getTimeRange() == null) ? 0 : getTimeRange().hashCode()); hashCode = prime * hashCode + ((getTotalCost() == null) ? 0 : getTotalCost().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public GetCostEstimationResult clone() { try { return (GetCostEstimationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }