/* * 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 pricing-2017-10-15.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.Pricing.Model { /// /// Container for the parameters to the ListPriceLists operation. /// This feature is in preview release and is subject to change. Your use of Amazon /// Web Services Price List API is subject to the Beta Service Participation terms of /// the Amazon Web Services Service Terms /// (Section 1.10). /// /// /// /// This returns a list of Price List references that the requester if authorized to view, /// given a ServiceCode, CurrencyCode, and an EffectiveDate. /// Use without a RegionCode filter to list Price List references from all /// available Amazon Web Services Regions. Use with a RegionCode filter to /// get the Price List reference that's specific to a specific Amazon Web Services Region. /// You can use the PriceListArn from the response to get your preferred /// Price List files through the /// GetPriceListFileUrl API. /// /// public partial class ListPriceListsRequest : AmazonPricingRequest { private string _currencyCode; private DateTime? _effectiveDate; private int? _maxResults; private string _nextToken; private string _regionCode; private string _serviceCode; /// /// Gets and sets the property CurrencyCode. /// /// The three alphabetical character ISO-4217 currency code that the Price List files /// are denominated in. /// /// [AWSProperty(Required=true)] public string CurrencyCode { get { return this._currencyCode; } set { this._currencyCode = value; } } // Check to see if CurrencyCode property is set internal bool IsSetCurrencyCode() { return this._currencyCode != null; } /// /// Gets and sets the property EffectiveDate. /// /// The date that the Price List file prices are effective from. /// /// [AWSProperty(Required=true)] public DateTime EffectiveDate { get { return this._effectiveDate.GetValueOrDefault(); } set { this._effectiveDate = value; } } // Check to see if EffectiveDate property is set internal bool IsSetEffectiveDate() { return this._effectiveDate.HasValue; } /// /// Gets and sets the property MaxResults. /// /// The maximum number of results to return in the response. /// /// [AWSProperty(Min=1, Max=100)] 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 NextToken. /// /// The pagination token that indicates the next set of results that you want to retrieve. /// /// /// public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// /// Gets and sets the property RegionCode. /// /// This is used to filter the Price List by Amazon Web Services Region. For example, /// to get the price list only for the US East (N. Virginia) Region, use /// us-east-1. If nothing is specified, you retrieve price lists for all /// applicable Regions. The available RegionCode list can be retrieved from /// /// GetAttributeValues API. /// /// [AWSProperty(Min=1, Max=255)] public string RegionCode { get { return this._regionCode; } set { this._regionCode = value; } } // Check to see if RegionCode property is set internal bool IsSetRegionCode() { return this._regionCode != null; } /// /// Gets and sets the property ServiceCode. /// /// The service code or the Savings Plan service code for the attributes that you want /// to retrieve. For example, to get the list of applicable Amazon EC2 price lists, use /// AmazonEC2. For a full list of service codes containing On-Demand and /// Reserved Instance (RI) pricing, use the /// DescribeServices API. /// /// /// /// To retrieve the Compute Savings Plan price lists, use ComputeSavingsPlans. /// To retrieve Machine Learning Savings Plans price lists, use MachineLearningSavingsPlans. /// /// /// [AWSProperty(Required=true, Min=1, Max=32)] public string ServiceCode { get { return this._serviceCode; } set { this._serviceCode = value; } } // Check to see if ServiceCode property is set internal bool IsSetServiceCode() { return this._serviceCode != null; } } }