/*
* 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 codedeploy-2014-10-06.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.CodeDeploy.Model
{
///
/// Container for the parameters to the ListDeployments operation.
/// Lists the deployments in a deployment group for an application registered with the
/// IAM user or Amazon Web Services account.
///
public partial class ListDeploymentsRequest : AmazonCodeDeployRequest
{
private string _applicationName;
private TimeRange _createTimeRange;
private string _deploymentGroupName;
private string _externalId;
private List _includeOnlyStatuses = new List();
private string _nextToken;
///
/// Gets and sets the property ApplicationName.
///
/// The name of an CodeDeploy application associated with the IAM user or Amazon Web Services
/// account.
///
///
///
/// If applicationName
is specified, then deploymentGroupName
/// must be specified. If it is not specified, then deploymentGroupName
must
/// not be specified.
///
///
///
[AWSProperty(Min=1, Max=100)]
public string ApplicationName
{
get { return this._applicationName; }
set { this._applicationName = value; }
}
// Check to see if ApplicationName property is set
internal bool IsSetApplicationName()
{
return this._applicationName != null;
}
///
/// Gets and sets the property CreateTimeRange.
///
/// A time range (start and end) for returning a subset of the list of deployments.
///
///
public TimeRange CreateTimeRange
{
get { return this._createTimeRange; }
set { this._createTimeRange = value; }
}
// Check to see if CreateTimeRange property is set
internal bool IsSetCreateTimeRange()
{
return this._createTimeRange != null;
}
///
/// Gets and sets the property DeploymentGroupName.
///
/// The name of a deployment group for the specified application.
///
///
///
/// If deploymentGroupName
is specified, then applicationName
/// must be specified. If it is not specified, then applicationName
must
/// not be specified.
///
///
///
[AWSProperty(Min=1, Max=100)]
public string DeploymentGroupName
{
get { return this._deploymentGroupName; }
set { this._deploymentGroupName = value; }
}
// Check to see if DeploymentGroupName property is set
internal bool IsSetDeploymentGroupName()
{
return this._deploymentGroupName != null;
}
///
/// Gets and sets the property ExternalId.
///
/// The unique ID of an external resource for returning deployments linked to the external
/// resource.
///
///
public string ExternalId
{
get { return this._externalId; }
set { this._externalId = value; }
}
// Check to see if ExternalId property is set
internal bool IsSetExternalId()
{
return this._externalId != null;
}
///
/// Gets and sets the property IncludeOnlyStatuses.
///
/// A subset of deployments to list by status:
///
/// -
///
///
Created
: Include created deployments in the resulting list.
///
/// -
///
///
Queued
: Include queued deployments in the resulting list.
///
/// -
///
///
In Progress
: Include in-progress deployments in the resulting list.
///
/// -
///
///
Succeeded
: Include successful deployments in the resulting list.
///
/// -
///
///
Failed
: Include failed deployments in the resulting list.
///
/// -
///
///
Stopped
: Include stopped deployments in the resulting list.
///
///
///
public List IncludeOnlyStatuses
{
get { return this._includeOnlyStatuses; }
set { this._includeOnlyStatuses = value; }
}
// Check to see if IncludeOnlyStatuses property is set
internal bool IsSetIncludeOnlyStatuses()
{
return this._includeOnlyStatuses != null && this._includeOnlyStatuses.Count > 0;
}
///
/// Gets and sets the property NextToken.
///
/// An identifier returned from the previous list deployments call. It can be used to
/// return the next set of deployments in the list.
///
///
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;
}
}
}