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

com.amazonaws.services.costexplorer.model.GetReservationCoverageRequest 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;

/**
 * 

* You can use the following request parameters to query for how much of your instance usage a reservation covered. *

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

* The start and end dates of the period that you want to retrieve data about reservation coverage for. You can * retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, * but the end date is exclusive. For example, if start is 2017-01-01 and end * is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and * including 2017-04-30 but not including 2017-05-01. *

*/ private DateInterval timePeriod; /** *

* You can group the data by the following attributes: *

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DATABASE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * INVOICING_ENTITY *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*/ private java.util.List groupBy; /** *

* The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY * and DAILY. *

*

* If GroupBy is set, Granularity can't be set. If Granularity isn't set, the * response object doesn't include Granularity, either MONTHLY or DAILY. *

*

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

*/ private String granularity; /** *

* Filters utilization data by dimensions. You can filter by the following dimensions: *

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DATABASE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * TAG *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationCoverage uses the same Expression * object as the other operations, but only AND is supported among each dimension. You can nest only * one level deep. If there are multiple values for a dimension, they are OR'd together. *

*

* If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

*

* Cost category is also supported. *

*/ private Expression filter; /** *

* The measurement that you want your reservation coverage reported in. *

*

* Valid values are Hour, Unit, and Cost. You can use multiple values in a * request. *

*/ private java.util.List metrics; /** *

* The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a * previous call has more results than the maximum page size. *

*/ private String nextPageToken; /** *

* The value by which you want to sort the data. *

*

* The following values are supported for Key: *

*
    *
  • *

    * OnDemandCost *

    *
  • *
  • *

    * CoverageHoursPercentage *

    *
  • *
  • *

    * OnDemandHours *

    *
  • *
  • *

    * ReservedHours *

    *
  • *
  • *

    * TotalRunningHours *

    *
  • *
  • *

    * CoverageNormalizedUnitsPercentage *

    *
  • *
  • *

    * OnDemandNormalizedUnits *

    *
  • *
  • *

    * ReservedNormalizedUnits *

    *
  • *
  • *

    * TotalRunningNormalizedUnits *

    *
  • *
  • *

    * Time *

    *
  • *
*

* Supported values for SortOrder are ASCENDING or DESCENDING. *

*/ private SortDefinition sortBy; /** *

* The maximum number of objects that you returned for this request. If more objects are available, in the response, * Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of * objects. *

*/ private Integer maxResults; /** *

* The start and end dates of the period that you want to retrieve data about reservation coverage for. You can * retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, * but the end date is exclusive. For example, if start is 2017-01-01 and end * is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and * including 2017-04-30 but not including 2017-05-01. *

* * @param timePeriod * The start and end dates of the period that you want to retrieve data about reservation coverage for. You * can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is * inclusive, but the end date is exclusive. For example, if start is 2017-01-01 * and end is 2017-05-01, then the cost and usage data is retrieved from * 2017-01-01 up to and including 2017-04-30 but not including * 2017-05-01. */ public void setTimePeriod(DateInterval timePeriod) { this.timePeriod = timePeriod; } /** *

* The start and end dates of the period that you want to retrieve data about reservation coverage for. You can * retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, * but the end date is exclusive. For example, if start is 2017-01-01 and end * is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and * including 2017-04-30 but not including 2017-05-01. *

* * @return The start and end dates of the period that you want to retrieve data about reservation coverage for. You * can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is * inclusive, but the end date is exclusive. For example, if start is 2017-01-01 * and end is 2017-05-01, then the cost and usage data is retrieved from * 2017-01-01 up to and including 2017-04-30 but not including * 2017-05-01. */ public DateInterval getTimePeriod() { return this.timePeriod; } /** *

* The start and end dates of the period that you want to retrieve data about reservation coverage for. You can * retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, * but the end date is exclusive. For example, if start is 2017-01-01 and end * is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and * including 2017-04-30 but not including 2017-05-01. *

* * @param timePeriod * The start and end dates of the period that you want to retrieve data about reservation coverage for. You * can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is * inclusive, but the end date is exclusive. For example, if start is 2017-01-01 * and end is 2017-05-01, then the cost and usage data is retrieved from * 2017-01-01 up to and including 2017-04-30 but not including * 2017-05-01. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withTimePeriod(DateInterval timePeriod) { setTimePeriod(timePeriod); return this; } /** *

* You can group the data by the following attributes: *

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DATABASE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * INVOICING_ENTITY *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * TENANCY *

    *
  • *
* * @return You can group the data by the following attributes:

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DATABASE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * INVOICING_ENTITY *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * TENANCY *

    *
  • */ public java.util.List getGroupBy() { return groupBy; } /** *

    * You can group the data by the following attributes: *

    *
      *
    • *

      * AZ *

      *
    • *
    • *

      * CACHE_ENGINE *

      *
    • *
    • *

      * DATABASE_ENGINE *

      *
    • *
    • *

      * DEPLOYMENT_OPTION *

      *
    • *
    • *

      * INSTANCE_TYPE *

      *
    • *
    • *

      * INVOICING_ENTITY *

      *
    • *
    • *

      * LINKED_ACCOUNT *

      *
    • *
    • *

      * OPERATING_SYSTEM *

      *
    • *
    • *

      * PLATFORM *

      *
    • *
    • *

      * REGION *

      *
    • *
    • *

      * TENANCY *

      *
    • *
    * * @param groupBy * You can group the data by the following attributes:

    *
      *
    • *

      * AZ *

      *
    • *
    • *

      * CACHE_ENGINE *

      *
    • *
    • *

      * DATABASE_ENGINE *

      *
    • *
    • *

      * DEPLOYMENT_OPTION *

      *
    • *
    • *

      * INSTANCE_TYPE *

      *
    • *
    • *

      * INVOICING_ENTITY *

      *
    • *
    • *

      * LINKED_ACCOUNT *

      *
    • *
    • *

      * OPERATING_SYSTEM *

      *
    • *
    • *

      * PLATFORM *

      *
    • *
    • *

      * REGION *

      *
    • *
    • *

      * TENANCY *

      *
    • */ public void setGroupBy(java.util.Collection groupBy) { if (groupBy == null) { this.groupBy = null; return; } this.groupBy = new java.util.ArrayList(groupBy); } /** *

      * You can group the data by the following attributes: *

      *
        *
      • *

        * AZ *

        *
      • *
      • *

        * CACHE_ENGINE *

        *
      • *
      • *

        * DATABASE_ENGINE *

        *
      • *
      • *

        * DEPLOYMENT_OPTION *

        *
      • *
      • *

        * INSTANCE_TYPE *

        *
      • *
      • *

        * INVOICING_ENTITY *

        *
      • *
      • *

        * LINKED_ACCOUNT *

        *
      • *
      • *

        * OPERATING_SYSTEM *

        *
      • *
      • *

        * PLATFORM *

        *
      • *
      • *

        * REGION *

        *
      • *
      • *

        * TENANCY *

        *
      • *
      *

      * NOTE: This method appends the values to the existing list (if any). Use * {@link #setGroupBy(java.util.Collection)} or {@link #withGroupBy(java.util.Collection)} if you want to override * the existing values. *

      * * @param groupBy * You can group the data by the following attributes:

      *
        *
      • *

        * AZ *

        *
      • *
      • *

        * CACHE_ENGINE *

        *
      • *
      • *

        * DATABASE_ENGINE *

        *
      • *
      • *

        * DEPLOYMENT_OPTION *

        *
      • *
      • *

        * INSTANCE_TYPE *

        *
      • *
      • *

        * INVOICING_ENTITY *

        *
      • *
      • *

        * LINKED_ACCOUNT *

        *
      • *
      • *

        * OPERATING_SYSTEM *

        *
      • *
      • *

        * PLATFORM *

        *
      • *
      • *

        * REGION *

        *
      • *
      • *

        * TENANCY *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withGroupBy(GroupDefinition... groupBy) { if (this.groupBy == null) { setGroupBy(new java.util.ArrayList(groupBy.length)); } for (GroupDefinition ele : groupBy) { this.groupBy.add(ele); } return this; } /** *

        * You can group the data by the following attributes: *

        *
          *
        • *

          * AZ *

          *
        • *
        • *

          * CACHE_ENGINE *

          *
        • *
        • *

          * DATABASE_ENGINE *

          *
        • *
        • *

          * DEPLOYMENT_OPTION *

          *
        • *
        • *

          * INSTANCE_TYPE *

          *
        • *
        • *

          * INVOICING_ENTITY *

          *
        • *
        • *

          * LINKED_ACCOUNT *

          *
        • *
        • *

          * OPERATING_SYSTEM *

          *
        • *
        • *

          * PLATFORM *

          *
        • *
        • *

          * REGION *

          *
        • *
        • *

          * TENANCY *

          *
        • *
        * * @param groupBy * You can group the data by the following attributes:

        *
          *
        • *

          * AZ *

          *
        • *
        • *

          * CACHE_ENGINE *

          *
        • *
        • *

          * DATABASE_ENGINE *

          *
        • *
        • *

          * DEPLOYMENT_OPTION *

          *
        • *
        • *

          * INSTANCE_TYPE *

          *
        • *
        • *

          * INVOICING_ENTITY *

          *
        • *
        • *

          * LINKED_ACCOUNT *

          *
        • *
        • *

          * OPERATING_SYSTEM *

          *
        • *
        • *

          * PLATFORM *

          *
        • *
        • *

          * REGION *

          *
        • *
        • *

          * TENANCY *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withGroupBy(java.util.Collection groupBy) { setGroupBy(groupBy); return this; } /** *

          * The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY * and DAILY. *

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't set, the * response object doesn't include Granularity, either MONTHLY or DAILY. *

          *

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

          * * @param granularity * The granularity of the Amazon Web Services cost data for the reservation. Valid values are * MONTHLY and DAILY.

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't * set, the response object doesn't include Granularity, either MONTHLY or * DAILY. *

          *

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

          * The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY * and DAILY. *

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't set, the * response object doesn't include Granularity, either MONTHLY or DAILY. *

          *

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

          * * @return The granularity of the Amazon Web Services cost data for the reservation. Valid values are * MONTHLY and DAILY.

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't * set, the response object doesn't include Granularity, either MONTHLY or * DAILY. *

          *

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

          * The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY * and DAILY. *

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't set, the * response object doesn't include Granularity, either MONTHLY or DAILY. *

          *

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

          * * @param granularity * The granularity of the Amazon Web Services cost data for the reservation. Valid values are * MONTHLY and DAILY.

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't * set, the response object doesn't include Granularity, either MONTHLY or * DAILY. *

          *

          * The GetReservationCoverage 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 GetReservationCoverageRequest withGranularity(String granularity) { setGranularity(granularity); return this; } /** *

          * The granularity of the Amazon Web Services cost data for the reservation. Valid values are MONTHLY * and DAILY. *

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't set, the * response object doesn't include Granularity, either MONTHLY or DAILY. *

          *

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

          * * @param granularity * The granularity of the Amazon Web Services cost data for the reservation. Valid values are * MONTHLY and DAILY.

          *

          * If GroupBy is set, Granularity can't be set. If Granularity isn't * set, the response object doesn't include Granularity, either MONTHLY or * DAILY. *

          *

          * The GetReservationCoverage 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 GetReservationCoverageRequest withGranularity(Granularity granularity) { this.granularity = granularity.toString(); return this; } /** *

          * Filters utilization data by dimensions. You can filter by the following dimensions: *

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression * object as the other operations, but only AND is supported among each dimension. You can nest only * one level deep. If there are multiple values for a dimension, they are OR'd together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. *

          * * @param filter * Filters utilization data by dimensions. You can filter by the following dimensions:

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each * dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd * together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. */ public void setFilter(Expression filter) { this.filter = filter; } /** *

          * Filters utilization data by dimensions. You can filter by the following dimensions: *

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression * object as the other operations, but only AND is supported among each dimension. You can nest only * one level deep. If there are multiple values for a dimension, they are OR'd together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. *

          * * @return Filters utilization data by dimensions. You can filter by the following dimensions:

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each * dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd * together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. */ public Expression getFilter() { return this.filter; } /** *

          * Filters utilization data by dimensions. You can filter by the following dimensions: *

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression * object as the other operations, but only AND is supported among each dimension. You can nest only * one level deep. If there are multiple values for a dimension, they are OR'd together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. *

          * * @param filter * Filters utilization data by dimensions. You can filter by the following dimensions:

          *
            *
          • *

            * AZ *

            *
          • *
          • *

            * CACHE_ENGINE *

            *
          • *
          • *

            * DATABASE_ENGINE *

            *
          • *
          • *

            * DEPLOYMENT_OPTION *

            *
          • *
          • *

            * INSTANCE_TYPE *

            *
          • *
          • *

            * LINKED_ACCOUNT *

            *
          • *
          • *

            * OPERATING_SYSTEM *

            *
          • *
          • *

            * PLATFORM *

            *
          • *
          • *

            * REGION *

            *
          • *
          • *

            * SERVICE *

            *
          • *
          • *

            * TAG *

            *
          • *
          • *

            * TENANCY *

            *
          • *
          *

          * GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each * dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd * together. *

          *

          * If you don't provide a SERVICE filter, Cost Explorer defaults to EC2. *

          *

          * Cost category is also supported. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withFilter(Expression filter) { setFilter(filter); return this; } /** *

          * The measurement that you want your reservation coverage reported in. *

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values in a * request. *

          * * @return The measurement that you want your reservation coverage reported in.

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values * in a request. */ public java.util.List getMetrics() { return metrics; } /** *

          * The measurement that you want your reservation coverage reported in. *

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values in a * request. *

          * * @param metrics * The measurement that you want your reservation coverage reported in.

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values * in a request. */ public void setMetrics(java.util.Collection metrics) { if (metrics == null) { this.metrics = null; return; } this.metrics = new java.util.ArrayList(metrics); } /** *

          * The measurement that you want your reservation coverage reported in. *

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values in a * request. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetrics(java.util.Collection)} or {@link #withMetrics(java.util.Collection)} if you want to override * the existing values. *

          * * @param metrics * The measurement that you want your reservation coverage reported in.

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values * in a request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withMetrics(String... metrics) { if (this.metrics == null) { setMetrics(new java.util.ArrayList(metrics.length)); } for (String ele : metrics) { this.metrics.add(ele); } return this; } /** *

          * The measurement that you want your reservation coverage reported in. *

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values in a * request. *

          * * @param metrics * The measurement that you want your reservation coverage reported in.

          *

          * Valid values are Hour, Unit, and Cost. You can use multiple values * in a request. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withMetrics(java.util.Collection metrics) { setMetrics(metrics); return this; } /** *

          * The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a * previous call has more results than the maximum page size. *

          * * @param nextPageToken * The token to retrieve the next set of results. Amazon Web Services provides the token when the response * from a previous call has more results than the maximum page size. */ public void setNextPageToken(String nextPageToken) { this.nextPageToken = nextPageToken; } /** *

          * The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a * previous call has more results than the maximum page size. *

          * * @return The token to retrieve the next set of results. Amazon Web Services provides the token when the response * from a previous call has more results than the maximum page size. */ public String getNextPageToken() { return this.nextPageToken; } /** *

          * The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a * previous call has more results than the maximum page size. *

          * * @param nextPageToken * The token to retrieve the next set of results. Amazon Web Services provides the token when the response * from a previous call has more results than the maximum page size. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withNextPageToken(String nextPageToken) { setNextPageToken(nextPageToken); return this; } /** *

          * The value by which you want to sort the data. *

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. *

          * * @param sortBy * The value by which you want to sort the data.

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. */ public void setSortBy(SortDefinition sortBy) { this.sortBy = sortBy; } /** *

          * The value by which you want to sort the data. *

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. *

          * * @return The value by which you want to sort the data.

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. */ public SortDefinition getSortBy() { return this.sortBy; } /** *

          * The value by which you want to sort the data. *

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. *

          * * @param sortBy * The value by which you want to sort the data.

          *

          * The following values are supported for Key: *

          *
            *
          • *

            * OnDemandCost *

            *
          • *
          • *

            * CoverageHoursPercentage *

            *
          • *
          • *

            * OnDemandHours *

            *
          • *
          • *

            * ReservedHours *

            *
          • *
          • *

            * TotalRunningHours *

            *
          • *
          • *

            * CoverageNormalizedUnitsPercentage *

            *
          • *
          • *

            * OnDemandNormalizedUnits *

            *
          • *
          • *

            * ReservedNormalizedUnits *

            *
          • *
          • *

            * TotalRunningNormalizedUnits *

            *
          • *
          • *

            * Time *

            *
          • *
          *

          * Supported values for SortOrder are ASCENDING or DESCENDING. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withSortBy(SortDefinition sortBy) { setSortBy(sortBy); return this; } /** *

          * The maximum number of objects that you returned for this request. If more objects are available, in the response, * Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of * objects. *

          * * @param maxResults * The maximum number of objects that you returned for this request. If more objects are available, in the * response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get * the next batch of objects. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

          * The maximum number of objects that you returned for this request. If more objects are available, in the response, * Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of * objects. *

          * * @return The maximum number of objects that you returned for this request. If more objects are available, in the * response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get * the next batch of objects. */ public Integer getMaxResults() { return this.maxResults; } /** *

          * The maximum number of objects that you returned for this request. If more objects are available, in the response, * Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get the next batch of * objects. *

          * * @param maxResults * The maximum number of objects that you returned for this request. If more objects are available, in the * response, Amazon Web Services provides a NextPageToken value that you can use in a subsequent call to get * the next batch of objects. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationCoverageRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); 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 (getGroupBy() != null) sb.append("GroupBy: ").append(getGroupBy()).append(","); if (getGranularity() != null) sb.append("Granularity: ").append(getGranularity()).append(","); if (getFilter() != null) sb.append("Filter: ").append(getFilter()).append(","); if (getMetrics() != null) sb.append("Metrics: ").append(getMetrics()).append(","); if (getNextPageToken() != null) sb.append("NextPageToken: ").append(getNextPageToken()).append(","); if (getSortBy() != null) sb.append("SortBy: ").append(getSortBy()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetReservationCoverageRequest == false) return false; GetReservationCoverageRequest other = (GetReservationCoverageRequest) obj; if (other.getTimePeriod() == null ^ this.getTimePeriod() == null) return false; if (other.getTimePeriod() != null && other.getTimePeriod().equals(this.getTimePeriod()) == false) return false; if (other.getGroupBy() == null ^ this.getGroupBy() == null) return false; if (other.getGroupBy() != null && other.getGroupBy().equals(this.getGroupBy()) == 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.getMetrics() == null ^ this.getMetrics() == null) return false; if (other.getMetrics() != null && other.getMetrics().equals(this.getMetrics()) == false) return false; if (other.getNextPageToken() == null ^ this.getNextPageToken() == null) return false; if (other.getNextPageToken() != null && other.getNextPageToken().equals(this.getNextPageToken()) == false) return false; if (other.getSortBy() == null ^ this.getSortBy() == null) return false; if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 + ((getGroupBy() == null) ? 0 : getGroupBy().hashCode()); hashCode = prime * hashCode + ((getGranularity() == null) ? 0 : getGranularity().hashCode()); hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); hashCode = prime * hashCode + ((getMetrics() == null) ? 0 : getMetrics().hashCode()); hashCode = prime * hashCode + ((getNextPageToken() == null) ? 0 : getNextPageToken().hashCode()); hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetReservationCoverageRequest clone() { return (GetReservationCoverageRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy