All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.costexplorer.model.GetCostForecastRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Cost Explorer module holds the client classes that are used for communicating with AWS Cost Explorer Service

The newest version!
/*
 * Copyright 2020-2025 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.costexplorer.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetCostForecastRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The period of time that you want the forecast to cover. The start date must be equal to or no later than the * current date to avoid a validation error. *

*/ private DateInterval timePeriod; /** *

* Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, * see Why does the "blended" * annotation appear on some line items in my bill?. *

*

* Valid values for a GetCostForecast call are the following: *

*
    *
  • *

    * AMORTIZED_COST *

    *
  • *
  • *

    * BLENDED_COST *

    *
  • *
  • *

    * NET_AMORTIZED_COST *

    *
  • *
  • *

    * NET_UNBLENDED_COST *

    *
  • *
  • *

    * UNBLENDED_COST *

    *
  • *
*/ private String metric; /** *

* How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of * MONTHLY forecasts. *

*

* The GetCostForecast operation supports only DAILY and MONTHLY * granularities. *

*/ private String granularity; /** *

* The filters that you want to use to filter your forecast. The GetCostForecast API supports filtering * by the following dimensions: *

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * LINKED_ACCOUNT_NAME *

    *
  • *
  • *

    * OPERATION *

    *
  • *
  • *

    * PURCHASE_TYPE *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * USAGE_TYPE *

    *
  • *
  • *

    * USAGE_TYPE_GROUP *

    *
  • *
  • *

    * RECORD_TYPE *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * TENANCY *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * SUBSCRIPTION_ID *

    *
  • *
  • *

    * LEGAL_ENTITY_NAME *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * DATABASE_ENGINE *

    *
  • *
  • *

    * INSTANCE_TYPE_FAMILY *

    *
  • *
  • *

    * BILLING_ENTITY *

    *
  • *
  • *

    * RESERVATION_ID *

    *
  • *
  • *

    * SAVINGS_PLAN_ARN *

    *
  • *
*/ private Expression filter; /** *

* Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around * the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is * about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction * intervals. *

*/ private Integer predictionIntervalLevel; /** *

* The period of time that you want the forecast to cover. The start date must be equal to or no later than the * current date to avoid a validation error. *

* * @param timePeriod * The period of time that you want the forecast to cover. The start date must be equal to or no later than * the current date to avoid a validation error. */ public void setTimePeriod(DateInterval timePeriod) { this.timePeriod = timePeriod; } /** *

* The period of time that you want the forecast to cover. The start date must be equal to or no later than the * current date to avoid a validation error. *

* * @return The period of time that you want the forecast to cover. The start date must be equal to or no later than * the current date to avoid a validation error. */ public DateInterval getTimePeriod() { return this.timePeriod; } /** *

* The period of time that you want the forecast to cover. The start date must be equal to or no later than the * current date to avoid a validation error. *

* * @param timePeriod * The period of time that you want the forecast to cover. The start date must be equal to or no later than * the current date to avoid a validation error. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostForecastRequest withTimePeriod(DateInterval timePeriod) { setTimePeriod(timePeriod); return this; } /** *

* Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, * see Why does the "blended" * annotation appear on some line items in my bill?. *

*

* Valid values for a GetCostForecast call are the following: *

*
    *
  • *

    * AMORTIZED_COST *

    *
  • *
  • *

    * BLENDED_COST *

    *
  • *
  • *

    * NET_AMORTIZED_COST *

    *
  • *
  • *

    * NET_UNBLENDED_COST *

    *
  • *
  • *

    * UNBLENDED_COST *

    *
  • *
* * @param metric * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended * rates, see Why does * the "blended" annotation appear on some line items in my bill?.

*

* Valid values for a GetCostForecast call are the following: *

*
    *
  • *

    * AMORTIZED_COST *

    *
  • *
  • *

    * BLENDED_COST *

    *
  • *
  • *

    * NET_AMORTIZED_COST *

    *
  • *
  • *

    * NET_UNBLENDED_COST *

    *
  • *
  • *

    * UNBLENDED_COST *

    *
  • * @see Metric */ public void setMetric(String metric) { this.metric = metric; } /** *

    * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, * see Why does the "blended" * annotation appear on some line items in my bill?. *

    *

    * Valid values for a GetCostForecast call are the following: *

    *
      *
    • *

      * AMORTIZED_COST *

      *
    • *
    • *

      * BLENDED_COST *

      *
    • *
    • *

      * NET_AMORTIZED_COST *

      *
    • *
    • *

      * NET_UNBLENDED_COST *

      *
    • *
    • *

      * UNBLENDED_COST *

      *
    • *
    * * @return Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended * rates, see Why does * the "blended" annotation appear on some line items in my bill?.

    *

    * Valid values for a GetCostForecast call are the following: *

    *
      *
    • *

      * AMORTIZED_COST *

      *
    • *
    • *

      * BLENDED_COST *

      *
    • *
    • *

      * NET_AMORTIZED_COST *

      *
    • *
    • *

      * NET_UNBLENDED_COST *

      *
    • *
    • *

      * UNBLENDED_COST *

      *
    • * @see Metric */ public String getMetric() { return this.metric; } /** *

      * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, * see Why does the "blended" * annotation appear on some line items in my bill?. *

      *

      * Valid values for a GetCostForecast call are the following: *

      *
        *
      • *

        * AMORTIZED_COST *

        *
      • *
      • *

        * BLENDED_COST *

        *
      • *
      • *

        * NET_AMORTIZED_COST *

        *
      • *
      • *

        * NET_UNBLENDED_COST *

        *
      • *
      • *

        * UNBLENDED_COST *

        *
      • *
      * * @param metric * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended * rates, see Why does * the "blended" annotation appear on some line items in my bill?.

      *

      * Valid values for a GetCostForecast call are the following: *

      *
        *
      • *

        * AMORTIZED_COST *

        *
      • *
      • *

        * BLENDED_COST *

        *
      • *
      • *

        * NET_AMORTIZED_COST *

        *
      • *
      • *

        * NET_UNBLENDED_COST *

        *
      • *
      • *

        * UNBLENDED_COST *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see Metric */ public GetCostForecastRequest withMetric(String metric) { setMetric(metric); return this; } /** *

        * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, * see Why does the "blended" * annotation appear on some line items in my bill?. *

        *

        * Valid values for a GetCostForecast call are the following: *

        *
          *
        • *

          * AMORTIZED_COST *

          *
        • *
        • *

          * BLENDED_COST *

          *
        • *
        • *

          * NET_AMORTIZED_COST *

          *
        • *
        • *

          * NET_UNBLENDED_COST *

          *
        • *
        • *

          * UNBLENDED_COST *

          *
        • *
        * * @param metric * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended * rates, see Why does * the "blended" annotation appear on some line items in my bill?.

        *

        * Valid values for a GetCostForecast call are the following: *

        *
          *
        • *

          * AMORTIZED_COST *

          *
        • *
        • *

          * BLENDED_COST *

          *
        • *
        • *

          * NET_AMORTIZED_COST *

          *
        • *
        • *

          * NET_UNBLENDED_COST *

          *
        • *
        • *

          * UNBLENDED_COST *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see Metric */ public GetCostForecastRequest withMetric(Metric metric) { this.metric = metric.toString(); return this; } /** *

          * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of * MONTHLY forecasts. *

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. *

          * * @param granularity * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 * months of MONTHLY forecasts.

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. * @see Granularity */ public void setGranularity(String granularity) { this.granularity = granularity; } /** *

          * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of * MONTHLY forecasts. *

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. *

          * * @return How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 * months of MONTHLY forecasts.

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. * @see Granularity */ public String getGranularity() { return this.granularity; } /** *

          * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of * MONTHLY forecasts. *

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. *

          * * @param granularity * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 * months of MONTHLY forecasts.

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. * @return Returns a reference to this object so that method calls can be chained together. * @see Granularity */ public GetCostForecastRequest withGranularity(String granularity) { setGranularity(granularity); return this; } /** *

          * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of * MONTHLY forecasts. *

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. *

          * * @param granularity * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 * months of MONTHLY forecasts.

          *

          * The GetCostForecast operation supports only DAILY and MONTHLY * granularities. * @return Returns a reference to this object so that method calls can be chained together. * @see Granularity */ public GetCostForecastRequest withGranularity(Granularity granularity) { this.granularity = granularity.toString(); return this; } /** *

          * The filters that you want to use to filter your forecast. The GetCostForecast API supports filtering * by the following dimensions: *

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * LINKED_ACCOUNT_NAME *

            *
          • *
          • *

            * OPERATION *

            *
          • *
          • *

            * PURCHASE_TYPE *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * USAGE_TYPE *

            *
          • *
          • *

            * USAGE_TYPE_GROUP *

            *
          • *
          • *

            * RECORD_TYPE *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          • *

            * SCOPE *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * SUBSCRIPTION_ID *

            *
          • *
          • *

            * LEGAL_ENTITY_NAME *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * INSTANCE_TYPE_FAMILY *

            *
          • *
          • *

            * BILLING_ENTITY *

            *
          • *
          • *

            * RESERVATION_ID *

            *
          • *
          • *

            * SAVINGS_PLAN_ARN *

            *
          • *
          * * @param filter * The filters that you want to use to filter your forecast. The GetCostForecast API supports * filtering by the following dimensions:

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * LINKED_ACCOUNT_NAME *

            *
          • *
          • *

            * OPERATION *

            *
          • *
          • *

            * PURCHASE_TYPE *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * USAGE_TYPE *

            *
          • *
          • *

            * USAGE_TYPE_GROUP *

            *
          • *
          • *

            * RECORD_TYPE *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          • *

            * SCOPE *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * SUBSCRIPTION_ID *

            *
          • *
          • *

            * LEGAL_ENTITY_NAME *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * INSTANCE_TYPE_FAMILY *

            *
          • *
          • *

            * BILLING_ENTITY *

            *
          • *
          • *

            * RESERVATION_ID *

            *
          • *
          • *

            * SAVINGS_PLAN_ARN *

            *
          • */ public void setFilter(Expression filter) { this.filter = filter; } /** *

            * The filters that you want to use to filter your forecast. The GetCostForecast API supports filtering * by the following dimensions: *

            *
              *
            • *

              * AZ *

              *
            • *
            • *

              * INSTANCE_TYPE *

              *
            • *
            • *

              * LINKED_ACCOUNT *

              *
            • *
            • *

              * LINKED_ACCOUNT_NAME *

              *
            • *
            • *

              * OPERATION *

              *
            • *
            • *

              * PURCHASE_TYPE *

              *
            • *
            • *

              * REGION *

              *
            • *
            • *

              * SERVICE *

              *
            • *
            • *

              * USAGE_TYPE *

              *
            • *
            • *

              * USAGE_TYPE_GROUP *

              *
            • *
            • *

              * RECORD_TYPE *

              *
            • *
            • *

              * OPERATING_SYSTEM *

              *
            • *
            • *

              * TENANCY *

              *
            • *
            • *

              * SCOPE *

              *
            • *
            • *

              * PLATFORM *

              *
            • *
            • *

              * SUBSCRIPTION_ID *

              *
            • *
            • *

              * LEGAL_ENTITY_NAME *

              *
            • *
            • *

              * DEPLOYMENT_OPTION *

              *
            • *
            • *

              * DATABASE_ENGINE *

              *
            • *
            • *

              * INSTANCE_TYPE_FAMILY *

              *
            • *
            • *

              * BILLING_ENTITY *

              *
            • *
            • *

              * RESERVATION_ID *

              *
            • *
            • *

              * SAVINGS_PLAN_ARN *

              *
            • *
            * * @return The filters that you want to use to filter your forecast. The GetCostForecast API supports * filtering by the following dimensions:

            *
              *
            • *

              * AZ *

              *
            • *
            • *

              * INSTANCE_TYPE *

              *
            • *
            • *

              * LINKED_ACCOUNT *

              *
            • *
            • *

              * LINKED_ACCOUNT_NAME *

              *
            • *
            • *

              * OPERATION *

              *
            • *
            • *

              * PURCHASE_TYPE *

              *
            • *
            • *

              * REGION *

              *
            • *
            • *

              * SERVICE *

              *
            • *
            • *

              * USAGE_TYPE *

              *
            • *
            • *

              * USAGE_TYPE_GROUP *

              *
            • *
            • *

              * RECORD_TYPE *

              *
            • *
            • *

              * OPERATING_SYSTEM *

              *
            • *
            • *

              * TENANCY *

              *
            • *
            • *

              * SCOPE *

              *
            • *
            • *

              * PLATFORM *

              *
            • *
            • *

              * SUBSCRIPTION_ID *

              *
            • *
            • *

              * LEGAL_ENTITY_NAME *

              *
            • *
            • *

              * DEPLOYMENT_OPTION *

              *
            • *
            • *

              * DATABASE_ENGINE *

              *
            • *
            • *

              * INSTANCE_TYPE_FAMILY *

              *
            • *
            • *

              * BILLING_ENTITY *

              *
            • *
            • *

              * RESERVATION_ID *

              *
            • *
            • *

              * SAVINGS_PLAN_ARN *

              *
            • */ public Expression getFilter() { return this.filter; } /** *

              * The filters that you want to use to filter your forecast. The GetCostForecast API supports filtering * by the following dimensions: *

              *
                *
              • *

                * AZ *

                *
              • *
              • *

                * INSTANCE_TYPE *

                *
              • *
              • *

                * LINKED_ACCOUNT *

                *
              • *
              • *

                * LINKED_ACCOUNT_NAME *

                *
              • *
              • *

                * OPERATION *

                *
              • *
              • *

                * PURCHASE_TYPE *

                *
              • *
              • *

                * REGION *

                *
              • *
              • *

                * SERVICE *

                *
              • *
              • *

                * USAGE_TYPE *

                *
              • *
              • *

                * USAGE_TYPE_GROUP *

                *
              • *
              • *

                * RECORD_TYPE *

                *
              • *
              • *

                * OPERATING_SYSTEM *

                *
              • *
              • *

                * TENANCY *

                *
              • *
              • *

                * SCOPE *

                *
              • *
              • *

                * PLATFORM *

                *
              • *
              • *

                * SUBSCRIPTION_ID *

                *
              • *
              • *

                * LEGAL_ENTITY_NAME *

                *
              • *
              • *

                * DEPLOYMENT_OPTION *

                *
              • *
              • *

                * DATABASE_ENGINE *

                *
              • *
              • *

                * INSTANCE_TYPE_FAMILY *

                *
              • *
              • *

                * BILLING_ENTITY *

                *
              • *
              • *

                * RESERVATION_ID *

                *
              • *
              • *

                * SAVINGS_PLAN_ARN *

                *
              • *
              * * @param filter * The filters that you want to use to filter your forecast. The GetCostForecast API supports * filtering by the following dimensions:

              *
                *
              • *

                * AZ *

                *
              • *
              • *

                * INSTANCE_TYPE *

                *
              • *
              • *

                * LINKED_ACCOUNT *

                *
              • *
              • *

                * LINKED_ACCOUNT_NAME *

                *
              • *
              • *

                * OPERATION *

                *
              • *
              • *

                * PURCHASE_TYPE *

                *
              • *
              • *

                * REGION *

                *
              • *
              • *

                * SERVICE *

                *
              • *
              • *

                * USAGE_TYPE *

                *
              • *
              • *

                * USAGE_TYPE_GROUP *

                *
              • *
              • *

                * RECORD_TYPE *

                *
              • *
              • *

                * OPERATING_SYSTEM *

                *
              • *
              • *

                * TENANCY *

                *
              • *
              • *

                * SCOPE *

                *
              • *
              • *

                * PLATFORM *

                *
              • *
              • *

                * SUBSCRIPTION_ID *

                *
              • *
              • *

                * LEGAL_ENTITY_NAME *

                *
              • *
              • *

                * DEPLOYMENT_OPTION *

                *
              • *
              • *

                * DATABASE_ENGINE *

                *
              • *
              • *

                * INSTANCE_TYPE_FAMILY *

                *
              • *
              • *

                * BILLING_ENTITY *

                *
              • *
              • *

                * RESERVATION_ID *

                *
              • *
              • *

                * SAVINGS_PLAN_ARN *

                *
              • * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostForecastRequest withFilter(Expression filter) { setFilter(filter); return this; } /** *

                * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around * the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is * about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction * intervals. *

                * * @param predictionIntervalLevel * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval * around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost * Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in * wider prediction intervals. */ public void setPredictionIntervalLevel(Integer predictionIntervalLevel) { this.predictionIntervalLevel = predictionIntervalLevel; } /** *

                * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around * the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is * about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction * intervals. *

                * * @return Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval * around the mean by specifying a confidence level. The higher the confidence level, the more confident * Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels * result in wider prediction intervals. */ public Integer getPredictionIntervalLevel() { return this.predictionIntervalLevel; } /** *

                * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around * the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is * about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction * intervals. *

                * * @param predictionIntervalLevel * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval * around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost * Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in * wider prediction intervals. * @return Returns a reference to this object so that method calls can be chained together. */ public GetCostForecastRequest withPredictionIntervalLevel(Integer predictionIntervalLevel) { setPredictionIntervalLevel(predictionIntervalLevel); 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 (getTimePeriod() != null) sb.append("TimePeriod: ").append(getTimePeriod()).append(","); if (getMetric() != null) sb.append("Metric: ").append(getMetric()).append(","); if (getGranularity() != null) sb.append("Granularity: ").append(getGranularity()).append(","); if (getFilter() != null) sb.append("Filter: ").append(getFilter()).append(","); if (getPredictionIntervalLevel() != null) sb.append("PredictionIntervalLevel: ").append(getPredictionIntervalLevel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetCostForecastRequest == false) return false; GetCostForecastRequest other = (GetCostForecastRequest) obj; if (other.getTimePeriod() == null ^ this.getTimePeriod() == null) return false; if (other.getTimePeriod() != null && other.getTimePeriod().equals(this.getTimePeriod()) == false) return false; if (other.getMetric() == null ^ this.getMetric() == null) return false; if (other.getMetric() != null && other.getMetric().equals(this.getMetric()) == false) return false; if (other.getGranularity() == null ^ this.getGranularity() == null) return false; if (other.getGranularity() != null && other.getGranularity().equals(this.getGranularity()) == false) return false; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == false) return false; if (other.getPredictionIntervalLevel() == null ^ this.getPredictionIntervalLevel() == null) return false; if (other.getPredictionIntervalLevel() != null && other.getPredictionIntervalLevel().equals(this.getPredictionIntervalLevel()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTimePeriod() == null) ? 0 : getTimePeriod().hashCode()); hashCode = prime * hashCode + ((getMetric() == null) ? 0 : getMetric().hashCode()); hashCode = prime * hashCode + ((getGranularity() == null) ? 0 : getGranularity().hashCode()); hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); hashCode = prime * hashCode + ((getPredictionIntervalLevel() == null) ? 0 : getPredictionIntervalLevel().hashCode()); return hashCode; } @Override public GetCostForecastRequest clone() { return (GetCostForecastRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy