/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the ce-2017-10-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CostExplorer.Model { /// /// Container for the parameters to the GetCostCategories operation. /// Retrieves an array of Cost Category names and values incurred cost. /// /// /// /// If some Cost Category names and values are not associated with any cost, they will /// not be returned by this API. /// /// /// public partial class GetCostCategoriesRequest : AmazonCostExplorerRequest { private string _costCategoryName; private Expression _filter; private int? _maxResults; private string _nextPageToken; private string _searchString; private List _sortBy = new List(); private DateInterval _timePeriod; /// /// Gets and sets the property CostCategoryName. /// [AWSProperty(Min=1, Max=50)] public string CostCategoryName { get { return this._costCategoryName; } set { this._costCategoryName = value; } } // Check to see if CostCategoryName property is set internal bool IsSetCostCategoryName() { return this._costCategoryName != null; } /// /// Gets and sets the property Filter. /// public Expression Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// /// Gets and sets the property MaxResults. /// /// This field is only used when the SortBy value is provided in the request. /// /// /// /// The maximum number of objects that are returned for this request. If MaxResults /// isn't specified with the SortBy value, the request returns 1000 results /// as the default value for this parameter. /// /// /// /// For GetCostCategories, MaxResults has an upper quota of 1000. /// /// [AWSProperty(Min=1)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// /// Gets and sets the property NextPageToken. /// /// If the number of objects that are still available for retrieval exceeds the quota, /// Amazon Web Services returns a NextPageToken value in the response. To retrieve the /// next batch of objects, provide the NextPageToken from the previous call in your next /// request. /// /// [AWSProperty(Min=0, Max=8192)] public string NextPageToken { get { return this._nextPageToken; } set { this._nextPageToken = value; } } // Check to see if NextPageToken property is set internal bool IsSetNextPageToken() { return this._nextPageToken != null; } /// /// Gets and sets the property SearchString. /// /// The value that you want to search the filter values for. /// /// /// /// If you don't specify a CostCategoryName, SearchString is /// used to filter Cost Category names that match the SearchString pattern. /// If you specify a CostCategoryName, SearchString is used /// to filter Cost Category values that match the SearchString pattern. /// /// [AWSProperty(Min=0, Max=1024)] public string SearchString { get { return this._searchString; } set { this._searchString = value; } } // Check to see if SearchString property is set internal bool IsSetSearchString() { return this._searchString != null; } /// /// Gets and sets the property SortBy. /// /// The value that you sort the data by. /// /// /// /// The key represents the cost and usage metrics. The following values are supported: /// ///
  • /// /// BlendedCost /// ///
  • /// /// UnblendedCost /// ///
  • /// /// AmortizedCost /// ///
  • /// /// NetAmortizedCost /// ///
  • /// /// NetUnblendedCost /// ///
  • /// /// UsageQuantity /// ///
  • /// /// NormalizedUsageAmount /// ///
/// /// The supported key values for the SortOrder value are ASCENDING /// and DESCENDING. /// /// /// /// When you use the SortBy value, the NextPageToken and SearchString /// key values aren't supported. /// ///
public List SortBy { get { return this._sortBy; } set { this._sortBy = value; } } // Check to see if SortBy property is set internal bool IsSetSortBy() { return this._sortBy != null && this._sortBy.Count > 0; } /// /// Gets and sets the property TimePeriod. /// [AWSProperty(Required=true)] public DateInterval TimePeriod { get { return this._timePeriod; } set { this._timePeriod = value; } } // Check to see if TimePeriod property is set internal bool IsSetTimePeriod() { return this._timePeriod != null; } } }