@Override
    public ListSegmentsResult listSegments(ListSegmentsRequest request) {
        request = beforeClientExecution(request);
        return executeListSegments(request);
    }
<p>
Returns a list of audience segments that you have created in your account in this Region.
</p>

@param listSegmentsRequest
@return Result of the ListSegments operation returned by the service.
@throws ThrottlingException
        The request was denied because of request throttling. Retry the request.
@throws ValidationException
        The value of a parameter in the request caused an error.
@throws AccessDeniedException
        You do not have sufficient permissions to perform this action.
@sample AmazonCloudWatchEvidently.ListSegments
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/ListSegments" target="_top">AWS API
     Documentation</a>
aws-java-sdk-cloudwatchevidently/src/main/java/com/amazonaws/services/cloudwatchevidently/AmazonCloudWatchEvidentlyClient.java