/*
* 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 workspaces-2015-04-08.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.WorkSpaces.Model
{
///
/// Container for the parameters to the DescribeWorkspaces operation.
/// Describes the specified WorkSpaces.
///
///
///
/// You can filter the results by using the bundle identifier, directory identifier, or
/// owner, but you can specify only one filter at a time.
///
///
public partial class DescribeWorkspacesRequest : AmazonWorkSpacesRequest
{
private string _bundleId;
private string _directoryId;
private int? _limit;
private string _nextToken;
private string _userName;
private List _workspaceIds = new List();
///
/// Gets and sets the property BundleId.
///
/// The identifier of the bundle. All WorkSpaces that are created from this bundle are
/// retrieved. You cannot combine this parameter with any other filter.
///
///
public string BundleId
{
get { return this._bundleId; }
set { this._bundleId = value; }
}
// Check to see if BundleId property is set
internal bool IsSetBundleId()
{
return this._bundleId != null;
}
///
/// Gets and sets the property DirectoryId.
///
/// The identifier of the directory. In addition, you can optionally specify a specific
/// directory user (see UserName
). You cannot combine this parameter with
/// any other filter.
///
///
[AWSProperty(Min=10, Max=65)]
public string DirectoryId
{
get { return this._directoryId; }
set { this._directoryId = value; }
}
// Check to see if DirectoryId property is set
internal bool IsSetDirectoryId()
{
return this._directoryId != null;
}
///
/// Gets and sets the property Limit.
///
/// The maximum number of items to return.
///
///
[AWSProperty(Min=1, Max=25)]
public int Limit
{
get { return this._limit.GetValueOrDefault(); }
set { this._limit = value; }
}
// Check to see if Limit property is set
internal bool IsSetLimit()
{
return this._limit.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// If you received a NextToken
from a previous call that was paginated,
/// provide this token to receive the next set of results.
///
///
[AWSProperty(Min=1, Max=2048)]
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 UserName.
///
/// The name of the directory user. You must specify this parameter with DirectoryId
.
///
///
[AWSProperty(Min=1, Max=63)]
public string UserName
{
get { return this._userName; }
set { this._userName = value; }
}
// Check to see if UserName property is set
internal bool IsSetUserName()
{
return this._userName != null;
}
///
/// Gets and sets the property WorkspaceIds.
///
/// The identifiers of the WorkSpaces. You cannot combine this parameter with any other
/// filter.
///
///
///
/// Because the CreateWorkspaces operation is asynchronous, the identifier it returns
/// is not immediately available. If you immediately call DescribeWorkspaces with
/// this identifier, no information is returned.
///
///
[AWSProperty(Min=1, Max=25)]
public List WorkspaceIds
{
get { return this._workspaceIds; }
set { this._workspaceIds = value; }
}
// Check to see if WorkspaceIds property is set
internal bool IsSetWorkspaceIds()
{
return this._workspaceIds != null && this._workspaceIds.Count > 0;
}
}
}