@Override
    public ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest listEnvironmentsRequest) {
        HttpResponseHandler<ListEnvironmentsResult> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true)
                .withHasStreamingSuccessResponse(false), new ListEnvironmentsResultJsonUnmarshaller());

        HttpResponseHandler<SdkBaseException> errorResponseHandler = createErrorResponseHandler();

        return clientHandler.execute(new ClientExecutionParams<ListEnvironmentsRequest, ListEnvironmentsResult>()
                .withMarshaller(new ListEnvironmentsRequestProtocolMarshaller(protocolFactory)).withResponseHandler(responseHandler)
                .withErrorResponseHandler(errorResponseHandler).withInput(listEnvironmentsRequest));
    }
@param listEnvironmentsRequest
@return Result of the listEnvironments operation returned by the service.
@sample Blox.listEnvironments
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ecs-blox-v2017-07-11/listEnvironments" target="_top">AWS
     API Documentation</a>
frontend-service-client/src/main/java/com/amazonaws/blox/BloxClient.java