/* * 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 gamelift-2015-10-01.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.GameLift.Model { /// /// Container for the parameters to the DescribePlayerSessions operation. /// Retrieves properties for one or more player sessions. /// /// /// /// This action can be used in the following ways: /// /// /// /// To request player sessions, specify either a player session ID, game session ID, or /// player ID. You can filter this request by player session status. Use the pagination /// parameters to retrieve results as a set of sequential pages. /// /// /// /// If successful, a PlayerSession object is returned for each session that /// matches the request. /// /// /// /// Related actions /// /// /// /// All /// APIs by task /// /// public partial class DescribePlayerSessionsRequest : AmazonGameLiftRequest { private string _gameSessionId; private int? _limit; private string _nextToken; private string _playerId; private string _playerSessionId; private string _playerSessionStatusFilter; /// /// Gets and sets the property GameSessionId. /// /// A unique identifier for the game session to retrieve player sessions for. /// /// [AWSProperty(Min=1, Max=256)] public string GameSessionId { get { return this._gameSessionId; } set { this._gameSessionId = value; } } // Check to see if GameSessionId property is set internal bool IsSetGameSessionId() { return this._gameSessionId != null; } /// /// Gets and sets the property Limit. /// /// The maximum number of results to return. Use this parameter with NextToken /// to get results as a set of sequential pages. If a player session ID is specified, /// this parameter is ignored. /// /// [AWSProperty(Min=1)] 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. /// /// A token that indicates the start of the next sequential page of results. Use the token /// that is returned with a previous call to this operation. To start at the beginning /// of the result set, do not specify a value. If a player session ID is specified, this /// parameter is ignored. /// /// [AWSProperty(Min=1, Max=1024)] 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 PlayerId. /// /// A unique identifier for a player to retrieve player sessions for. /// /// [AWSProperty(Min=1, Max=1024)] public string PlayerId { get { return this._playerId; } set { this._playerId = value; } } // Check to see if PlayerId property is set internal bool IsSetPlayerId() { return this._playerId != null; } /// /// Gets and sets the property PlayerSessionId. /// /// A unique identifier for a player session to retrieve. /// /// public string PlayerSessionId { get { return this._playerSessionId; } set { this._playerSessionId = value; } } // Check to see if PlayerSessionId property is set internal bool IsSetPlayerSessionId() { return this._playerSessionId != null; } /// /// Gets and sets the property PlayerSessionStatusFilter. /// /// Player session status to filter results on. Note that when a PlayerSessionId or PlayerId /// is provided in a DescribePlayerSessions request, then the PlayerSessionStatusFilter /// has no effect on the response. /// /// /// /// Possible player session statuses include the following: /// /// /// [AWSProperty(Min=1, Max=1024)] public string PlayerSessionStatusFilter { get { return this._playerSessionStatusFilter; } set { this._playerSessionStatusFilter = value; } } // Check to see if PlayerSessionStatusFilter property is set internal bool IsSetPlayerSessionStatusFilter() { return this._playerSessionStatusFilter != null; } } }