public void setExpectedVersion(Long expectedVersion) {
        this.expectedVersion = expectedVersion;
    }
<p>
(Optional) The expected current version of the job execution. Each time you update the job execution, its version
is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a
VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned.
(This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job
execution status data.)
</p>

@param expectedVersion
       (Optional) The expected current version of the job execution. Each time you update the job execution, its
       version is incremented. If the version of the job execution stored in Jobs does not match, the update is
       rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status
       data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order
       to obtain the job execution status data.)
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CancelJobExecutionRequest.java