/* * 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.gamesparks; import org.w3c.dom.*; import java.net.*; import java.util.*; import javax.annotation.Generated; import org.apache.commons.logging.*; import com.amazonaws.*; import com.amazonaws.annotation.SdkInternalApi; import com.amazonaws.auth.*; import com.amazonaws.handlers.*; import com.amazonaws.http.*; import com.amazonaws.internal.*; import com.amazonaws.internal.auth.*; import com.amazonaws.metrics.*; import com.amazonaws.regions.*; import com.amazonaws.transform.*; import com.amazonaws.util.*; import com.amazonaws.protocol.json.*; import com.amazonaws.util.AWSRequestMetrics.Field; import com.amazonaws.annotation.ThreadSafe; import com.amazonaws.client.AwsSyncClientParams; import com.amazonaws.client.builder.AdvancedConfig; import com.amazonaws.services.gamesparks.AWSGameSparksClientBuilder; import com.amazonaws.AmazonServiceException; import com.amazonaws.services.gamesparks.model.*; import com.amazonaws.services.gamesparks.model.transform.*; /** * Client for accessing GameSparks. All service calls made using this client are blocking, and will not return until the * service call completes. *
*
*/ @ThreadSafe @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AWSGameSparksClient extends AmazonWebServiceClient implements AWSGameSparks { /** Provider for AWS credentials. */ private final AWSCredentialsProvider awsCredentialsProvider; private static final Log log = LogFactory.getLog(AWSGameSparks.class); /** Default signing name for the service. */ private static final String DEFAULT_SIGNING_NAME = "gamesparks"; /** Client configuration factory providing ClientConfigurations tailored to this client */ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory(); private final AdvancedConfig advancedConfig; private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory( new JsonClientMetadata() .withProtocolVersion("1.1") .withSupportsCbor(false) .withSupportsIon(false) .withContentTypeOverride("application/json") .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.ThrottlingExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ServiceQuotaExceededException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.ServiceQuotaExceededExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("InternalServerException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.InternalServerExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("AccessDeniedException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.AccessDeniedExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ConflictException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.ConflictExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.ResourceNotFoundExceptionUnmarshaller.getInstance())) .addErrorMetadata( new JsonErrorShapeMetadata().withErrorCode("ValidationException").withExceptionUnmarshaller( com.amazonaws.services.gamesparks.model.transform.ValidationExceptionUnmarshaller.getInstance())) .withBaseServiceExceptionClass(com.amazonaws.services.gamesparks.model.AWSGameSparksException.class)); public static AWSGameSparksClientBuilder builder() { return AWSGameSparksClientBuilder.standard(); } /** * Constructs a new client to invoke service methods on GameSparks using the specified parameters. * ** All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSGameSparksClient(AwsSyncClientParams clientParams) { this(clientParams, false); } /** * Constructs a new client to invoke service methods on GameSparks using the specified parameters. * *
* All service calls made using this new client object are blocking, and will not return until the service call * completes. * * @param clientParams * Object providing client parameters. */ AWSGameSparksClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) { super(clientParams); this.awsCredentialsProvider = clientParams.getCredentialsProvider(); this.advancedConfig = clientParams.getAdvancedConfig(); init(); } private void init() { setServiceNameIntern(DEFAULT_SIGNING_NAME); setEndpointPrefix(ENDPOINT_PREFIX); // calling this.setEndPoint(...) will also modify the signer accordingly setEndpoint("gamesparks.us-east-1.amazonaws.com"); HandlerChainFactory chainFactory = new HandlerChainFactory(); requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/gamesparks/request.handlers")); requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/gamesparks/request.handler2s")); requestHandler2s.addAll(chainFactory.getGlobalHandlers()); } /** *
* Creates a new game with an empty configuration. After creating your game, you can update the configuration using
* UpdateGameConfiguration
or ImportGameConfiguration
.
*
* Creates a snapshot of the game configuration. *
* * @param createSnapshotRequest * @return Result of the CreateSnapshot operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ConflictException * The resource already exists, or another operation is in progress. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.CreateSnapshot * @see AWS API * Documentation */ @Override public CreateSnapshotResult createSnapshot(CreateSnapshotRequest request) { request = beforeClientExecution(request); return executeCreateSnapshot(request); } @SdkInternalApi final CreateSnapshotResult executeCreateSnapshot(CreateSnapshotRequest createSnapshotRequest) { ExecutionContext executionContext = createExecutionContext(createSnapshotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Creates a new stage for stage-by-stage game development and deployment. *
* * @param createStageRequest * @return Result of the CreateStage operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ConflictException * The resource already exists, or another operation is in progress. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.CreateStage * @see AWS API * Documentation */ @Override public CreateStageResult createStage(CreateStageRequest request) { request = beforeClientExecution(request); return executeCreateStage(request); } @SdkInternalApi final CreateStageResult executeCreateStage(CreateStageRequest createStageRequest) { ExecutionContext executionContext = createExecutionContext(createStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes a game. *
* * @param deleteGameRequest * @return Result of the DeleteGame operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ConflictException * The resource already exists, or another operation is in progress. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.DeleteGame * @see AWS API * Documentation */ @Override public DeleteGameResult deleteGame(DeleteGameRequest request) { request = beforeClientExecution(request); return executeDeleteGame(request); } @SdkInternalApi final DeleteGameResult executeDeleteGame(DeleteGameRequest deleteGameRequest) { ExecutionContext executionContext = createExecutionContext(deleteGameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deletes a stage from a game, along with the associated game runtime. *
* * @param deleteStageRequest * @return Result of the DeleteStage operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ConflictException * The resource already exists, or another operation is in progress. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.DeleteStage * @see AWS API * Documentation */ @Override public DeleteStageResult deleteStage(DeleteStageRequest request) { request = beforeClientExecution(request); return executeDeleteStage(request); } @SdkInternalApi final DeleteStageResult executeDeleteStage(DeleteStageRequest deleteStageRequest) { ExecutionContext executionContext = createExecutionContext(deleteStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Disconnects a player from the game runtime. *
** If a player has multiple connections, this operation attempts to close all of them. *
* * @param disconnectPlayerRequest * @return Result of the DisconnectPlayer operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.DisconnectPlayer * @see AWS * API Documentation */ @Override public DisconnectPlayerResult disconnectPlayer(DisconnectPlayerRequest request) { request = beforeClientExecution(request); return executeDisconnectPlayer(request); } @SdkInternalApi final DisconnectPlayerResult executeDisconnectPlayer(DisconnectPlayerRequest disconnectPlayerRequest) { ExecutionContext executionContext = createExecutionContext(disconnectPlayerRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Exports a game configuration snapshot. *
* * @param exportSnapshotRequest * @return Result of the ExportSnapshot operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ExportSnapshot * @see AWS API * Documentation */ @Override public ExportSnapshotResult exportSnapshot(ExportSnapshotRequest request) { request = beforeClientExecution(request); return executeExportSnapshot(request); } @SdkInternalApi final ExportSnapshotResult executeExportSnapshot(ExportSnapshotRequest exportSnapshotRequest) { ExecutionContext executionContext = createExecutionContext(exportSnapshotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets details about a specified extension. *
* * @param getExtensionRequest * @return Result of the GetExtension operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetExtension * @see AWS API * Documentation */ @Override public GetExtensionResult getExtension(GetExtensionRequest request) { request = beforeClientExecution(request); return executeGetExtension(request); } @SdkInternalApi final GetExtensionResult executeGetExtension(GetExtensionRequest getExtensionRequest) { ExecutionContext executionContext = createExecutionContext(getExtensionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets details about a specified extension version. *
* * @param getExtensionVersionRequest * @return Result of the GetExtensionVersion operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetExtensionVersion * @see AWS * API Documentation */ @Override public GetExtensionVersionResult getExtensionVersion(GetExtensionVersionRequest request) { request = beforeClientExecution(request); return executeGetExtensionVersion(request); } @SdkInternalApi final GetExtensionVersionResult executeGetExtensionVersion(GetExtensionVersionRequest getExtensionVersionRequest) { ExecutionContext executionContext = createExecutionContext(getExtensionVersionRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets details about a game. *
* * @param getGameRequest * @return Result of the GetGame operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetGame * @see AWS API * Documentation */ @Override public GetGameResult getGame(GetGameRequest request) { request = beforeClientExecution(request); return executeGetGame(request); } @SdkInternalApi final GetGameResult executeGetGame(GetGameRequest getGameRequest) { ExecutionContext executionContext = createExecutionContext(getGameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets the configuration of the game. *
* * @param getGameConfigurationRequest * @return Result of the GetGameConfiguration operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetGameConfiguration * @see AWS API Documentation */ @Override public GetGameConfigurationResult getGameConfiguration(GetGameConfigurationRequest request) { request = beforeClientExecution(request); return executeGetGameConfiguration(request); } @SdkInternalApi final GetGameConfigurationResult executeGetGameConfiguration(GetGameConfigurationRequest getGameConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(getGameConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets details about a job that is generating code for a snapshot. *
* * @param getGeneratedCodeJobRequest * @return Result of the GetGeneratedCodeJob operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetGeneratedCodeJob * @see AWS * API Documentation */ @Override public GetGeneratedCodeJobResult getGeneratedCodeJob(GetGeneratedCodeJobRequest request) { request = beforeClientExecution(request); return executeGetGeneratedCodeJob(request); } @SdkInternalApi final GetGeneratedCodeJobResult executeGetGeneratedCodeJob(GetGeneratedCodeJobRequest getGeneratedCodeJobRequest) { ExecutionContext executionContext = createExecutionContext(getGeneratedCodeJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets the status of a player's connection to the game runtime. *
** It's possible for a single player to have multiple connections to the game runtime. If a player is not connected, * this operation returns an empty list. *
* * @param getPlayerConnectionStatusRequest * @return Result of the GetPlayerConnectionStatus operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetPlayerConnectionStatus * @see AWS API Documentation */ @Override public GetPlayerConnectionStatusResult getPlayerConnectionStatus(GetPlayerConnectionStatusRequest request) { request = beforeClientExecution(request); return executeGetPlayerConnectionStatus(request); } @SdkInternalApi final GetPlayerConnectionStatusResult executeGetPlayerConnectionStatus(GetPlayerConnectionStatusRequest getPlayerConnectionStatusRequest) { ExecutionContext executionContext = createExecutionContext(getPlayerConnectionStatusRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a copy of the game configuration in a snapshot. *
* * @param getSnapshotRequest * @return Result of the GetSnapshot operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetSnapshot * @see AWS API * Documentation */ @Override public GetSnapshotResult getSnapshot(GetSnapshotRequest request) { request = beforeClientExecution(request); return executeGetSnapshot(request); } @SdkInternalApi final GetSnapshotResult executeGetSnapshot(GetSnapshotRequest getSnapshotRequest) { ExecutionContext executionContext = createExecutionContext(getSnapshotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets information about a stage. *
* * @param getStageRequest * @return Result of the GetStage operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetStage * @see AWS API * Documentation */ @Override public GetStageResult getStage(GetStageRequest request) { request = beforeClientExecution(request); return executeGetStage(request); } @SdkInternalApi final GetStageResult executeGetStage(GetStageRequest getStageRequest) { ExecutionContext executionContext = createExecutionContext(getStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets information about a stage deployment. *
* * @param getStageDeploymentRequest * @return Result of the GetStageDeployment operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.GetStageDeployment * @see AWS * API Documentation */ @Override public GetStageDeploymentResult getStageDeployment(GetStageDeploymentRequest request) { request = beforeClientExecution(request); return executeGetStageDeployment(request); } @SdkInternalApi final GetStageDeploymentResult executeGetStageDeployment(GetStageDeploymentRequest getStageDeploymentRequest) { ExecutionContext executionContext = createExecutionContext(getStageDeploymentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Imports a game configuration. *
*
* This operation replaces the current configuration of the game with the provided input. This is not a reversible
* operation. If you want to preserve the previous configuration, use CreateSnapshot
to make a new
* snapshot before importing.
*
* Gets a paginated list of available versions for the extension. *
** Each time an API change is made to an extension, the version is incremented. The list retrieved by this operation * shows the versions that are currently available. *
* * @param listExtensionVersionsRequest * @return Result of the ListExtensionVersions operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListExtensionVersions * @see AWS API Documentation */ @Override public ListExtensionVersionsResult listExtensionVersions(ListExtensionVersionsRequest request) { request = beforeClientExecution(request); return executeListExtensionVersions(request); } @SdkInternalApi final ListExtensionVersionsResult executeListExtensionVersions(ListExtensionVersionsRequest listExtensionVersionsRequest) { ExecutionContext executionContext = createExecutionContext(listExtensionVersionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of available extensions. *
** Extensions provide features that games can use from scripts. *
* * @param listExtensionsRequest * @return Result of the ListExtensions operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListExtensions * @see AWS API * Documentation */ @Override public ListExtensionsResult listExtensions(ListExtensionsRequest request) { request = beforeClientExecution(request); return executeListExtensions(request); } @SdkInternalApi final ListExtensionsResult executeListExtensions(ListExtensionsRequest listExtensionsRequest) { ExecutionContext executionContext = createExecutionContext(listExtensionsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of games. *
* * @param listGamesRequest * @return Result of the ListGames operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListGames * @see AWS API * Documentation */ @Override public ListGamesResult listGames(ListGamesRequest request) { request = beforeClientExecution(request); return executeListGames(request); } @SdkInternalApi final ListGamesResult executeListGames(ListGamesRequest listGamesRequest) { ExecutionContext executionContext = createExecutionContext(listGamesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of code generation jobs for a snapshot. *
* * @param listGeneratedCodeJobsRequest * @return Result of the ListGeneratedCodeJobs operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListGeneratedCodeJobs * @see AWS API Documentation */ @Override public ListGeneratedCodeJobsResult listGeneratedCodeJobs(ListGeneratedCodeJobsRequest request) { request = beforeClientExecution(request); return executeListGeneratedCodeJobs(request); } @SdkInternalApi final ListGeneratedCodeJobsResult executeListGeneratedCodeJobs(ListGeneratedCodeJobsRequest listGeneratedCodeJobsRequest) { ExecutionContext executionContext = createExecutionContext(listGeneratedCodeJobsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of snapshot summaries from the game. *
* * @param listSnapshotsRequest * @return Result of the ListSnapshots operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListSnapshots * @see AWS API * Documentation */ @Override public ListSnapshotsResult listSnapshots(ListSnapshotsRequest request) { request = beforeClientExecution(request); return executeListSnapshots(request); } @SdkInternalApi final ListSnapshotsResult executeListSnapshots(ListSnapshotsRequest listSnapshotsRequest) { ExecutionContext executionContext = createExecutionContext(listSnapshotsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of stage deployment summaries from the game. *
* * @param listStageDeploymentsRequest * @return Result of the ListStageDeployments operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListStageDeployments * @see AWS API Documentation */ @Override public ListStageDeploymentsResult listStageDeployments(ListStageDeploymentsRequest request) { request = beforeClientExecution(request); return executeListStageDeployments(request); } @SdkInternalApi final ListStageDeploymentsResult executeListStageDeployments(ListStageDeploymentsRequest listStageDeploymentsRequest) { ExecutionContext executionContext = createExecutionContext(listStageDeploymentsRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Gets a paginated list of stage summaries from the game. *
* * @param listStagesRequest * @return Result of the ListStages operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListStages * @see AWS API * Documentation */ @Override public ListStagesResult listStages(ListStagesRequest request) { request = beforeClientExecution(request); return executeListStages(request); } @SdkInternalApi final ListStagesResult executeListStages(ListStagesRequest listStagesRequest) { ExecutionContext executionContext = createExecutionContext(listStagesRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Lists the tags associated with a GameSparks resource. *
* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.ListTagsForResource * @see AWS * API Documentation */ @Override public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { request = beforeClientExecution(request); return executeListTagsForResource(request); } @SdkInternalApi final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Starts an asynchronous process that generates client code for system-defined and custom messages. The resulting * code is collected as a .zip file and uploaded to a pre-signed Amazon S3 URL. *
* * @param startGeneratedCodeJobRequest * @return Result of the StartGeneratedCodeJob operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.StartGeneratedCodeJob * @see AWS API Documentation */ @Override public StartGeneratedCodeJobResult startGeneratedCodeJob(StartGeneratedCodeJobRequest request) { request = beforeClientExecution(request); return executeStartGeneratedCodeJob(request); } @SdkInternalApi final StartGeneratedCodeJobResult executeStartGeneratedCodeJob(StartGeneratedCodeJobRequest startGeneratedCodeJobRequest) { ExecutionContext executionContext = createExecutionContext(startGeneratedCodeJobRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Deploys a snapshot to the stage and creates a new game runtime. *
*
* After you call this operation, you can check the deployment status by using GetStageDeployment
.
*
* If there are any players connected to the previous game runtime, then both runtimes persist. Existing connections * to the previous runtime are maintained. When players disconnect and reconnect, they connect to the new runtime. * After there are no connections to the previous game runtime, it is deleted. *
* * @param startStageDeploymentRequest * @return Result of the StartStageDeployment operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ConflictException * The resource already exists, or another operation is in progress. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.StartStageDeployment * @see AWS API Documentation */ @Override public StartStageDeploymentResult startStageDeployment(StartStageDeploymentRequest request) { request = beforeClientExecution(request); return executeStartStageDeployment(request); } @SdkInternalApi final StartStageDeploymentResult executeStartStageDeployment(StartStageDeploymentRequest startStageDeploymentRequest) { ExecutionContext executionContext = createExecutionContext(startStageDeploymentRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Adds tags to a GameSparks resource. *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.TagResource * @see AWS API * Documentation */ @Override public TagResourceResult tagResource(TagResourceRequest request) { request = beforeClientExecution(request); return executeTagResource(request); } @SdkInternalApi final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { ExecutionContext executionContext = createExecutionContext(tagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Removes tags from a GameSparks resource. *
* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.UntagResource * @see AWS API * Documentation */ @Override public UntagResourceResult untagResource(UntagResourceRequest request) { request = beforeClientExecution(request); return executeUntagResource(request); } @SdkInternalApi final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { ExecutionContext executionContext = createExecutionContext(untagResourceRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates details of the game. *
* * @param updateGameRequest * @return Result of the UpdateGame operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.UpdateGame * @see AWS API * Documentation */ @Override public UpdateGameResult updateGame(UpdateGameRequest request) { request = beforeClientExecution(request); return executeUpdateGame(request); } @SdkInternalApi final UpdateGameResult executeUpdateGame(UpdateGameRequest updateGameRequest) { ExecutionContext executionContext = createExecutionContext(updateGameRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates one or more sections of the game configuration. *
* * @param updateGameConfigurationRequest * @return Result of the UpdateGameConfiguration operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @throws ServiceQuotaExceededException * The request would result in exceeding service quota. * @sample AWSGameSparks.UpdateGameConfiguration * @see AWS API Documentation */ @Override public UpdateGameConfigurationResult updateGameConfiguration(UpdateGameConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateGameConfiguration(request); } @SdkInternalApi final UpdateGameConfigurationResult executeUpdateGameConfiguration(UpdateGameConfigurationRequest updateGameConfigurationRequest) { ExecutionContext executionContext = createExecutionContext(updateGameConfigurationRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the metadata of a GameSparks snapshot. *
* * @param updateSnapshotRequest * @return Result of the UpdateSnapshot operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.UpdateSnapshot * @see AWS API * Documentation */ @Override public UpdateSnapshotResult updateSnapshot(UpdateSnapshotRequest request) { request = beforeClientExecution(request); return executeUpdateSnapshot(request); } @SdkInternalApi final UpdateSnapshotResult executeUpdateSnapshot(UpdateSnapshotRequest updateSnapshotRequest) { ExecutionContext executionContext = createExecutionContext(updateSnapshotRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request* Updates the metadata of a stage. *
* * @param updateStageRequest * @return Result of the UpdateStage operation returned by the service. * @throws ValidationException * One of the parameters in the request is invalid. * @throws AccessDeniedException * You do not have sufficient access to perform this action. * @throws ThrottlingException * The request throughput limit was exceeded. * @throws ResourceNotFoundException * The resource specified in the request does not exist. * @throws InternalServerException * The service encountered an internal error. * @sample AWSGameSparks.UpdateStage * @see AWS API * Documentation */ @Override public UpdateStageResult updateStage(UpdateStageRequest request) { request = beforeClientExecution(request); return executeUpdateStage(request); } @SdkInternalApi final UpdateStageResult executeUpdateStage(UpdateStageRequest updateStageRequest) { ExecutionContext executionContext = createExecutionContext(updateStageRequest); AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); awsRequestMetrics.startEvent(Field.ClientExecuteTime); Request
* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
* information for an executed request, you should use this method to retrieve it as soon as possible after
* executing the request.
*
* @param request
* The originally executed request
*
* @return The response metadata for the specified request, or null if none is available.
*/
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request) {
return client.getResponseMetadataForRequest(request);
}
/**
* Normal invoke with authentication. Credentials are required and may be overriden at the request level.
**/
private