/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes the estimated cost for resources in your Lightsail for Research account. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CostEstimate implements Serializable, Cloneable, StructuredPojo { /** ** The types of usage that are included in the estimate, such as costs, usage, or data transfer. *
*/ private String usageType; /** ** The cost estimate result that's associated with a time period. *
*/ private java.util.List* The types of usage that are included in the estimate, such as costs, usage, or data transfer. *
* * @param usageType * The types of usage that are included in the estimate, such as costs, usage, or data transfer. */ public void setUsageType(String usageType) { this.usageType = usageType; } /** ** The types of usage that are included in the estimate, such as costs, usage, or data transfer. *
* * @return The types of usage that are included in the estimate, such as costs, usage, or data transfer. */ public String getUsageType() { return this.usageType; } /** ** The types of usage that are included in the estimate, such as costs, usage, or data transfer. *
* * @param usageType * The types of usage that are included in the estimate, such as costs, usage, or data transfer. * @return Returns a reference to this object so that method calls can be chained together. */ public CostEstimate withUsageType(String usageType) { setUsageType(usageType); return this; } /** ** The cost estimate result that's associated with a time period. *
* * @return The cost estimate result that's associated with a time period. */ public java.util.List* The cost estimate result that's associated with a time period. *
* * @param resultsByTime * The cost estimate result that's associated with a time period. */ public void setResultsByTime(java.util.Collection* The cost estimate result that's associated with a time period. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResultsByTime(java.util.Collection)} or {@link #withResultsByTime(java.util.Collection)} if you want * to override the existing values. *
* * @param resultsByTime * The cost estimate result that's associated with a time period. * @return Returns a reference to this object so that method calls can be chained together. */ public CostEstimate withResultsByTime(EstimateByTime... resultsByTime) { if (this.resultsByTime == null) { setResultsByTime(new java.util.ArrayList* The cost estimate result that's associated with a time period. *
* * @param resultsByTime * The cost estimate result that's associated with a time period. * @return Returns a reference to this object so that method calls can be chained together. */ public CostEstimate withResultsByTime(java.util.Collection