/*
* 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 opsworks-2013-02-18.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.OpsWorks.Model
{
///
/// Container for the parameters to the DescribeEcsClusters operation.
/// Describes Amazon ECS clusters that are registered with a stack. If you specify only
/// a stack ID, you can use the MaxResults
and NextToken
parameters
/// to paginate the response. However, AWS OpsWorks Stacks currently supports only one
/// cluster per layer, so the result set has a maximum of one element.
///
///
///
/// Required Permissions: To use this action, an IAM user must have a Show, Deploy,
/// or Manage permissions level for the stack or an attached policy that explicitly grants
/// permission. For more information about user permissions, see Managing
/// User Permissions.
///
///
///
/// This call accepts only one resource-identifying parameter.
///
///
public partial class DescribeEcsClustersRequest : AmazonOpsWorksRequest
{
private List _ecsClusterArns = new List();
private int? _maxResults;
private string _nextToken;
private string _stackId;
///
/// Gets and sets the property EcsClusterArns.
///
/// A list of ARNs, one for each cluster to be described.
///
///
public List EcsClusterArns
{
get { return this._ecsClusterArns; }
set { this._ecsClusterArns = value; }
}
// Check to see if EcsClusterArns property is set
internal bool IsSetEcsClusterArns()
{
return this._ecsClusterArns != null && this._ecsClusterArns.Count > 0;
}
///
/// Gets and sets the property MaxResults.
///
/// To receive a paginated response, use this parameter to specify the maximum number
/// of results to be returned with a single call. If the number of available results exceeds
/// this maximum, the response includes a NextToken
value that you can assign
/// to the NextToken
request parameter to get the next set of results.
///
///
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.
///
/// If the previous paginated request did not return all of the remaining results, the
/// response object'sNextToken
parameter value is set to a token. To retrieve
/// the next set of results, call DescribeEcsClusters
again and assign that
/// token to the request object's NextToken
parameter. If there are no remaining
/// results, the previous response object's NextToken
parameter is set to
/// null
.
///
///
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 StackId.
///
/// A stack ID. DescribeEcsClusters
returns a description of the cluster
/// that is registered with the stack.
///
///
public string StackId
{
get { return this._stackId; }
set { this._stackId = value; }
}
// Check to see if StackId property is set
internal bool IsSetStackId()
{
return this._stackId != null;
}
}
}