/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CostExplorer { namespace Model { /** */ class GetSavingsPlansUtilizationRequest : public CostExplorerRequest { public: AWS_COSTEXPLORER_API GetSavingsPlansUtilizationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetSavingsPlansUtilization"; } AWS_COSTEXPLORER_API Aws::String SerializePayload() const override; AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline const DateInterval& GetTimePeriod() const{ return m_timePeriod; } /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline bool TimePeriodHasBeenSet() const { return m_timePeriodHasBeenSet; } /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline void SetTimePeriod(const DateInterval& value) { m_timePeriodHasBeenSet = true; m_timePeriod = value; } /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline void SetTimePeriod(DateInterval&& value) { m_timePeriodHasBeenSet = true; m_timePeriod = std::move(value); } /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline GetSavingsPlansUtilizationRequest& WithTimePeriod(const DateInterval& value) { SetTimePeriod(value); return *this;} /** *

The time period that you want the usage and costs for. The Start * date must be within 13 months. The End date must be after the * Start date, and before the current date. Future dates can't be used * as an End date.

*/ inline GetSavingsPlansUtilizationRequest& WithTimePeriod(DateInterval&& value) { SetTimePeriod(std::move(value)); return *this;} /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline const Granularity& GetGranularity() const{ return m_granularity; } /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; } /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline void SetGranularity(const Granularity& value) { m_granularityHasBeenSet = true; m_granularity = value; } /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline void SetGranularity(Granularity&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); } /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline GetSavingsPlansUtilizationRequest& WithGranularity(const Granularity& value) { SetGranularity(value); return *this;} /** *

The granularity of the Amazon Web Services utillization data for your Savings * Plans.

The GetSavingsPlansUtilization operation supports * only DAILY and MONTHLY granularities.

*/ inline GetSavingsPlansUtilizationRequest& WithGranularity(Granularity&& value) { SetGranularity(std::move(value)); return *this;} /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline const Expression& GetFilter() const{ return m_filter; } /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline GetSavingsPlansUtilizationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;} /** *

Filters Savings Plans utilization coverage data for active Savings Plans * dimensions. You can filter data with the following dimensions:

  • * LINKED_ACCOUNT

  • SAVINGS_PLAN_ARN *

  • SAVINGS_PLANS_TYPE

  • * REGION

  • PAYMENT_OPTION

  • *
  • INSTANCE_TYPE_FAMILY

* GetSavingsPlansUtilization uses the same Expression * object as the other operations, but only AND is supported among * each dimension.

*/ inline GetSavingsPlansUtilizationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;} /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline const SortDefinition& GetSortBy() const{ return m_sortBy; } /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline void SetSortBy(const SortDefinition& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline void SetSortBy(SortDefinition&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline GetSavingsPlansUtilizationRequest& WithSortBy(const SortDefinition& value) { SetSortBy(value); return *this;} /** *

The value that you want to sort the data by.

The following values are * supported for Key:

  • * UtilizationPercentage

  • * TotalCommitment

  • UsedCommitment *

  • UnusedCommitment

  • * NetSavings

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

*/ inline GetSavingsPlansUtilizationRequest& WithSortBy(SortDefinition&& value) { SetSortBy(std::move(value)); return *this;} private: DateInterval m_timePeriod; bool m_timePeriodHasBeenSet = false; Granularity m_granularity; bool m_granularityHasBeenSet = false; Expression m_filter; bool m_filterHasBeenSet = false; SortDefinition m_sortBy; bool m_sortByHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws