Interface SearchGameSessionsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchGameSessionsRequest.Builder,SearchGameSessionsRequest>,GameLiftRequest.Builder,SdkBuilder<SearchGameSessionsRequest.Builder,SearchGameSessionsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SearchGameSessionsRequest
public static interface SearchGameSessionsRequest.Builder extends GameLiftRequest.Builder, SdkPojo, CopyableBuilder<SearchGameSessionsRequest.Builder,SearchGameSessionsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SearchGameSessionsRequest.BuilderaliasId(String aliasId)A unique identifier for the alias associated with the fleet to search for active game sessions.SearchGameSessionsRequest.BuilderfilterExpression(String filterExpression)String containing the search criteria for the session search.SearchGameSessionsRequest.BuilderfleetId(String fleetId)A unique identifier for the fleet to search for active game sessions.SearchGameSessionsRequest.Builderlimit(Integer limit)The maximum number of results to return.SearchGameSessionsRequest.Builderlocation(String location)A fleet location to search for game sessions.SearchGameSessionsRequest.BuildernextToken(String nextToken)A token that indicates the start of the next sequential page of results.SearchGameSessionsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SearchGameSessionsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)SearchGameSessionsRequest.BuildersortExpression(String sortExpression)Instructions on how to sort the search results.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
fleetId
SearchGameSessionsRequest.Builder fleetId(String fleetId)
A unique identifier for the fleet to search for active game sessions. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
- Parameters:
fleetId- A unique identifier for the fleet to search for active game sessions. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
aliasId
SearchGameSessionsRequest.Builder aliasId(String aliasId)
A unique identifier for the alias associated with the fleet to search for active game sessions. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
- Parameters:
aliasId- A unique identifier for the alias associated with the fleet to search for active game sessions. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
SearchGameSessionsRequest.Builder location(String location)
A fleet location to search for game sessions. You can specify a fleet's home Region or a remote location. Use the Amazon Web Services Region code format, such as
us-west-2.- Parameters:
location- A fleet location to search for game sessions. You can specify a fleet's home Region or a remote location. Use the Amazon Web Services Region code format, such asus-west-2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterExpression
SearchGameSessionsRequest.Builder filterExpression(String filterExpression)
String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are in
ACTIVEstatus.A filter expression can contain one or multiple conditions. Each condition consists of the following:
-
Operand -- Name of a game session attribute. Valid values are
gameSessionName,gameSessionId,gameSessionProperties,maximumSessions,creationTimeMillis,playerSessionCount,hasAvailablePlayerSessions. -
Comparator -- Valid comparators are:
=,<>,<,>,<=,>=. -
Value -- Value to be searched for. Values may be numbers, boolean values (true/false) or strings depending on the operand. String values are case sensitive and must be enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators
=and<>. For example, the following filter expression searches ongameSessionName: "FilterExpression": "gameSessionName = 'Matt\\'s Awesome Game 1'".
To chain multiple conditions in a single expression, use the logical keywords
AND,OR, andNOTand parentheses as needed. For example:x AND y AND NOT z,NOT (x OR y).Session search evaluates conditions from left to right using the following precedence rules:
-
=,<>,<,>,<=,>= -
Parentheses
-
NOT
-
AND
-
OR
For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot:
"maximumSessions>=10 AND hasAvailablePlayerSessions=true".- Parameters:
filterExpression- String containing the search criteria for the session search. If no filter expression is included, the request returns results for all game sessions in the fleet that are inACTIVEstatus.A filter expression can contain one or multiple conditions. Each condition consists of the following:
-
Operand -- Name of a game session attribute. Valid values are
gameSessionName,gameSessionId,gameSessionProperties,maximumSessions,creationTimeMillis,playerSessionCount,hasAvailablePlayerSessions. -
Comparator -- Valid comparators are:
=,<>,<,>,<=,>=. -
Value -- Value to be searched for. Values may be numbers, boolean values (true/false) or strings depending on the operand. String values are case sensitive and must be enclosed in single quotes. Special characters must be escaped. Boolean and string values can only be used with the comparators
=and<>. For example, the following filter expression searches ongameSessionName: "FilterExpression": "gameSessionName = 'Matt\\'s Awesome Game 1'".
To chain multiple conditions in a single expression, use the logical keywords
AND,OR, andNOTand parentheses as needed. For example:x AND y AND NOT z,NOT (x OR y).Session search evaluates conditions from left to right using the following precedence rules:
-
=,<>,<,>,<=,>= -
Parentheses
-
NOT
-
AND
-
OR
For example, this filter expression retrieves game sessions hosting at least ten players that have an open player slot:
"maximumSessions>=10 AND hasAvailablePlayerSessions=true".-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
sortExpression
SearchGameSessionsRequest.Builder sortExpression(String sortExpression)
Instructions on how to sort the search results. If no sort expression is included, the request returns results in random order. A sort expression consists of the following elements:
-
Operand -- Name of a game session attribute. Valid values are
gameSessionName,gameSessionId,gameSessionProperties,maximumSessions,creationTimeMillis,playerSessionCount,hasAvailablePlayerSessions. -
Order -- Valid sort orders are
ASC(ascending) andDESC(descending).
For example, this sort expression returns the oldest active sessions first:
"SortExpression": "creationTimeMillis ASC". Results with a null value for the sort operand are returned at the end of the list.- Parameters:
sortExpression- Instructions on how to sort the search results. If no sort expression is included, the request returns results in random order. A sort expression consists of the following elements:-
Operand -- Name of a game session attribute. Valid values are
gameSessionName,gameSessionId,gameSessionProperties,maximumSessions,creationTimeMillis,playerSessionCount,hasAvailablePlayerSessions. -
Order -- Valid sort orders are
ASC(ascending) andDESC(descending).
For example, this sort expression returns the oldest active sessions first:
"SortExpression": "creationTimeMillis ASC". Results with a null value for the sort operand are returned at the end of the list.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
limit
SearchGameSessionsRequest.Builder limit(Integer limit)
The maximum number of results to return. Use this parameter with
NextTokento get results as a set of sequential pages. The maximum number of results returned is 20, even if this value is not set or is set higher than 20.- Parameters:
limit- The maximum number of results to return. Use this parameter withNextTokento get results as a set of sequential pages. The maximum number of results returned is 20, even if this value is not set or is set higher than 20.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
SearchGameSessionsRequest.Builder nextToken(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SearchGameSessionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SearchGameSessionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-