/* * Copyright 2018-2023 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. */ package com.amazonaws.services.gamelift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribePlayerSessionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* A unique identifier for the game session to retrieve player sessions for. *

*/ private String gameSessionId; /** *

* A unique identifier for a player to retrieve player sessions for. *

*/ private String playerId; /** *

* A unique identifier for a player session to retrieve. *

*/ private String playerSessionId; /** *

* 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: *

* */ private String playerSessionStatusFilter; /** *

* 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. *

*/ private Integer limit; /** *

* 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. *

*/ private String nextToken; /** *

* A unique identifier for the game session to retrieve player sessions for. *

* * @param gameSessionId * A unique identifier for the game session to retrieve player sessions for. */ public void setGameSessionId(String gameSessionId) { this.gameSessionId = gameSessionId; } /** *

* A unique identifier for the game session to retrieve player sessions for. *

* * @return A unique identifier for the game session to retrieve player sessions for. */ public String getGameSessionId() { return this.gameSessionId; } /** *

* A unique identifier for the game session to retrieve player sessions for. *

* * @param gameSessionId * A unique identifier for the game session to retrieve player sessions for. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePlayerSessionsRequest withGameSessionId(String gameSessionId) { setGameSessionId(gameSessionId); return this; } /** *

* A unique identifier for a player to retrieve player sessions for. *

* * @param playerId * A unique identifier for a player to retrieve player sessions for. */ public void setPlayerId(String playerId) { this.playerId = playerId; } /** *

* A unique identifier for a player to retrieve player sessions for. *

* * @return A unique identifier for a player to retrieve player sessions for. */ public String getPlayerId() { return this.playerId; } /** *

* A unique identifier for a player to retrieve player sessions for. *

* * @param playerId * A unique identifier for a player to retrieve player sessions for. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePlayerSessionsRequest withPlayerId(String playerId) { setPlayerId(playerId); return this; } /** *

* A unique identifier for a player session to retrieve. *

* * @param playerSessionId * A unique identifier for a player session to retrieve. */ public void setPlayerSessionId(String playerSessionId) { this.playerSessionId = playerSessionId; } /** *

* A unique identifier for a player session to retrieve. *

* * @return A unique identifier for a player session to retrieve. */ public String getPlayerSessionId() { return this.playerSessionId; } /** *

* A unique identifier for a player session to retrieve. *

* * @param playerSessionId * A unique identifier for a player session to retrieve. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePlayerSessionsRequest withPlayerSessionId(String playerSessionId) { setPlayerSessionId(playerSessionId); return this; } /** *

* 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: *

* * * @param 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: *

*