public void setError(CancelSpotFleetRequestsError error) {
        this.error = error;
    }
<p>
The error.
</p>

@param error
       The error.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CancelSpotFleetRequestsErrorItem.java