@Override
    public ListFleetsResult listFleets(ListFleetsRequest request) {
        request = beforeClientExecution(request);
        return executeListFleets(request);
    }
<p>
<b>This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in
public preview.</b>
</p>
<p>
Retrieves a collection of fleet resources in an Amazon Web Services Region. You can filter the result set to find
only those fleets that are deployed with a specific build or script. For fleets that have multiple locations,
this operation retrieves fleets based on their home Region only.
</p>
<p>
You can use operation in the following ways:
</p>
<ul>
<li>
<p>
To get a list of all fleets in a Region, don't provide a build or script identifier.
</p>
</li>
<li>
<p>
To get a list of all fleets where a specific game build is deployed, provide the build ID.
</p>
</li>
<li>
<p>
To get a list of all Realtime Servers fleets with a specific configuration script, provide the script ID.
</p>
</li>
<li>
<p>
To get a list of all fleets with a specific container group definition, provide the
<code>ContainerGroupDefinition</code> ID.
</p>
</li>
</ul>
<p>
Use the pagination parameters to retrieve results as a set of sequential pages.
</p>
<p>
If successful, this operation returns a list of fleet IDs that match the request parameters. A NextToken value is
also returned if there are more result pages to retrieve.
</p>
<note>
<p>
Fleet IDs are returned in no particular order.
</p>
</note>

@param listFleetsRequest
@return Result of the ListFleets operation returned by the service.
@throws InternalServiceException
        The service encountered an unrecoverable internal failure while processing the request. Clients can retry
        such requests immediately or after a waiting period.
@throws NotFoundException
        THe requested resources was not found. The resource was either not created yet or deleted.
@throws InvalidRequestException
        One or more parameter values in the request are invalid. Correct the invalid parameter values before
        retrying.
@throws UnauthorizedException
        The client failed authentication. Clients should not retry such requests.
@sample AmazonGameLift.ListFleets
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleets" target="_top">AWS API
     Documentation</a>
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/AmazonGameLiftClient.java