/*
* 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 forecastquery-2018-06-26.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.ForecastQueryService.Model
{
///
/// Container for the parameters to the QueryWhatIfForecast operation.
/// Retrieves a what-if forecast.
///
public partial class QueryWhatIfForecastRequest : AmazonForecastQueryServiceRequest
{
private string _endDate;
private Dictionary _filters = new Dictionary();
private string _nextToken;
private string _startDate;
private string _whatIfForecastArn;
///
/// Gets and sets the property EndDate.
///
/// The end date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss
/// (ISO 8601 format). For example, 2015-01-01T20:00:00.
///
///
public string EndDate
{
get { return this._endDate; }
set { this._endDate = value; }
}
// Check to see if EndDate property is set
internal bool IsSetEndDate()
{
return this._endDate != null;
}
///
/// Gets and sets the property Filters.
///
/// The filtering criteria to apply when retrieving the forecast. For example, to get
/// the forecast for client_21
in the electricity usage dataset, specify
/// the following:
///
///
///
/// {"item_id" : "client_21"}
///
///
///
/// To get the full what-if forecast, use the CreateForecastExportJob
/// operation.
///
///
[AWSProperty(Required=true, Min=1, Max=50)]
public Dictionary Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
///
/// Gets and sets the property NextToken.
///
/// If the result of the previous request was truncated, the response includes a NextToken
.
/// To retrieve the next set of results, use the token in the next request. Tokens expire
/// after 24 hours.
///
///
[AWSProperty(Min=1, Max=3000)]
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 StartDate.
///
/// The start date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss
/// (ISO 8601 format). For example, 2015-01-01T08:00:00.
///
///
public string StartDate
{
get { return this._startDate; }
set { this._startDate = value; }
}
// Check to see if StartDate property is set
internal bool IsSetStartDate()
{
return this._startDate != null;
}
///
/// Gets and sets the property WhatIfForecastArn.
///
/// The Amazon Resource Name (ARN) of the what-if forecast to query.
///
///
[AWSProperty(Required=true, Max=300)]
public string WhatIfForecastArn
{
get { return this._whatIfForecastArn; }
set { this._whatIfForecastArn = value; }
}
// Check to see if WhatIfForecastArn property is set
internal bool IsSetWhatIfForecastArn()
{
return this._whatIfForecastArn != null;
}
}
}