@Override
    public TestSegmentPatternResult testSegmentPattern(TestSegmentPatternRequest request) {
        request = beforeClientExecution(request);
        return executeTestSegmentPattern(request);
    }
<p>
Use this operation to test a rules pattern that you plan to use to create an audience segment. For more
information about segments, see <a
href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateSegment.html"
>CreateSegment</a>.
</p>

@param testSegmentPatternRequest
@return Result of the TestSegmentPattern 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.TestSegmentPattern
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/TestSegmentPattern" target="_top">AWS
     API Documentation</a>
aws-java-sdk-cloudwatchevidently/src/main/java/com/amazonaws/services/cloudwatchevidently/AmazonCloudWatchEvidentlyClient.java