/*
* 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 elasticmapreduce-2009-03-31.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.ElasticMapReduce.Model
{
///
/// Container for the parameters to the DescribeJobFlows operation.
/// This API is no longer supported and will eventually be removed. We recommend you use
/// ListClusters, DescribeCluster, ListSteps, ListInstanceGroups
/// and ListBootstrapActions instead.
///
///
///
/// DescribeJobFlows returns a list of job flows that match all of the supplied parameters.
/// The parameters can include a list of job flow IDs, job flow states, and restrictions
/// on job flow creation date and time.
///
///
///
/// Regardless of supplied parameters, only job flows created within the last two months
/// are returned.
///
///
///
/// If no parameters are supplied, then job flows matching either of the following criteria
/// are returned:
///
/// -
///
/// Job flows created and completed in the last two weeks
///
///
-
///
/// Job flows created within the last two months that are in one of the following states:
///
RUNNING
, WAITING
, SHUTTING_DOWN
, STARTING
///
///
///
///
/// Amazon EMR can return a maximum of 512 job flow descriptions.
///
///
public partial class DescribeJobFlowsRequest : AmazonElasticMapReduceRequest
{
private DateTime? _createdAfter;
private DateTime? _createdBefore;
private List _jobFlowIds = new List();
private List _jobFlowStates = new List();
///
/// Empty constructor used to set properties independently even when a simple constructor is available
///
public DescribeJobFlowsRequest() { }
///
/// Instantiates DescribeJobFlowsRequest with the parameterized properties
///
/// Return only job flows whose job flow ID is contained in this list.
public DescribeJobFlowsRequest(List jobFlowIds)
{
_jobFlowIds = jobFlowIds;
}
///
/// Gets and sets the property CreatedAfter.
///
/// Return only job flows created after this date and time.
///
///
public DateTime CreatedAfter
{
get { return this._createdAfter.GetValueOrDefault(); }
set { this._createdAfter = value; }
}
// Check to see if CreatedAfter property is set
internal bool IsSetCreatedAfter()
{
return this._createdAfter.HasValue;
}
///
/// Gets and sets the property CreatedBefore.
///
/// Return only job flows created before this date and time.
///
///
public DateTime CreatedBefore
{
get { return this._createdBefore.GetValueOrDefault(); }
set { this._createdBefore = value; }
}
// Check to see if CreatedBefore property is set
internal bool IsSetCreatedBefore()
{
return this._createdBefore.HasValue;
}
///
/// Gets and sets the property JobFlowIds.
///
/// Return only job flows whose job flow ID is contained in this list.
///
///
public List JobFlowIds
{
get { return this._jobFlowIds; }
set { this._jobFlowIds = value; }
}
// Check to see if JobFlowIds property is set
internal bool IsSetJobFlowIds()
{
return this._jobFlowIds != null && this._jobFlowIds.Count > 0;
}
///
/// Gets and sets the property JobFlowStates.
///
/// Return only job flows whose state is contained in this list.
///
///
public List JobFlowStates
{
get { return this._jobFlowStates; }
set { this._jobFlowStates = value; }
}
// Check to see if JobFlowStates property is set
internal bool IsSetJobFlowStates()
{
return this._jobFlowStates != null && this._jobFlowStates.Count > 0;
}
}
}