/*
* 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 migrationhubstrategy-2020-02-19.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.MigrationHubStrategyRecommendations.Model
{
///
/// Container for the parameters to the ListServers operation.
/// Returns a list of all the servers.
///
public partial class ListServersRequest : AmazonMigrationHubStrategyRecommendationsRequest
{
private string _filterValue;
private List _groupIdFilter = new List();
private int? _maxResults;
private string _nextToken;
private ServerCriteria _serverCriteria;
private SortOrder _sort;
///
/// Gets and sets the property FilterValue.
///
/// Specifies the filter value, which is based on the type of server criteria. For example,
/// if serverCriteria
is OS_NAME
, and the filterValue
/// is equal to WindowsServer
, then ListServers
returns all
/// of the servers matching the OS name WindowsServer
.
///
///
[AWSProperty(Min=0, Max=1024)]
public string FilterValue
{
get { return this._filterValue; }
set { this._filterValue = value; }
}
// Check to see if FilterValue property is set
internal bool IsSetFilterValue()
{
return this._filterValue != null;
}
///
/// Gets and sets the property GroupIdFilter.
///
/// Specifies the group ID to filter on.
///
///
public List GroupIdFilter
{
get { return this._groupIdFilter; }
set { this._groupIdFilter = value; }
}
// Check to see if GroupIdFilter property is set
internal bool IsSetGroupIdFilter()
{
return this._groupIdFilter != null && this._groupIdFilter.Count > 0;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of items to include in the response. The maximum value is 100.
///
///
///
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.
///
/// The token from a previous call that you use to retrieve the next set of results.
/// For example, if a previous call to this action returned 100 items, but you set maxResults
/// to 10. You'll receive a set of 10 results along with a token. You then use the returned
/// token to retrieve the next set of 10.
///
///
[AWSProperty(Min=0, 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 ServerCriteria.
///
/// Criteria for filtering servers.
///
///
public ServerCriteria ServerCriteria
{
get { return this._serverCriteria; }
set { this._serverCriteria = value; }
}
// Check to see if ServerCriteria property is set
internal bool IsSetServerCriteria()
{
return this._serverCriteria != null;
}
///
/// Gets and sets the property Sort.
///
/// Specifies whether to sort by ascending (ASC
) or descending (DESC
)
/// order.
///
///
public SortOrder Sort
{
get { return this._sort; }
set { this._sort = value; }
}
// Check to see if Sort property is set
internal bool IsSetSort()
{
return this._sort != null;
}
}
}