@Generated(value="software.amazon.awssdk:codegen") public final class CreatePlayerSessionsRequest extends GameLiftRequest implements ToCopyableBuilder<CreatePlayerSessionsRequest.Builder,CreatePlayerSessionsRequest>
Represents the input for a request operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreatePlayerSessionsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreatePlayerSessionsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
gameSessionId()
A unique identifier for the game session to add players to.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPlayerDataMap()
Returns true if the PlayerDataMap property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasPlayerIds()
Returns true if the PlayerIds property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Map<String,String> |
playerDataMap()
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player.
|
List<String> |
playerIds()
List of unique identifiers for the players to be added.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreatePlayerSessionsRequest.Builder> |
serializableBuilderClass() |
CreatePlayerSessionsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String gameSessionId()
A unique identifier for the game session to add players to.
public final boolean hasPlayerIds()
public final List<String> playerIds()
List of unique identifiers for the players to be added.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlayerIds() to see if a value was sent in this field.
public final boolean hasPlayerDataMap()
public final Map<String,String> playerDataMap()
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Player data
strings for player IDs not included in the PlayerIds parameter are ignored.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPlayerDataMap() to see if a value was sent in this field.
PlayerIds parameter are ignored.public CreatePlayerSessionsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreatePlayerSessionsRequest.Builder,CreatePlayerSessionsRequest>toBuilder in class GameLiftRequestpublic static CreatePlayerSessionsRequest.Builder builder()
public static Class<? extends CreatePlayerSessionsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.