@Override
    public CancelServiceSoftwareUpdateResult cancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest request) {
        request = beforeClientExecution(request);
        return executeCancelServiceSoftwareUpdate(request);
    }
<p>
Cancels a scheduled service software update for an Amazon OpenSearch Service domain. You can only perform this
operation before the <code>AutomatedUpdateDate</code> and when the domain's <code>UpdateStatus</code> is
<code>PENDING_UPDATE</code>. For more information, see <a
href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/service-software.html">Service
software updates in Amazon OpenSearch Service</a>.
</p>

@param cancelServiceSoftwareUpdateRequest
       Container for the request parameters to cancel a service software update.
@return Result of the CancelServiceSoftwareUpdate operation returned by the service.
@throws BaseException
        An error occurred while processing the request.
@throws InternalException
        Request processing failed because of an unknown error, exception, or internal failure.
@throws ResourceNotFoundException
        An exception for accessing or deleting a resource that doesn't exist.
@throws ValidationException
        An exception for accessing or deleting a resource that doesn't exist.
@sample AmazonOpenSearch.CancelServiceSoftwareUpdate
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/AmazonOpenSearchClient.java