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

com.amazonaws.services.costexplorer.model.GetReservationUtilizationRequest 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 GetReservationUtilizationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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; /** *

* Groups only by SUBSCRIPTION_ID. Metadata is included. *

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

* 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. If * both GroupBy and Granularity aren't set, GetReservationUtilization * defaults to DAILY. *

*

* The GetReservationUtilization 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 *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression * object as the other operations, but only AND is supported among each dimension, and nesting is * supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together. *

*/ private Expression filter; /** *

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

* The supported values for SortOrder are ASCENDING and DESCENDING. *

*/ private SortDefinition sortBy; /** *

* 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 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; /** *

* Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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 * Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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; } /** *

* Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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 Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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; } /** *

* Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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 * Sets the start and end dates for retrieving Reserved Instance (RI) utilization. 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 GetReservationUtilizationRequest withTimePeriod(DateInterval timePeriod) { setTimePeriod(timePeriod); return this; } /** *

* Groups only by SUBSCRIPTION_ID. Metadata is included. *

* * @return Groups only by SUBSCRIPTION_ID. Metadata is included. */ public java.util.List getGroupBy() { return groupBy; } /** *

* Groups only by SUBSCRIPTION_ID. Metadata is included. *

* * @param groupBy * Groups only by SUBSCRIPTION_ID. Metadata is included. */ public void setGroupBy(java.util.Collection groupBy) { if (groupBy == null) { this.groupBy = null; return; } this.groupBy = new java.util.ArrayList(groupBy); } /** *

* Groups only by SUBSCRIPTION_ID. Metadata is included. *

*

* 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 * Groups only by SUBSCRIPTION_ID. Metadata is included. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationUtilizationRequest withGroupBy(GroupDefinition... groupBy) { if (this.groupBy == null) { setGroupBy(new java.util.ArrayList(groupBy.length)); } for (GroupDefinition ele : groupBy) { this.groupBy.add(ele); } return this; } /** *

* Groups only by SUBSCRIPTION_ID. Metadata is included. *

* * @param groupBy * Groups only by SUBSCRIPTION_ID. Metadata is included. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationUtilizationRequest withGroupBy(java.util.Collection groupBy) { setGroupBy(groupBy); return this; } /** *

* 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. If * both GroupBy and Granularity aren't set, GetReservationUtilization * defaults to DAILY. *

*

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

* * @param granularity * 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. If both GroupBy and Granularity aren't set, * GetReservationUtilization defaults to DAILY.

*

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

* 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. If * both GroupBy and Granularity aren't set, GetReservationUtilization * defaults to DAILY. *

*

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

* * @return 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. If both GroupBy and Granularity aren't set, * GetReservationUtilization defaults to DAILY.

*

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

* 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. If * both GroupBy and Granularity aren't set, GetReservationUtilization * defaults to DAILY. *

*

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

* * @param granularity * 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. If both GroupBy and Granularity aren't set, * GetReservationUtilization defaults to DAILY.

*

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

* 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. If * both GroupBy and Granularity aren't set, GetReservationUtilization * defaults to DAILY. *

*

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

* * @param granularity * 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. If both GroupBy and Granularity aren't set, * GetReservationUtilization defaults to DAILY.

*

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

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression * object as the other operations, but only AND is supported among each dimension, and nesting is * supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together. *

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each * dimension, and nesting is supported up to only one level deep. If there are multiple values for a * dimension, they are OR'd together. */ public void setFilter(Expression filter) { this.filter = filter; } /** *

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression * object as the other operations, but only AND is supported among each dimension, and nesting is * supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together. *

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each * dimension, and nesting is supported up to only one level deep. If there are multiple values for a * dimension, they are OR'd together. */ public Expression getFilter() { return this.filter; } /** *

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression * object as the other operations, but only AND is supported among each dimension, and nesting is * supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together. *

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

*
    *
  • *

    * AZ *

    *
  • *
  • *

    * CACHE_ENGINE *

    *
  • *
  • *

    * DEPLOYMENT_OPTION *

    *
  • *
  • *

    * INSTANCE_TYPE *

    *
  • *
  • *

    * LINKED_ACCOUNT *

    *
  • *
  • *

    * OPERATING_SYSTEM *

    *
  • *
  • *

    * PLATFORM *

    *
  • *
  • *

    * REGION *

    *
  • *
  • *

    * SERVICE *

    *
  • *
  • *

    * SCOPE *

    *
  • *
  • *

    * TENANCY *

    *
  • *
*

* GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each * dimension, and nesting is supported up to only one level deep. If there are multiple values for a * dimension, they are OR'd together. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationUtilizationRequest withFilter(Expression filter) { setFilter(filter); return this; } /** *

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

* The supported values for SortOrder are ASCENDING and DESCENDING. *

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

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

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

* The supported values for SortOrder are ASCENDING and DESCENDING. *

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

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

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

* The supported values for SortOrder are ASCENDING and DESCENDING. *

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

*

* The following values are supported for Key: *

*
    *
  • *

    * UtilizationPercentage *

    *
  • *
  • *

    * UtilizationPercentageInUnits *

    *
  • *
  • *

    * PurchasedHours *

    *
  • *
  • *

    * PurchasedUnits *

    *
  • *
  • *

    * TotalActualHours *

    *
  • *
  • *

    * TotalActualUnits *

    *
  • *
  • *

    * UnusedHours *

    *
  • *
  • *

    * UnusedUnits *

    *
  • *
  • *

    * OnDemandCostOfRIHoursUsed *

    *
  • *
  • *

    * NetRISavings *

    *
  • *
  • *

    * TotalPotentialRISavings *

    *
  • *
  • *

    * AmortizedUpfrontFee *

    *
  • *
  • *

    * AmortizedRecurringFee *

    *
  • *
  • *

    * TotalAmortizedFee *

    *
  • *
  • *

    * RICostForUnusedHours *

    *
  • *
  • *

    * RealizedSavings *

    *
  • *
  • *

    * UnrealizedSavings *

    *
  • *
*

* The supported values for SortOrder are ASCENDING and DESCENDING. * @return Returns a reference to this object so that method calls can be chained together. */ public GetReservationUtilizationRequest withSortBy(SortDefinition sortBy) { setSortBy(sortBy); 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 GetReservationUtilizationRequest withNextPageToken(String nextPageToken) { setNextPageToken(nextPageToken); 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 GetReservationUtilizationRequest 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 (getSortBy() != null) sb.append("SortBy: ").append(getSortBy()).append(","); if (getNextPageToken() != null) sb.append("NextPageToken: ").append(getNextPageToken()).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 GetReservationUtilizationRequest == false) return false; GetReservationUtilizationRequest other = (GetReservationUtilizationRequest) 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.getSortBy() == null ^ this.getSortBy() == null) return false; if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == 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.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 + ((getSortBy() == null) ? 0 : getSortBy().hashCode()); hashCode = prime * hashCode + ((getNextPageToken() == null) ? 0 : getNextPageToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public GetReservationUtilizationRequest clone() { return (GetReservationUtilizationRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy